-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[rustc_layout_scalar_valid_range_start/end]
to the new attrib…
#142921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Port #[rustc_layout_scalar_valid_range_start/end]
to the new attrib…
#142921
Conversation
|
Some changes occurred in compiler/rustc_attr_data_structures Changes to the size of AST and/or HIR nodes. cc @nnethercote Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_passes/src/check_attr.rs |
46ea3f1
to
9102b14
Compare
@@ -41,4 +41,5 @@ extern "C" {} | |||
|
|||
#[rustc_layout_scalar_valid_range_start(0suffix)] | |||
//~^ ERROR invalid suffix `suffix` for number literal | |||
//~| ERROR malformed `rustc_layout_scalar_valid_range_start` attribute input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like this change, but not sure how to fix it. I think my new lint is the one which should not be triggered, but I just get an attribute with an empty list with no way to detect that it is empty because something previously errored. @jdonszelmann advice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure about this but this might be what dcx.has_stashed_diagnostic(span, StashKey) could be useful for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a hack I printed the entire stashed_diagnostics when parse_rustc_layout_scalar_valid_range
is called and it is empty, so this does not seem to be the solution
9102b14
to
49398cf
Compare
…t, r=jdonszelmann Fix comment on NoMangle Fix comment on NoMangle. This was discussed in comments of rust-lang#142823 (comment) and rust-lang#142921
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Port `#[rustc_layout_scalar_valid_range_start/end]` to the new attrib… Ports `rustc_layout_scalar_valid_range_start` and `rustc_layout_scalar_valid_range_end` to the new attribute parsing infrastructure for #131229 (comment) r? `@jdonszelmann`
This comment has been minimized.
This comment has been minimized.
Rollup merge of #142922 - JonathanBrouwer:fix-rustdoc-comment, r=jdonszelmann Fix comment on NoMangle Fix comment on NoMangle. This was discussed in comments of #142823 (comment) and #142921
Finished benchmarking commit (600a41a): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @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 1.5%, secondary 0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 0.7%, secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 688.989s -> 689.147s (0.02%) |
49398cf
to
37abd08
Compare
@JonathanBrouwer: 🔑 Insufficient privileges: not in try users |
No let's not rollup always, still want to see the final results |
☔ The latest upstream changes (presumably #142956) made this pull request unmergeable. Please resolve the merge conflicts. |
37abd08
to
e6396e3
Compare
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
…ute parsing infrastructure Signed-off-by: Jonathan Brouwer <[email protected]>
e6396e3
to
d5586dc
Compare
^ Rebased & replied to your comment |
Ports
rustc_layout_scalar_valid_range_start
andrustc_layout_scalar_valid_range_end
to the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann