diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-01-19 16:24:49 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-03 18:50:28 +0100 |
| commit | 27d8cd7db046746bbfbb0bd3e1df40757cabb1fe (patch) | |
| tree | 73d8e9794fdf393e901f858007657eb14e99a7d0 /src/test/ui/attributes | |
| parent | 3c7947ee43b14f124b41f5de7c247dc8e47a18fa (diff) | |
| download | rust-27d8cd7db046746bbfbb0bd3e1df40757cabb1fe.tar.gz rust-27d8cd7db046746bbfbb0bd3e1df40757cabb1fe.zip | |
Cleanup feature gates.
Diffstat (limited to 'src/test/ui/attributes')
4 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/attributes/const-stability-on-macro.rs b/src/test/ui/attributes/const-stability-on-macro.rs index 3fc60f7ce48..412af195d7a 100644 --- a/src/test/ui/attributes/const-stability-on-macro.rs +++ b/src/test/ui/attributes/const-stability-on-macro.rs @@ -1,3 +1,6 @@ +#![feature(staged_api)] +#![stable(feature = "rust1", since = "1.0.0")] + #[rustc_const_stable(feature = "foo", since = "0")] //~^ ERROR macros cannot have const stability attributes macro_rules! foo { diff --git a/src/test/ui/attributes/const-stability-on-macro.stderr b/src/test/ui/attributes/const-stability-on-macro.stderr index ef24e44d190..c3da02c79cb 100644 --- a/src/test/ui/attributes/const-stability-on-macro.stderr +++ b/src/test/ui/attributes/const-stability-on-macro.stderr @@ -1,5 +1,5 @@ error: macros cannot have const stability attributes - --> $DIR/const-stability-on-macro.rs:1:1 + --> $DIR/const-stability-on-macro.rs:4:1 | LL | #[rustc_const_stable(feature = "foo", since = "0")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute @@ -8,7 +8,7 @@ LL | macro_rules! foo { | ---------------- const stability attribute affects this macro error: macros cannot have const stability attributes - --> $DIR/const-stability-on-macro.rs:7:1 + --> $DIR/const-stability-on-macro.rs:10:1 | LL | #[rustc_const_unstable(feature = "bar", issue="none")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute diff --git a/src/test/ui/attributes/extented-attribute-macro-error.rs b/src/test/ui/attributes/extented-attribute-macro-error.rs index f5f75f9f4da..492f84f56c3 100644 --- a/src/test/ui/attributes/extented-attribute-macro-error.rs +++ b/src/test/ui/attributes/extented-attribute-macro-error.rs @@ -1,6 +1,5 @@ // normalize-stderr-test: "couldn't read.*" -> "couldn't read the file" -#![feature(extended_key_value_attributes)] #![doc = include_str!("../not_existing_file.md")] struct Documented {} //~^^ ERROR couldn't read diff --git a/src/test/ui/attributes/extented-attribute-macro-error.stderr b/src/test/ui/attributes/extented-attribute-macro-error.stderr index e4deeacd0ff..0fcde9b7cc6 100644 --- a/src/test/ui/attributes/extented-attribute-macro-error.stderr +++ b/src/test/ui/attributes/extented-attribute-macro-error.stderr @@ -1,5 +1,5 @@ error: couldn't read the file - --> $DIR/extented-attribute-macro-error.rs:4:10 + --> $DIR/extented-attribute-macro-error.rs:3:10 | LL | #![doc = include_str!("../not_existing_file.md")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
