-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[non_exhaustive]
to the new attribute parsing infrastructure
#143085
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 #[non_exhaustive]
to the new attribute parsing infrastructure
#143085
Conversation
Signed-off-by: Jonathan Brouwer <[email protected]>
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_attr_data_structures |
@@ -2746,7 +2746,8 @@ fn add_without_unwanted_attributes<'hir>( | |||
attrs.push((Cow::Owned(attr), import_parent)); | |||
} | |||
} | |||
hir::Attribute::Parsed(..) if is_inline => { | |||
// FIXME: make sure to exclude `#[cfg_trace]` here when it is ported to the new parsers | |||
hir::Attribute::Parsed(..) => { |
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 PR is blocked on #143083, because it needs it to get a passing CI.
This PR contains that PR as a commit. Other than that, this should be reviewable.
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Jonathan Brouwer <[email protected]>
9e04a8b
to
419f4e3
Compare
Ports
non_exhaustive
to the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann