rust/compiler/rustc_codegen_ssa
bors f2b91ccbc2 Auto merge of #131808 - jdonszelmann:hir-attributes, r=oli-obk,petrochenkov
Hir attributes

This PR needs some explanation, it's somewhat large.

- This is step one as described in https://github.com/rust-lang/compiler-team/issues/796. I've added a new `hir::Attribute` which is a lowered version of `ast::Attribute`. Right now, this has few concrete effects, however every place that after this PR parses a `hir::Attribute` should later get a pre-parsed attribute as described in https://github.com/rust-lang/compiler-team/issues/796 and transitively https://github.com/rust-lang/rust/issues/131229.
- an extension trait `AttributeExt` is added, which is implemented for both `ast::Attribute` and `hir::Atribute`. This makes `hir::Attributes` mostly compatible with code that used to parse `ast::Attribute`. All its methods are also added as inherent methods to avoid having to import the trait everywhere in the compiler.
  - Incremental can not not hash `ast::Attribute` at all.
2024-12-15 22:05:33 +00:00
..
src Auto merge of #131808 - jdonszelmann:hir-attributes, r=oli-obk,petrochenkov 2024-12-15 22:05:33 +00:00
Cargo.toml Add hir::Attribute 2024-12-15 19:18:46 +01:00
messages.ftl fix: rust-lang/rust#47446 2024-11-15 15:25:19 +01:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.