1
Fork 0

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:
David Wood 2022-07-13 10:36:12 +01:00
parent 6f0b8f1a4b
commit a1d5af24ec
3 changed files with 3 additions and 3 deletions

View file

@ -404,7 +404,7 @@ where
meta.span(),
AttrError::UnknownMetaItem(
pprust::path_to_string(&mi.path),
&["since", "note"],
&["feature", "since"],
),
);
continue 'outer;