diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-03-14 22:05:30 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-03-15 19:38:59 -0400 |
| commit | 06a1fc98eb93ca7062b11ec45053db990a4c127f (patch) | |
| tree | b722581108a8bb3741bb1eb71b962589705a0edf | |
| parent | 08fbe3dafa24429d17009bd5ee475e10a53be9b6 (diff) | |
| download | rust-06a1fc98eb93ca7062b11ec45053db990a4c127f.tar.gz rust-06a1fc98eb93ca7062b11ec45053db990a4c127f.zip | |
Correct meta item diagnostic
| -rw-r--r-- | compiler/rustc_attr/src/builtin.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index ffad7dcf557..e1eb014738f 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -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"] }, ), ); |
