-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[path]
to the new attribute parsing infrastructure
#143344
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
Signed-off-by: Jonathan Brouwer <[email protected]>
Signed-off-by: Jonathan Brouwer <[email protected]>
#[path]
to the new attribute parsing infrastructure
@@ -267,6 +267,36 @@ pub fn check_builtin_meta_item( | |||
deny_unsafety: bool, | |||
) { | |||
if !is_attr_template_compatible(&template, &meta.kind) { | |||
// attrs with new parsers are locally validated so excluded here |
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 move is in a separate commit.
It is needed because
pub fn emit_fatal_malformed_builtin_attribute( |
@@ -26,6 +26,7 @@ use crate::attributes::link_attrs::{LinkNameParser, LinkSectionParser}; | |||
use crate::attributes::lint_helpers::{AsPtrParser, PubTransparentParser}; | |||
use crate::attributes::loop_match::{ConstContinueParser, LoopMatchParser}; | |||
use crate::attributes::must_use::MustUseParser; | |||
use crate::attributes::path::PathParser as PathAttributeParser; |
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.
Needed because this file contains an unrelated thing called PathParser
already
☔ The latest upstream changes (presumably #143338) made this pull request unmergeable. Please resolve the merge conflicts. |
Ports
#[path]
to the new attribute parsing infrastructure for #131229 (comment)This PR duplicates a change from #143237
Draft until that one is merged