diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-07-30 18:00:53 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-11 16:58:21 -0500 |
| commit | 3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655 (patch) | |
| tree | 8eb1d8cae95b4d555250443f0eb14972125a95f4 /compiler/rustc_parse/src/errors.rs | |
| parent | fa733909edadf390cde8c36c303bce42d37f7a3b (diff) | |
| download | rust-3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655.tar.gz rust-3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655.zip | |
Tweak trait modifier errors
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 2a704ee61ec..a07d0606fd0 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -73,16 +73,16 @@ pub(crate) struct BadQPathStage2 { #[derive(Diagnostic)] #[diag(parse_trait_impl_modifier_in_inherent_impl)] -pub(crate) struct TraitImplModifierInInherentImpl<'a> { +#[note] +pub(crate) struct TraitImplModifierInInherentImpl { #[primary_span] pub span: Span, + pub modifier: &'static str, + pub modifier_name: &'static str, #[label(parse_because)] - pub annotation_span: Span, - pub annotation: &'a str, + pub modifier_span: Span, #[label(parse_type)] pub self_ty: Span, - #[note(parse_only_trait)] - pub only_trait: bool, } #[derive(Subdiagnostic)] |
