1 error[E0541]: unknown meta item 'reason'
2 --> $DIR/stability-attribute-sanity.rs:18:42
4 LL | #[stable(feature = "a", since = "b", reason)] //~ ERROR unknown meta item 'reason' [E0541]
5 | ^^^^^^ expected one of `since`, `note`
7 error[E0539]: incorrect meta item
8 --> $DIR/stability-attribute-sanity.rs:21:29
10 LL | #[stable(feature = "a", since)] //~ ERROR incorrect meta item [E0539]
13 error[E0539]: incorrect meta item
14 --> $DIR/stability-attribute-sanity.rs:24:14
16 LL | #[stable(feature, since = "a")] //~ ERROR incorrect meta item [E0539]
19 error[E0539]: incorrect meta item
20 --> $DIR/stability-attribute-sanity.rs:27:29
22 LL | #[stable(feature = "a", since(b))] //~ ERROR incorrect meta item [E0539]
25 error[E0539]: incorrect meta item
26 --> $DIR/stability-attribute-sanity.rs:30:14
28 LL | #[stable(feature(b), since = "a")] //~ ERROR incorrect meta item [E0539]
31 error[E0548]: incorrect stability attribute type
32 --> $DIR/stability-attribute-sanity.rs:35:5
34 LL | #[unstable] //~ ERROR incorrect stability attribute type [E0548]
37 error[E0548]: incorrect stability attribute type
38 --> $DIR/stability-attribute-sanity.rs:38:5
40 LL | #[unstable = "b"] //~ ERROR incorrect stability attribute type [E0548]
43 error[E0548]: incorrect stability attribute type
44 --> $DIR/stability-attribute-sanity.rs:41:5
46 LL | #[stable] //~ ERROR incorrect stability attribute type [E0548]
49 error[E0548]: incorrect stability attribute type
50 --> $DIR/stability-attribute-sanity.rs:44:5
52 LL | #[stable = "a"] //~ ERROR incorrect stability attribute type [E0548]
55 error[E0548]: incorrect stability attribute type
56 --> $DIR/stability-attribute-sanity.rs:48:5
58 LL | #[rustc_deprecated] //~ ERROR incorrect stability attribute type [E0548]
61 error[E0548]: incorrect stability attribute type
62 --> $DIR/stability-attribute-sanity.rs:52:5
64 LL | #[rustc_deprecated = "a"] //~ ERROR incorrect stability attribute type [E0548]
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^
67 error[E0546]: missing 'feature'
68 --> $DIR/stability-attribute-sanity.rs:57:5
70 LL | #[unstable(issue = "0")] //~ ERROR missing 'feature' [E0546]
71 | ^^^^^^^^^^^^^^^^^^^^^^^^
73 error[E0547]: missing 'issue'
74 --> $DIR/stability-attribute-sanity.rs:60:5
76 LL | #[unstable(feature = "b")] //~ ERROR missing 'issue' [E0547]
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
79 error[E0546]: missing 'feature'
80 --> $DIR/stability-attribute-sanity.rs:63:5
82 LL | #[stable(since = "a")] //~ ERROR missing 'feature' [E0546]
83 | ^^^^^^^^^^^^^^^^^^^^^^
85 error[E0542]: missing 'since'
86 --> $DIR/stability-attribute-sanity.rs:68:5
88 LL | #[stable(feature = "a")] //~ ERROR missing 'since' [E0542]
89 | ^^^^^^^^^^^^^^^^^^^^^^^^
91 error[E0542]: missing 'since'
92 --> $DIR/stability-attribute-sanity.rs:72:5
94 LL | #[rustc_deprecated(reason = "a")] //~ ERROR missing 'since' [E0542]
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 error[E0544]: multiple stability levels
98 --> $DIR/stability-attribute-sanity.rs:77:1
100 LL | #[stable(feature = "a", since = "b")] //~ ERROR multiple stability levels [E0544]
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103 error[E0544]: multiple stability levels
104 --> $DIR/stability-attribute-sanity.rs:81:1
106 LL | #[unstable(feature = "b", issue = "0")] //~ ERROR multiple stability levels [E0544]
107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109 error[E0544]: multiple stability levels
110 --> $DIR/stability-attribute-sanity.rs:85:1
112 LL | #[stable(feature = "a", since = "b")] //~ ERROR multiple stability levels [E0544]
113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 error[E0540]: multiple rustc_deprecated attributes
116 --> $DIR/stability-attribute-sanity.rs:93:1
118 LL | pub const fn multiple4() { } //~ ERROR multiple rustc_deprecated attributes [E0540]
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 error[E0553]: multiple rustc_const_unstable attributes
122 --> $DIR/stability-attribute-sanity.rs:93:1
124 LL | pub const fn multiple4() { } //~ ERROR multiple rustc_deprecated attributes [E0540]
125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127 error: Invalid stability or deprecation version found
128 --> $DIR/stability-attribute-sanity.rs:93:1
130 LL | pub const fn multiple4() { } //~ ERROR multiple rustc_deprecated attributes [E0540]
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 error[E0549]: rustc_deprecated attribute must be paired with either stable or unstable attribute
134 --> $DIR/stability-attribute-sanity.rs:98:1
136 LL | fn deprecated_without_unstable_or_stable() { }
137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139 error: aborting due to 23 previous errors
141 Some errors occurred: E0539, E0540, E0541, E0542, E0544, E0546, E0547, E0548, E0549...
142 For more information about an error, try `rustc --explain E0539`.