Remove attribute parsing Stage#155775
Remove attribute parsing Stage#155775JonathanBrouwer wants to merge 5 commits intorust-lang:mainfrom
Stage#155775Conversation
|
@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.
This comment has been minimized.
This comment has been minimized.
StageStage
|
Finished benchmarking commit (0f16d2c): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (secondary 6.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 2.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 487.131s -> 486.905s (-0.05%) |
|
@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.
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred to diagnostic attributes. cc @mejrs Some changes occurred in compiler/rustc_attr_parsing |
Remove attribute parsing `Stage`
This comment has been minimized.
This comment has been minimized.
92e7c93 to
d09a544
Compare
|
Wow this is a very nice change!! |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (1605ec0): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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. @bors rollup=never 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 -0.7%, secondary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.4%, secondary 0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 487.131s -> 488.391s (0.26%) |
This comment has been minimized.
This comment has been minimized.
|
This seems like a very clear improvement, even a small perf win. Could you make sure anywhere we still mention "early parsing" gets proper docs, or links to maybe even the crate docs to explain about where we parse attributes? r=me otherwise |
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
a6fce89 to
89714d4
Compare
This comment has been minimized.
This comment has been minimized.
|
This PR now removes all mentions of "late" attribute parsing in the crate (only one). The term of "early" attribute parsing is used a lot throughout the crate, so I've documented it in the crate root. @bors r=jdonszelmann,petrochenkov rollup=never p=1 |
This comment has been minimized.
This comment has been minimized.
89714d4 to
08babc8
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=jdonszelmann,petrochenkov p=6 |
|
⌛ Testing commit 08babc8 with merge 0424cc1... Workflow: https://github.com/rust-lang/rust/actions/runs/25096754807 |
…,petrochenkov Remove attribute parsing `Stage` I discovered that it is surprisingly easy to remove the concept of `Stage` in the attribute parsers, imo this makes the code a lot cleaner. r? @jdonszelmann cc @mejrs @Bryntet
View all comments
I discovered that it is surprisingly easy to remove the concept of
Stagein the attribute parsers, imo this makes the code a lot cleaner.r? @jdonszelmann
cc @mejrs @Bryntet