Correct meta item diagnostic

This commit is contained in:
Jacob Pratt 2022-03-14 22:05:30 -04:00
parent 08fbe3dafa
commit 06a1fc98eb
No known key found for this signature in database
GPG Key ID: B80E19E4662B5AA4

View File

@ -763,10 +763,10 @@ where
meta.span(),
AttrError::UnknownMetaItem(
pprust::path_to_string(&mi.path),
if attr.has_name(sym::deprecated) {
&["since", "note"]
} else {
if sess.features_untracked().deprecated_suggestion {
&["since", "note", "suggestion"]
} else {
&["since", "note"]
},
),
);