diff options
| author | bors <bors@rust-lang.org> | 2020-02-27 23:04:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-27 23:04:51 +0000 |
| commit | fbc46b7d71d0fe93066d7c026eccd01c16185cd4 (patch) | |
| tree | 998aac7af361eef2cdcdbdf0ace46aa4cd764d0b /src/test | |
| parent | 6d69caba110c0c2fb90180df1cbc8be5033b91d4 (diff) | |
| parent | 34f83942f9d2c7a20312b9863f6226f33be6353b (diff) | |
| download | rust-fbc46b7d71d0fe93066d7c026eccd01c16185cd4.tar.gz rust-fbc46b7d71d0fe93066d7c026eccd01c16185cd4.zip | |
Auto merge of #69513 - tmiasko:revert-checked-unused, r=petrochenkov
Revert "Mark attributes consumed by `check_mod_attrs` as normal" This reverts commit d78b22f35ec367368643fe7d6f7e87d01762692b. Those changes were incompatible with incremental compilation since the effect `check_mod_attrs` has with respect to marking the attributes as used is neither persisted nor recomputed.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/unused/unused-attr-crate.rs | 13 | ||||
| -rw-r--r-- | src/test/ui/unused/unused-attr-crate.stderr | 44 |
2 files changed, 0 insertions, 57 deletions
diff --git a/src/test/ui/unused/unused-attr-crate.rs b/src/test/ui/unused/unused-attr-crate.rs deleted file mode 100644 index adb939e9b40..00000000000 --- a/src/test/ui/unused/unused-attr-crate.rs +++ /dev/null @@ -1,13 +0,0 @@ -#![deny(unused_attributes)] - -#![feature(naked_functions)] -#![feature(track_caller)] - -#![used] //~ ERROR unused attribute -#![non_exhaustive] //~ ERROR unused attribute -#![inline] //~ ERROR unused attribute -#![target_feature(enable = "")] //~ ERROR unused attribute -#![naked] //~ ERROR unused attribute -#![track_caller] //~ ERROR unused attribute - -fn main() {} diff --git a/src/test/ui/unused/unused-attr-crate.stderr b/src/test/ui/unused/unused-attr-crate.stderr deleted file mode 100644 index 620a3ea5315..00000000000 --- a/src/test/ui/unused/unused-attr-crate.stderr +++ /dev/null @@ -1,44 +0,0 @@ -error: unused attribute - --> $DIR/unused-attr-crate.rs:6:1 - | -LL | #![used] - | ^^^^^^^^ - | -note: the lint level is defined here - --> $DIR/unused-attr-crate.rs:1:9 - | -LL | #![deny(unused_attributes)] - | ^^^^^^^^^^^^^^^^^ - -error: unused attribute - --> $DIR/unused-attr-crate.rs:7:1 - | -LL | #![non_exhaustive] - | ^^^^^^^^^^^^^^^^^^ - -error: unused attribute - --> $DIR/unused-attr-crate.rs:8:1 - | -LL | #![inline] - | ^^^^^^^^^^ - -error: unused attribute - --> $DIR/unused-attr-crate.rs:9:1 - | -LL | #![target_feature(enable = "")] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: unused attribute - --> $DIR/unused-attr-crate.rs:10:1 - | -LL | #![naked] - | ^^^^^^^^^ - -error: unused attribute - --> $DIR/unused-attr-crate.rs:11:1 - | -LL | #![track_caller] - | ^^^^^^^^^^^^^^^^ - -error: aborting due to 6 previous errors - |
