@@ -23,7 +23,7 @@ LL | #[unsafe(test)]
2323 = note: extraneous unsafe is not allowed in attributes
2424
2525error: expected identifier, found keyword `unsafe`
26- --> $DIR/extraneous-unsafe-attributes.rs:36 :19
26+ --> $DIR/extraneous-unsafe-attributes.rs:34 :19
2727 |
2828LL | let _a = cfg!(unsafe(foo));
2929 | ^^^^^^ expected identifier, found keyword
@@ -34,7 +34,7 @@ LL | let _a = cfg!(r#unsafe(foo));
3434 | ++
3535
3636error[E0537]: invalid predicate `r#unsafe`
37- --> $DIR/extraneous-unsafe-attributes.rs:36 :19
37+ --> $DIR/extraneous-unsafe-attributes.rs:34 :19
3838 |
3939LL | let _a = cfg!(unsafe(foo));
4040 | ^^^^^^^^^^^
@@ -48,53 +48,49 @@ LL | #[unsafe(ignore = "test")]
4848 = note: extraneous unsafe is not allowed in attributes
4949
5050error: `should_panic` is not an unsafe attribute
51- --> $DIR/extraneous-unsafe-attributes.rs:18 :3
51+ --> $DIR/extraneous-unsafe-attributes.rs:17 :3
5252 |
5353LL | #[unsafe(should_panic(expected = "test"))]
5454 | ^^^^^^ this is not an unsafe attribute
5555 |
5656 = note: extraneous unsafe is not allowed in attributes
5757
5858error: `macro_use` is not an unsafe attribute
59- --> $DIR/extraneous-unsafe-attributes.rs:24 :3
59+ --> $DIR/extraneous-unsafe-attributes.rs:22 :3
6060 |
6161LL | #[unsafe(macro_use)]
6262 | ^^^^^^ this is not an unsafe attribute
6363 |
6464 = note: extraneous unsafe is not allowed in attributes
6565
6666error: `macro_export` is not an unsafe attribute
67- --> $DIR/extraneous-unsafe-attributes.rs:26 :7
67+ --> $DIR/extraneous-unsafe-attributes.rs:24 :7
6868 |
6969LL | #[unsafe(macro_export)]
7070 | ^^^^^^ this is not an unsafe attribute
7171 |
7272 = note: extraneous unsafe is not allowed in attributes
7373
7474error: `used` is not an unsafe attribute
75- --> $DIR/extraneous-unsafe-attributes.rs:32 :3
75+ --> $DIR/extraneous-unsafe-attributes.rs:30 :3
7676 |
7777LL | #[unsafe(used)]
7878 | ^^^^^^ this is not an unsafe attribute
7979 |
8080 = note: extraneous unsafe is not allowed in attributes
8181
82- warning : `#[ignore]` should only be applied to functions annotated with `#[test]` or `#[bench]`
82+ error : `#[ignore]` should only be applied to functions annotated with `#[test]` or `#[bench]`
8383 --> $DIR/extraneous-unsafe-attributes.rs:12:1
8484 |
8585LL | #[unsafe(ignore = "test")]
8686 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
87- |
88- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8987
90- warning : `#[should_panic]` should only be applied to functions annotated with `#[test]` or `#[bench]`
91- --> $DIR/extraneous-unsafe-attributes.rs:18 :1
88+ error : `#[should_panic]` should only be applied to functions annotated with `#[test]` or `#[bench]`
89+ --> $DIR/extraneous-unsafe-attributes.rs:17 :1
9290 |
9391LL | #[unsafe(should_panic(expected = "test"))]
9492 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95- |
96- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9793
98- error: aborting due to 10 previous errors; 2 warnings emitted
94+ error: aborting due to 12 previous errors
9995
10096For more information about this error, try `rustc --explain E0537`.
0 commit comments