Commit 3257c34
authored
Rollup merge of rust-lang#99485 - mdholloway:unused-qualifications-in-derive, r=oli-obk
Stop injecting `#[allow(unused_qualifications)]` in generated `derive` implementations
Currently, the `#[derive]` attribute always injects an `#[allow(unused_qualifications)]` attribute in the generated implementation. This results in an error when a derive is used in combination with `#![forbid(unused_qualifications)]`, because the `forbid` rule by definition cannot be overridden by `allow`.
It appears that the original issue that prompted the inclusion of `#[allow(unused_qualifications)]` (rust-lang#19102) is no longer present in the current stable release, and the associated [test case](https://github.com/rust-lang/rust/blob/master/src/test/ui/issues/issue-19102.rs) still passes, so the `allow` is simply removed here.
Fixes rust-lang#71898.File tree
4 files changed
+39
-108
lines changed- compiler/rustc_builtin_macros/src/deriving/generic
- src/test/ui
- deriving
- lint
- auxiliary
4 files changed
+39
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | 730 | | |
739 | | - | |
| 731 | + | |
740 | 732 | | |
741 | 733 | | |
742 | 734 | | |
| |||
0 commit comments