@@ -217,7 +217,7 @@ pub(crate) struct DropImplOnWrongItem {
217
217
pub ( crate ) enum FieldAlreadyDeclared {
218
218
#[ diag( hir_analysis_field_already_declared, code = E0124 ) ]
219
219
NotNested {
220
- field_name : Symbol ,
220
+ field_name : Ident ,
221
221
#[ primary_span]
222
222
#[ label]
223
223
span : Span ,
@@ -226,7 +226,7 @@ pub(crate) enum FieldAlreadyDeclared {
226
226
} ,
227
227
#[ diag( hir_analysis_field_already_declared_current_nested) ]
228
228
CurrentNested {
229
- field_name : Symbol ,
229
+ field_name : Ident ,
230
230
#[ primary_span]
231
231
#[ label]
232
232
span : Span ,
@@ -239,7 +239,7 @@ pub(crate) enum FieldAlreadyDeclared {
239
239
} ,
240
240
#[ diag( hir_analysis_field_already_declared_previous_nested) ]
241
241
PreviousNested {
242
- field_name : Symbol ,
242
+ field_name : Ident ,
243
243
#[ primary_span]
244
244
#[ label]
245
245
span : Span ,
@@ -252,7 +252,7 @@ pub(crate) enum FieldAlreadyDeclared {
252
252
} ,
253
253
#[ diag( hir_analysis_field_already_declared_both_nested) ]
254
254
BothNested {
255
- field_name : Symbol ,
255
+ field_name : Ident ,
256
256
#[ primary_span]
257
257
#[ label]
258
258
span : Span ,
@@ -418,7 +418,7 @@ pub(crate) struct ValueOfAssociatedStructAlreadySpecified {
418
418
pub ( crate ) struct UnconstrainedOpaqueType {
419
419
#[ primary_span]
420
420
pub span : Span ,
421
- pub name : Symbol ,
421
+ pub name : Ident ,
422
422
pub what : & ' static str ,
423
423
}
424
424
@@ -802,7 +802,7 @@ pub(crate) struct EnumDiscriminantOverflowed {
802
802
#[ label]
803
803
pub span : Span ,
804
804
pub discr : String ,
805
- pub item_name : Symbol ,
805
+ pub item_name : Ident ,
806
806
pub wrapped_discr : String ,
807
807
}
808
808
@@ -893,15 +893,15 @@ pub(crate) enum ImplNotMarkedDefault {
893
893
span : Span ,
894
894
#[ label( hir_analysis_ok_label) ]
895
895
ok_label : Span ,
896
- ident : Symbol ,
896
+ ident : Ident ,
897
897
} ,
898
898
#[ diag( hir_analysis_impl_not_marked_default_err, code = E0520 ) ]
899
899
#[ note]
900
900
Err {
901
901
#[ primary_span]
902
902
span : Span ,
903
903
cname : Symbol ,
904
- ident : Symbol ,
904
+ ident : Ident ,
905
905
} ,
906
906
}
907
907
@@ -977,7 +977,7 @@ pub(crate) struct MissingTraitItemUnstable {
977
977
pub some_note : bool ,
978
978
#[ note( hir_analysis_none_note) ]
979
979
pub none_note : bool ,
980
- pub missing_item_name : Symbol ,
980
+ pub missing_item_name : Ident ,
981
981
pub feature : Symbol ,
982
982
pub reason : String ,
983
983
}
@@ -1249,7 +1249,7 @@ pub(crate) struct InherentNominal {
1249
1249
pub ( crate ) struct DispatchFromDynZST < ' a > {
1250
1250
#[ primary_span]
1251
1251
pub span : Span ,
1252
- pub name : Symbol ,
1252
+ pub name : Ident ,
1253
1253
pub ty : Ty < ' a > ,
1254
1254
}
1255
1255
@@ -1389,7 +1389,7 @@ pub(crate) struct TyParamFirstLocal<'tcx> {
1389
1389
pub span : Span ,
1390
1390
#[ note( hir_analysis_case_note) ]
1391
1391
pub note : ( ) ,
1392
- pub param : Symbol ,
1392
+ pub param : Ident ,
1393
1393
pub local_type : Ty < ' tcx > ,
1394
1394
}
1395
1395
@@ -1401,7 +1401,7 @@ pub(crate) struct TyParamFirstLocalLint<'tcx> {
1401
1401
pub span : Span ,
1402
1402
#[ note( hir_analysis_case_note) ]
1403
1403
pub note : ( ) ,
1404
- pub param : Symbol ,
1404
+ pub param : Ident ,
1405
1405
pub local_type : Ty < ' tcx > ,
1406
1406
}
1407
1407
@@ -1414,7 +1414,7 @@ pub(crate) struct TyParamSome {
1414
1414
pub span : Span ,
1415
1415
#[ note( hir_analysis_only_note) ]
1416
1416
pub note : ( ) ,
1417
- pub param : Symbol ,
1417
+ pub param : Ident ,
1418
1418
}
1419
1419
1420
1420
#[ derive( LintDiagnostic ) ]
@@ -1425,7 +1425,7 @@ pub(crate) struct TyParamSomeLint {
1425
1425
pub span : Span ,
1426
1426
#[ note( hir_analysis_only_note) ]
1427
1427
pub note : ( ) ,
1428
- pub param : Symbol ,
1428
+ pub param : Ident ,
1429
1429
}
1430
1430
1431
1431
#[ derive( Diagnostic ) ]
@@ -1533,7 +1533,7 @@ pub(crate) struct UnsupportedDelegation<'a> {
1533
1533
pub ( crate ) struct MethodShouldReturnFuture {
1534
1534
#[ primary_span]
1535
1535
pub span : Span ,
1536
- pub method_name : Symbol ,
1536
+ pub method_name : Ident ,
1537
1537
#[ note]
1538
1538
pub trait_item_span : Option < Span > ,
1539
1539
}
@@ -1585,7 +1585,7 @@ pub(crate) struct UnconstrainedGenericParameter {
1585
1585
#[ primary_span]
1586
1586
#[ label]
1587
1587
pub span : Span ,
1588
- pub param_name : Symbol ,
1588
+ pub param_name : Ident ,
1589
1589
pub param_def_kind : & ' static str ,
1590
1590
#[ note( hir_analysis_const_param_note) ]
1591
1591
pub const_param_note : bool ,
0 commit comments