-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Move some checks from check_doc_attrs directly into rustc_attr_parsing
#150934
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -653,6 +653,7 @@ pub struct SharedContext<'p, 'sess, S: Stage> { | |
| pub(crate) target_span: Span, | ||
| /// The id ([`NodeId`] if `S` is `Early`, [`HirId`] if `S` is `Late`) of the syntactical component this attribute was applied to | ||
| pub(crate) target_id: S::Id, | ||
| pub(crate) target: Option<rustc_hir::Target>, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels a little weird to me that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, not sure how to deal with that. I have some ideas, gonna give it a try later on.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about it more but I really don't see a nice way of fixing this, but if you do feel free to still take a look
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a hunch, I'll see how far it leads me. |
||
|
|
||
| pub(crate) emit_lint: &'p mut dyn FnMut(AttributeLint<S::Id>), | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.