Skip to content

Commit 9cdef5a

Browse files
committed
Revert "attr: fix expected meta-item for #[stable]"
This reverts commit a1d5af2.
1 parent 889080d commit 9cdef5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_attr/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ where
434434
meta.span(),
435435
AttrError::UnknownMetaItem(
436436
pprust::path_to_string(&mi.path),
437-
&["feature", "since"],
437+
&["since", "note"],
438438
),
439439
);
440440
continue 'outer;

src/test/ui/stability-attribute/stability-attribute-sanity-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0541]: unknown meta item 'sinse'
88
--> $DIR/stability-attribute-sanity-2.rs:10:25
99
|
1010
LL | #[stable(feature = "a", sinse = "1.0.0")]
11-
| ^^^^^^^^^^^^^^^ expected one of `feature`, `since`
11+
| ^^^^^^^^^^^^^^^ expected one of `since`, `note`
1212

1313
error[E0545]: `issue` must be a non-zero numeric string or "none"
1414
--> $DIR/stability-attribute-sanity-2.rs:13:27

src/test/ui/stability-attribute/stability-attribute-sanity.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ error[E0541]: unknown meta item 'reason'
1414
--> $DIR/stability-attribute-sanity.rs:8:42
1515
|
1616
LL | #[stable(feature = "a", since = "b", reason)]
17-
| ^^^^^^ expected one of `feature`, `since`
17+
| ^^^^^^ expected one of `since`, `note`
1818

1919
error[E0539]: incorrect meta item
2020
--> $DIR/stability-attribute-sanity.rs:11:29

0 commit comments

Comments
 (0)