Correct meta item diagnostic
This commit is contained in:
parent
08fbe3dafa
commit
06a1fc98eb
@ -763,10 +763,10 @@ where
|
|||||||
meta.span(),
|
meta.span(),
|
||||||
AttrError::UnknownMetaItem(
|
AttrError::UnknownMetaItem(
|
||||||
pprust::path_to_string(&mi.path),
|
pprust::path_to_string(&mi.path),
|
||||||
if attr.has_name(sym::deprecated) {
|
if sess.features_untracked().deprecated_suggestion {
|
||||||
&["since", "note"]
|
|
||||||
} else {
|
|
||||||
&["since", "note", "suggestion"]
|
&["since", "note", "suggestion"]
|
||||||
|
} else {
|
||||||
|
&["since", "note"]
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user