-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[automatically_derived]
to the new attribute parsing infrastructure
#143779
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 #[automatically_derived]
to the new attribute parsing infrastructure
#143779
Conversation
Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_attr_data_structures Some changes occurred in match checking cc @Nadrieril |
@@ -1304,6 +1304,7 @@ impl AttributeExt for Attribute { | |||
Attribute::Parsed(AttributeKind::DocComment { span, .. }) => *span, | |||
Attribute::Parsed(AttributeKind::MayDangle(span)) => *span, | |||
Attribute::Parsed(AttributeKind::Ignore { span, .. }) => *span, | |||
Attribute::Parsed(AttributeKind::AutomaticallyDerived(span)) => *span, |
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.
This change is needed to fix #143780 for automatically_derived. automatically_derived is part of a test case so this is necessary to add now. @jdonszelmann and I are discussing a general solution to this problem.
This comment has been minimized.
This comment has been minimized.
8ffd1bf
to
499af0e
Compare
There are lots of these attributes produced by built-in derives, let's do a perf. run once this is ready. |
☔ The latest upstream changes (presumably #143810) made this pull request unmergeable. Please resolve the merge conflicts. |
…ucture Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
499af0e
to
68066b9
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
… r=<try> Port `#[automatically_derived]` to the new attribute parsing infrastructure Ports `#[automatically_derived]` to the new attribute parsing infrastructure for #131229 (comment) r? `@oli-obk` cc `@jdonszelmann`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (bc14627): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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. @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.1%, secondary -1.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.4%, secondary 5.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 464.174s -> 466.768s (0.56%) |
@bors r+ |
damn, no regressions? |
Ports
#[automatically_derived]
to the new attribute parsing infrastructure for #131229 (comment)r? @oli-obk
cc @jdonszelmann