File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1535,7 +1535,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1535
1535
..
1536
1536
} ) => {
1537
1537
if ty. is_none ( ) {
1538
- self . session . emit_err ( AssocTyWithoutBody {
1538
+ self . session . emit_err ( ImplAssocTyWithoutBody {
1539
1539
span : item. span ,
1540
1540
replace_span : self . ending_semi_or_hi ( item. span ) ,
1541
1541
} ) ;
Original file line number Diff line number Diff line change @@ -160,8 +160,8 @@ pub struct AssocFnWithoutBody {
160
160
}
161
161
162
162
#[ derive( Diagnostic ) ]
163
- #[ diag( ast_passes_assoc_ty_without_body ) ]
164
- pub struct AssocTypeWithoutBody {
163
+ #[ diag( ast_passes_impl_assoc_ty_without_body ) ]
164
+ pub struct ImplAssocTyWithoutBody {
165
165
#[ primary_span]
166
166
pub span : Span ,
167
167
#[ suggestion( code = " = <type>;" , applicability = "has-placeholders" ) ]
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ ast_passes_assoc_fn_without_body =
69
69
associated function in `impl` without body
70
70
.suggestion = provide a definition for the function
71
71
72
- ast_passes_assoc_ty_without_body =
72
+ ast_passes_impl_assoc_ty_without_body =
73
73
associated type in `impl` without body
74
74
.suggestion = provide a definition for the type
75
75
You can’t perform that action at this time.
0 commit comments