2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ impl<'a> DiagnosticDerive<'a> {
71
71
} ) ;
72
72
73
73
// A lifetime of `'a` causes conflicts, but `_sess` is fine.
74
+ // FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
75
+ #[ allow( keyword_idents_2024) ]
74
76
let mut imp = structure. gen_impl ( quote ! {
75
77
gen impl <' _sess, G > rustc_errors:: Diagnostic <' _sess, G > for @Self
76
78
where G : rustc_errors:: EmissionGuarantee
@@ -148,6 +150,8 @@ impl<'a> LintDiagnosticDerive<'a> {
148
150
}
149
151
} ) ;
150
152
153
+ // FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
154
+ #[ allow( keyword_idents_2024) ]
151
155
let mut imp = structure. gen_impl ( quote ! {
152
156
gen impl <' __a> rustc_errors:: LintDiagnostic <' __a, ( ) > for @Self {
153
157
#[ track_caller]
Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ impl SubdiagnosticDerive {
86
86
87
87
let diag = & self . diag ;
88
88
let f = & self . f ;
89
+
90
+ // FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
91
+ #[ allow( keyword_idents_2024) ]
89
92
let ret = structure. gen_impl ( quote ! {
90
93
gen impl rustc_errors:: Subdiagnostic for @Self {
91
94
fn add_to_diag_with<__G, __F>(
@@ -100,6 +103,7 @@ impl SubdiagnosticDerive {
100
103
}
101
104
}
102
105
} ) ;
106
+
103
107
ret
104
108
}
105
109
}
0 commit comments