@@ -217,7 +217,7 @@ pub(crate) struct DropImplOnWrongItem {
217217pub ( crate ) enum FieldAlreadyDeclared {
218218 #[ diag( hir_analysis_field_already_declared, code = E0124 ) ]
219219 NotNested {
220- field_name : Symbol ,
220+ field_name : Ident ,
221221 #[ primary_span]
222222 #[ label]
223223 span : Span ,
@@ -226,7 +226,7 @@ pub(crate) enum FieldAlreadyDeclared {
226226 } ,
227227 #[ diag( hir_analysis_field_already_declared_current_nested) ]
228228 CurrentNested {
229- field_name : Symbol ,
229+ field_name : Ident ,
230230 #[ primary_span]
231231 #[ label]
232232 span : Span ,
@@ -239,7 +239,7 @@ pub(crate) enum FieldAlreadyDeclared {
239239 } ,
240240 #[ diag( hir_analysis_field_already_declared_previous_nested) ]
241241 PreviousNested {
242- field_name : Symbol ,
242+ field_name : Ident ,
243243 #[ primary_span]
244244 #[ label]
245245 span : Span ,
@@ -252,7 +252,7 @@ pub(crate) enum FieldAlreadyDeclared {
252252 } ,
253253 #[ diag( hir_analysis_field_already_declared_both_nested) ]
254254 BothNested {
255- field_name : Symbol ,
255+ field_name : Ident ,
256256 #[ primary_span]
257257 #[ label]
258258 span : Span ,
@@ -418,7 +418,7 @@ pub(crate) struct ValueOfAssociatedStructAlreadySpecified {
418418pub ( crate ) struct UnconstrainedOpaqueType {
419419 #[ primary_span]
420420 pub span : Span ,
421- pub name : Symbol ,
421+ pub name : Ident ,
422422 pub what : & ' static str ,
423423}
424424
@@ -802,7 +802,7 @@ pub(crate) struct EnumDiscriminantOverflowed {
802802 #[ label]
803803 pub span : Span ,
804804 pub discr : String ,
805- pub item_name : Symbol ,
805+ pub item_name : Ident ,
806806 pub wrapped_discr : String ,
807807}
808808
@@ -893,15 +893,15 @@ pub(crate) enum ImplNotMarkedDefault {
893893 span : Span ,
894894 #[ label( hir_analysis_ok_label) ]
895895 ok_label : Span ,
896- ident : Symbol ,
896+ ident : Ident ,
897897 } ,
898898 #[ diag( hir_analysis_impl_not_marked_default_err, code = E0520 ) ]
899899 #[ note]
900900 Err {
901901 #[ primary_span]
902902 span : Span ,
903903 cname : Symbol ,
904- ident : Symbol ,
904+ ident : Ident ,
905905 } ,
906906}
907907
@@ -977,7 +977,7 @@ pub(crate) struct MissingTraitItemUnstable {
977977 pub some_note : bool ,
978978 #[ note( hir_analysis_none_note) ]
979979 pub none_note : bool ,
980- pub missing_item_name : Symbol ,
980+ pub missing_item_name : Ident ,
981981 pub feature : Symbol ,
982982 pub reason : String ,
983983}
@@ -1249,7 +1249,7 @@ pub(crate) struct InherentNominal {
12491249pub ( crate ) struct DispatchFromDynZST < ' a > {
12501250 #[ primary_span]
12511251 pub span : Span ,
1252- pub name : Symbol ,
1252+ pub name : Ident ,
12531253 pub ty : Ty < ' a > ,
12541254}
12551255
@@ -1389,7 +1389,7 @@ pub(crate) struct TyParamFirstLocal<'tcx> {
13891389 pub span : Span ,
13901390 #[ note( hir_analysis_case_note) ]
13911391 pub note : ( ) ,
1392- pub param : Symbol ,
1392+ pub param : Ident ,
13931393 pub local_type : Ty < ' tcx > ,
13941394}
13951395
@@ -1401,7 +1401,7 @@ pub(crate) struct TyParamFirstLocalLint<'tcx> {
14011401 pub span : Span ,
14021402 #[ note( hir_analysis_case_note) ]
14031403 pub note : ( ) ,
1404- pub param : Symbol ,
1404+ pub param : Ident ,
14051405 pub local_type : Ty < ' tcx > ,
14061406}
14071407
@@ -1414,7 +1414,7 @@ pub(crate) struct TyParamSome {
14141414 pub span : Span ,
14151415 #[ note( hir_analysis_only_note) ]
14161416 pub note : ( ) ,
1417- pub param : Symbol ,
1417+ pub param : Ident ,
14181418}
14191419
14201420#[ derive( LintDiagnostic ) ]
@@ -1425,7 +1425,7 @@ pub(crate) struct TyParamSomeLint {
14251425 pub span : Span ,
14261426 #[ note( hir_analysis_only_note) ]
14271427 pub note : ( ) ,
1428- pub param : Symbol ,
1428+ pub param : Ident ,
14291429}
14301430
14311431#[ derive( Diagnostic ) ]
@@ -1533,7 +1533,7 @@ pub(crate) struct UnsupportedDelegation<'a> {
15331533pub ( crate ) struct MethodShouldReturnFuture {
15341534 #[ primary_span]
15351535 pub span : Span ,
1536- pub method_name : Symbol ,
1536+ pub method_name : Ident ,
15371537 #[ note]
15381538 pub trait_item_span : Option < Span > ,
15391539}
@@ -1585,7 +1585,7 @@ pub(crate) struct UnconstrainedGenericParameter {
15851585 #[ primary_span]
15861586 #[ label]
15871587 pub span : Span ,
1588- pub param_name : Symbol ,
1588+ pub param_name : Ident ,
15891589 pub param_def_kind : & ' static str ,
15901590 #[ note( hir_analysis_const_param_note) ]
15911591 pub const_param_note : bool ,
0 commit comments