non_local_defs: improve exception note for impl and macro_rules!

- Remove wrong exception text for non-local macro_rules!
 - Simplify anonymous const exception note
This commit is contained in:
Urgau 2024-05-15 07:54:37 +02:00
parent 22095fbd8d
commit 402580bcd5
7 changed files with 6 additions and 14 deletions

View file

@ -1421,7 +1421,6 @@ impl<'a> LintDiagnostic<'a, ()> for NonLocalDefinitionsDiag {
}
diag.note(fluent::lint_non_local);
diag.note(fluent::lint_exception);
diag.note(fluent::lint_non_local_definitions_deprecation);
if let Some(cargo_update) = cargo_update {