Move #[do_not_recommend]
to the #[diagnostic]
namespace
This commit moves the `#[do_not_recommend]` attribute to the `#[diagnostic]` namespace. It still requires `#![feature(do_not_recommend)]` to work.
This commit is contained in:
parent
e8ada6ab25
commit
2cff3e90bc
22 changed files with 228 additions and 209 deletions
|
@ -341,7 +341,7 @@ passes_implied_feature_not_exist =
|
|||
feature `{$implied_by}` implying `{$feature}` does not exist
|
||||
|
||||
passes_incorrect_do_not_recommend_location =
|
||||
`#[do_not_recommend]` can only be placed on trait implementations
|
||||
`#[diagnostic::do_not_recommend]` can only be placed on trait implementations
|
||||
|
||||
passes_incorrect_meta_item = expected a quoted string literal
|
||||
passes_incorrect_meta_item_suggestion = consider surrounding this with quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue