-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Port #[may_dangle]
to the new attribute system
#142539
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?
Conversation
Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_attr_data_structures Some changes occurred in compiler/rustc_passes/src/check_attr.rs |
@@ -1302,6 +1302,7 @@ impl AttributeExt for Attribute { | |||
// FIXME: should not be needed anymore when all attrs are parsed | |||
Attribute::Parsed(AttributeKind::Deprecation { span, .. }) => *span, | |||
Attribute::Parsed(AttributeKind::DocComment { span, .. }) => *span, | |||
Attribute::Parsed(AttributeKind::MayDangle(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.
same feedback as on the other PR. This list should be kept as small as possible and was only introduced for migration purposes. I expect this entire function to be removed.
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
f2ffea0
to
d4006e4
Compare
d4006e4
to
76dfb1c
Compare
Very similar to #142498.
This is a part of #131229, so
r? @jdonszelmann