Repository navigation
Tidy-sort and use more of GeneratedAttr - #166249
Conversation
|
Some changes occurred in compiler/rustc_attr_parsing |
GeneratedAttrGeneratedAttr
| @@ -3483,100 +3483,132 @@ pub enum AttrKind { | |||
| /// means it can only be added to items that cannot later be observed by other macros. | |||
| #[derive(Clone, Encodable, Decodable, Debug, Walkable)] | |||
| pub enum GeneratedAttr { | |||
There was a problem hiding this comment.
I would love if we could find a way to use rustc_attr_ir::AttributeKind here rather than having to build a mirror enum here
This comment has been minimized.
This comment has been minimized.
c4739cb to
c5c50c6
Compare
|
Changes to the size of AST and/or HIR nodes. cc @nnethercote |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Tidy-sort and use more of `GeneratedAttr`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (818ca3a): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.4%, secondary -0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 459.547s -> 461.748s (0.48%) |
|
This improves performance significantly for small crates. |
|
Yep that's noise, see: #t-compiler/performance > New artifact noise in `next-solver-stress` |
Rollup of 4 pull requests Successful merges: - #166270 (Output type refactors & change analysis query into required_analysis) - #165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - #166249 (Tidy-sort and use more of `GeneratedAttr`) - #166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Can be reviewed commit by commit, every commit passes tests
r? @mejrs (or someone else)