diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-12-20 15:22:06 +0100 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-12-20 19:39:46 +0100 |
| commit | 5e4f12b41a13d6adf883cfeae8a17724ea457faf (patch) | |
| tree | dc503e9554557b08835ac3127af07a47c29018e2 /compiler/rustc_ast_passes/src/errors.rs | |
| parent | bf9229a2e366b4c311f059014a4aa08af16de5d8 (diff) | |
| download | rust-5e4f12b41a13d6adf883cfeae8a17724ea457faf.tar.gz rust-5e4f12b41a13d6adf883cfeae8a17724ea457faf.zip | |
Refactor AST trait bound modifiers
Diffstat (limited to 'compiler/rustc_ast_passes/src/errors.rs')
| -rw-r--r-- | compiler/rustc_ast_passes/src/errors.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_ast_passes/src/errors.rs b/compiler/rustc_ast_passes/src/errors.rs index 4283fc7c07d..4d1ae04169a 100644 --- a/compiler/rustc_ast_passes/src/errors.rs +++ b/compiler/rustc_ast_passes/src/errors.rs @@ -580,11 +580,12 @@ pub enum TildeConstReason { } #[derive(Diagnostic)] -#[diag(ast_passes_optional_const_exclusive)] -pub struct OptionalConstExclusive { +#[diag(ast_passes_incompatible_trait_bound_modifiers)] +pub struct IncompatibleTraitBoundModifiers { #[primary_span] pub span: Span, - pub modifier: &'static str, + pub left: &'static str, + pub right: &'static str, } #[derive(Diagnostic)] |
