attr: fix expected meta-item for #[stable]
When an unexpected meta item is provided to `#[stable]`, the diagnostic lists "since" and "note" as expected meta-items, however the surrounding code actually expects "feature" and "since". Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
6f0b8f1a4b
commit
a1d5af24ec
3 changed files with 3 additions and 3 deletions
|
@ -404,7 +404,7 @@ where
|
|||
meta.span(),
|
||||
AttrError::UnknownMetaItem(
|
||||
pprust::path_to_string(&mi.path),
|
||||
&["since", "note"],
|
||||
&["feature", "since"],
|
||||
),
|
||||
);
|
||||
continue 'outer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue