about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-20 16:17:22 +0530
committerGitHub <noreply@github.com>2022-07-20 16:17:22 +0530
commit3257c3401d68057e83089f3b8da27f7ecc21e228 (patch)
tree072b4dc85dff6ce5db5cd9d67d20b767d671099f /compiler/rustc_codegen_gcc
parentd9a71c1e0225e6179f75f7bb9d7e4e9c67cb71c7 (diff)
parent05bb8782616e61fc6dbeb712fceee8b96102f6ec (diff)
downloadrust-3257c3401d68057e83089f3b8da27f7ecc21e228.tar.gz
rust-3257c3401d68057e83089f3b8da27f7ecc21e228.zip
Rollup merge of #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)]` (#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 #71898.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions