Skip to content

Commit 06a1fc9

Browse files
committed
Correct meta item diagnostic
1 parent 08fbe3d commit 06a1fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_attr/src/builtin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,10 @@ where
763763
meta.span(),
764764
AttrError::UnknownMetaItem(
765765
pprust::path_to_string(&mi.path),
766-
if attr.has_name(sym::deprecated) {
767-
&["since", "note"]
768-
} else {
766+
if sess.features_untracked().deprecated_suggestion {
769767
&["since", "note", "suggestion"]
768+
} else {
769+
&["since", "note"]
770770
},
771771
),
772772
);

0 commit comments

Comments
 (0)