1
Fork 0

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:
Georg Semmler 2024-05-10 14:12:30 +02:00
parent e8ada6ab25
commit 2cff3e90bc
No known key found for this signature in database
GPG key ID: A87BCEE5205CE489
22 changed files with 228 additions and 209 deletions

View file

@ -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