do away with _Self and TraitName and check generic params for rustc_on_unimplemented

This commit is contained in:
mejrs
2025-05-17 15:15:53 +02:00
parent c9b6ccc11c
commit 9ffd0bf75a
14 changed files with 152 additions and 138 deletions

View File

@@ -72,6 +72,13 @@ pub enum InvalidOnClause {
span: Span,
invalid_flag: Symbol,
},
#[diag(trait_selection_rustc_on_unimplemented_invalid_name, code = E0232)]
InvalidName {
#[primary_span]
#[label]
span: Span,
invalid_name: Symbol,
},
}
#[derive(Diagnostic)]