File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
compiler/rustc_macros/src/diagnostics Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,19 @@ impl<'a> DiagnosticDerive<'a> {
7979
8080 let DiagnosticDeriveKind :: Diagnostic { dcx } = & builder. kind else { unreachable ! ( ) } ;
8181
82+ // A lifetime of `'a` causes conflicts, but `_sess` is fine.
8283 let mut imp = structure. gen_impl ( quote ! {
83- gen impl <' __diagnostic_handler_sess , G >
84- rustc_errors:: IntoDiagnostic <' __diagnostic_handler_sess , G >
84+ gen impl <' _sess , G >
85+ rustc_errors:: IntoDiagnostic <' _sess , G >
8586 for @Self
8687 where G : rustc_errors:: EmissionGuarantee
8788 {
8889
8990 #[ track_caller]
9091 fn into_diagnostic(
9192 self ,
92- #dcx: & ' __diagnostic_handler_sess rustc_errors:: DiagCtxt
93- ) -> rustc_errors:: DiagnosticBuilder <' __diagnostic_handler_sess , G > {
93+ #dcx: & ' _sess rustc_errors:: DiagCtxt
94+ ) -> rustc_errors:: DiagnosticBuilder <' _sess , G > {
9495 use rustc_errors:: IntoDiagnosticArg ;
9596 #implementation
9697 }
You can’t perform that action at this time.
0 commit comments