#![forbid(unused_qualifications)]
#[derive(Clone)]
pub struct S;
error[E0453]: allow(unused_qualifications) overruled by outer forbid(unused_qualifications)
--> src/main.rs:3:10
|
1 | #![forbid(unused_qualifications)]
| --------------------- `forbid` level set here
2 |
3 | #[derive(Clone)]
| ^^^^^ overruled by previous forbid
All built-in custom derives put #[allow(unused_qualifications)] on the generated impl, but the forbid 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 for unused_qualifications?
All built-in custom derives put
#[allow(unused_qualifications)]on the generated impl, but theforbidlevel can not be overridden by that.Custom derives are not able to trigger the
deprecatedlint, despite not attaching#[allow(deprecated)], so maybe the same mechanism should be used forunused_qualifications?