-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
PatField
and ExprField
produce no warning for #[doc(...)]
attribute
#115462
Comments
The reason these warnings are not produced is because the lint infrastructure currently exposes no hooks for To fix the issue, these methods may have to be added here: rust/compiler/rustc_lint/src/passes.rs Line 140 in f9ba43c
and then invoked from here: rust/compiler/rustc_lint/src/early.rs Lines 113 to 117 in f9ba43c
and here: rust/compiler/rustc_lint/src/early.rs Lines 131 to 135 in f9ba43c
Alternatively, we can emit the warning from the already existing |
Yeah, I would expect this is the best way of doing it. |
@rustbot claim |
@rustbot label -needs-triage |
Code
Current output
Desired output
Rationale and extra context
The same warning is produced at other places like statements, expressions, functions etc. For completeness and consistency it should be produced for pattern and expression fields too.
Other cases
No response
Anything else?
rustc 1.74.0-nightly (35e4163 2023-09-01)
binary: rustc
commit-hash: 35e4163
commit-date: 2023-09-01
host: x86_64-pc-windows-msvc
release: 1.74.0-nightly
LLVM version: 17.0.0
rustc version older than 1.74.0 may ICE on this code. The ICE was fixed in 1.74.0
The text was updated successfully, but these errors were encountered: