File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -1242,7 +1242,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1242
1242
} ) => {
1243
1243
self . check_defaultness ( fi. span , * defaultness) ;
1244
1244
self . check_foreign_kind_bodyless ( fi. ident , "type" , ty. as_ref ( ) . map ( |b| b. span ) ) ;
1245
- self . check_type_no_bounds ( bounds, |span| ForeignTypeWithBound { span } ) ;
1245
+ self . check_type_no_bounds ( bounds, |span| ForeignTyWithBound { span } ) ;
1246
1246
self . check_foreign_ty_genericless ( generics, where_clauses. 0 . 1 ) ;
1247
1247
self . check_foreign_item_ascii_only ( fi. ident ) ;
1248
1248
}
@@ -1535,12 +1535,12 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1535
1535
..
1536
1536
} ) => {
1537
1537
if ty. is_none ( ) {
1538
- self . session . emit_err ( AssocTypeWithoutBody {
1538
+ self . session . emit_err ( AssocTyWithoutBody {
1539
1539
span : item. span ,
1540
1540
replace_span : self . ending_semi_or_hi ( item. span ) ,
1541
1541
} ) ;
1542
1542
}
1543
- self . check_type_no_bounds ( bounds, |span| ImplAssocTypeWithBound { span } ) ;
1543
+ self . check_type_no_bounds ( bounds, |span| ImplAssocTyWithBound { span } ) ;
1544
1544
if ty. is_some ( ) {
1545
1545
self . check_gat_where (
1546
1546
item. id ,
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ pub struct AssocFnWithoutBody {
160
160
}
161
161
162
162
#[ derive( Diagnostic ) ]
163
- #[ diag( ast_passes_assoc_type_without_body ) ]
163
+ #[ diag( ast_passes_assoc_ty_without_body ) ]
164
164
pub struct AssocTypeWithoutBody {
165
165
#[ primary_span]
166
166
pub span : Span ,
@@ -225,23 +225,23 @@ pub enum ExternBlockSuggestion {
225
225
} ,
226
226
}
227
227
228
- #[ derive( SessionDiagnostic ) ]
229
- #[ diag( ast_passes :: ty_alias_with_bound ) ]
228
+ #[ derive( Diagnostic ) ]
229
+ #[ diag( ast_passes_ty_alias_with_bound ) ]
230
230
pub struct TyAliasWithBound {
231
231
#[ primary_span]
232
232
pub span : Span ,
233
233
}
234
234
235
- #[ derive( SessionDiagnostic ) ]
236
- #[ diag( ast_passes :: foreign_type_with_bound ) ]
237
- pub struct ForeignTypeWithBound {
235
+ #[ derive( Diagnostic ) ]
236
+ #[ diag( ast_passes_foreign_ty_with_bound ) ]
237
+ pub struct ForeignTyWithBound {
238
238
#[ primary_span]
239
239
pub span : Span ,
240
240
}
241
241
242
- #[ derive( SessionDiagnostic ) ]
243
- #[ diag( ast_passes :: impl_assoc_type_with_bound ) ]
244
- pub struct ImplAssocTypeWithBound {
242
+ #[ derive( Diagnostic ) ]
243
+ #[ diag( ast_passes_impl_assoc_ty_with_bound ) ]
244
+ pub struct ImplAssocTyWithBound {
245
245
#[ primary_span]
246
246
pub span : Span ,
247
247
}
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_type_without_body =
72
+ ast_passes_assoc_ty_without_body =
73
73
associated type in `impl` without body
74
74
.suggestion = provide a definition for the type
75
75
@@ -94,8 +94,8 @@ ast_passes_extern_block_suggestion = if you meant to declare an externally defin
94
94
ast_passes_ty_alias_with_bound =
95
95
bounds on `type`s in this context have no effect
96
96
97
- ast_passes_foreign_type_with_bound =
97
+ ast_passes_foreign_ty_with_bound =
98
98
bounds on `type`s in `extern` blocks have no effect
99
99
100
- ast_passes_impl_assoc_type_with_bound =
100
+ ast_passes_impl_assoc_ty_with_bound =
101
101
bounds on `type`s in `impl`s have no effect
You can’t perform that action at this time.
0 commit comments