@@ -23,10 +23,10 @@ pub struct UnconditionalRecursion {
2323#[ derive( LintDiagnostic ) ]
2424#[ diag( mir_build_unsafe_op_in_unsafe_fn_call_to_unsafe_fn_requires_unsafe) ]
2525#[ note]
26- pub struct UnsafeOpInUnsafeFnCallToUnsafeFunctionRequiresUnsafe < ' a > {
26+ pub struct UnsafeOpInUnsafeFnCallToUnsafeFunctionRequiresUnsafe {
2727 #[ label]
2828 pub span : Span ,
29- pub function : & ' a str ,
29+ pub function : String ,
3030 #[ subdiagnostic]
3131 pub unsafe_not_inherited_note : Option < UnsafeNotInheritedLintNote > ,
3232}
@@ -123,10 +123,10 @@ pub struct UnsafeOpInUnsafeFnBorrowOfLayoutConstrainedFieldRequiresUnsafe {
123123#[ derive( LintDiagnostic ) ]
124124#[ diag( mir_build_unsafe_op_in_unsafe_fn_call_to_fn_with_requires_unsafe) ]
125125#[ help]
126- pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe < ' a > {
126+ pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe {
127127 #[ label]
128128 pub span : Span ,
129- pub function : & ' a str ,
129+ pub function : String ,
130130 pub missing_target_features : DiagnosticArgValue ,
131131 pub missing_target_features_count : usize ,
132132 #[ note]
@@ -140,11 +140,11 @@ pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe<'a> {
140140#[ derive( Diagnostic ) ]
141141#[ diag( mir_build_call_to_unsafe_fn_requires_unsafe, code = E0133 ) ]
142142#[ note]
143- pub struct CallToUnsafeFunctionRequiresUnsafe < ' a > {
143+ pub struct CallToUnsafeFunctionRequiresUnsafe {
144144 #[ primary_span]
145145 #[ label]
146146 pub span : Span ,
147- pub function : & ' a str ,
147+ pub function : String ,
148148 #[ subdiagnostic]
149149 pub unsafe_not_inherited_note : Option < UnsafeNotInheritedNote > ,
150150}
@@ -163,11 +163,11 @@ pub struct CallToUnsafeFunctionRequiresUnsafeNameless {
163163#[ derive( Diagnostic ) ]
164164#[ diag( mir_build_call_to_unsafe_fn_requires_unsafe_unsafe_op_in_unsafe_fn_allowed, code = E0133 ) ]
165165#[ note]
166- pub struct CallToUnsafeFunctionRequiresUnsafeUnsafeOpInUnsafeFnAllowed < ' a > {
166+ pub struct CallToUnsafeFunctionRequiresUnsafeUnsafeOpInUnsafeFnAllowed {
167167 #[ primary_span]
168168 #[ label]
169169 pub span : Span ,
170- pub function : & ' a str ,
170+ pub function : String ,
171171 #[ subdiagnostic]
172172 pub unsafe_not_inherited_note : Option < UnsafeNotInheritedNote > ,
173173}
@@ -374,11 +374,11 @@ pub struct BorrowOfLayoutConstrainedFieldRequiresUnsafeUnsafeOpInUnsafeFnAllowed
374374#[ derive( Diagnostic ) ]
375375#[ diag( mir_build_call_to_fn_with_requires_unsafe, code = E0133 ) ]
376376#[ help]
377- pub struct CallToFunctionWithRequiresUnsafe < ' a > {
377+ pub struct CallToFunctionWithRequiresUnsafe {
378378 #[ primary_span]
379379 #[ label]
380380 pub span : Span ,
381- pub function : & ' a str ,
381+ pub function : String ,
382382 pub missing_target_features : DiagnosticArgValue ,
383383 pub missing_target_features_count : usize ,
384384 #[ note]
@@ -392,11 +392,11 @@ pub struct CallToFunctionWithRequiresUnsafe<'a> {
392392#[ derive( Diagnostic ) ]
393393#[ diag( mir_build_call_to_fn_with_requires_unsafe_unsafe_op_in_unsafe_fn_allowed, code = E0133 ) ]
394394#[ help]
395- pub struct CallToFunctionWithRequiresUnsafeUnsafeOpInUnsafeFnAllowed < ' a > {
395+ pub struct CallToFunctionWithRequiresUnsafeUnsafeOpInUnsafeFnAllowed {
396396 #[ primary_span]
397397 #[ label]
398398 pub span : Span ,
399- pub function : & ' a str ,
399+ pub function : String ,
400400 pub missing_target_features : DiagnosticArgValue ,
401401 pub missing_target_features_count : usize ,
402402 #[ note]
0 commit comments