mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
d9617c8d9a
Port `#[cfg]` and `#[cfg_attr]` trace attributes to the new attribute parsers This PR converts `cfg` and `cfg_trace` attributes to the new parsed representation. The primary challenge is that re-parsing these attributes in the HIR is a performance regression, since these attributes were only used in rustdoc and clippy parsing them in the HIR is extra work that was not done in the compiler before. To solve this, we only parse the attributes once and then store their parsed representation in the AST.
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.