This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
src/test/ui/stability-attribute Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ mod bogus_attribute_types_2 {
19
19
20
20
#[ stable( feature = "a" , since = "b" ) ]
21
21
#[ rustc_deprecated] //~ ERROR malformed `rustc_deprecated` attribute
22
+ //~^ ERROR missing 'since'
22
23
fn f5 ( ) { }
23
24
24
25
#[ stable( feature = "a" , since = "b" ) ]
25
26
#[ rustc_deprecated = "a" ] //~ ERROR malformed `rustc_deprecated` attribute
27
+ //~^ ERROR missing 'since'
26
28
fn f6 ( ) { }
27
29
}
28
30
Original file line number Diff line number Diff line change @@ -29,10 +29,23 @@ LL | #[rustc_deprecated]
29
29
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
30
30
31
31
error: malformed `rustc_deprecated` attribute input
32
- --> $DIR/stability-attribute-sanity-4.rs:25 :5
32
+ --> $DIR/stability-attribute-sanity-4.rs:26 :5
33
33
|
34
34
LL | #[rustc_deprecated = "a"]
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
36
36
37
- error: aborting due to 6 previous errors
37
+ error[E0542]: missing 'since'
38
+ --> $DIR/stability-attribute-sanity-4.rs:21:5
39
+ |
40
+ LL | #[rustc_deprecated]
41
+ | ^^^^^^^^^^^^^^^^^^^
42
+
43
+ error[E0542]: missing 'since'
44
+ --> $DIR/stability-attribute-sanity-4.rs:26:5
45
+ |
46
+ LL | #[rustc_deprecated = "a"]
47
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
48
+
49
+ error: aborting due to 8 previous errors
38
50
51
+ For more information about this error, try `rustc --explain E0542`.
You can’t perform that action at this time.
0 commit comments