diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-05-17 15:15:53 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-05-17 15:15:53 +0200 |
| commit | 9ffd0bf75a30b4fce1ffa35732666a37a7e9a736 (patch) | |
| tree | f4b1ccb46d46ac9325d9702e59fadcf365dbdc6c /compiler/rustc_trait_selection/src/errors.rs | |
| parent | c9b6ccc11ce82c753702716f57f786acf322e64f (diff) | |
| download | rust-9ffd0bf75a30b4fce1ffa35732666a37a7e9a736.tar.gz rust-9ffd0bf75a30b4fce1ffa35732666a37a7e9a736.zip | |
do away with `_Self` and `TraitName` and check generic params for rustc_on_unimplemented
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/errors.rs b/compiler/rustc_trait_selection/src/errors.rs index 8ab4d795c45..779c861637a 100644 --- a/compiler/rustc_trait_selection/src/errors.rs +++ b/compiler/rustc_trait_selection/src/errors.rs @@ -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)] |
