-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
#[forbid(unused_qualifications)]
is incompatible with all builtin derives
#71898
Comments
Ah, the deprecation lint has this check: rust/src/librustc_middle/middle/stability.rs Lines 220 to 222 in 2454a68
|
@rustbot claim |
If my understanding is correct, rust/src/librustc_middle/lint.rs Line 224 in 2454a68
My original approach to this issue was to avoid adding the rust/src/librustc_resolve/late.rs Line 1844 in 2454a68
in_derive_expansion check makes a difference in the suggestion displayed(I did verify that the lint is captured in the lint_buffer in the case the unnecessary qualification is in an external crate, just not displayed).
Any thoughts on this approach, and suggestions on how I can go about testing this change? |
Triage: Hi, are you still working on this issue @samrat? |
Hi @Alexendoo, I don't think I'll be able to devote sufficient time to work on this issue anytime soon. |
No problem @rustbot release-assignment |
@rustbot claim |
@rustbot release-assignment |
All built-in custom derives put
#[allow(unused_qualifications)]
on the generated impl, but theforbid
level can not be overridden by that.Custom derives are not able to trigger the
deprecated
lint, despite not attaching#[allow(deprecated)]
, so maybe the same mechanism should be used forunused_qualifications
?The text was updated successfully, but these errors were encountered: