@@ -23,10 +23,10 @@ pub struct UnconditionalRecursion {
23
23
#[ derive( LintDiagnostic ) ]
24
24
#[ diag( mir_build_unsafe_op_in_unsafe_fn_call_to_unsafe_fn_requires_unsafe) ]
25
25
#[ note]
26
- pub struct UnsafeOpInUnsafeFnCallToUnsafeFunctionRequiresUnsafe < ' a > {
26
+ pub struct UnsafeOpInUnsafeFnCallToUnsafeFunctionRequiresUnsafe {
27
27
#[ label]
28
28
pub span : Span ,
29
- pub function : & ' a str ,
29
+ pub function : String ,
30
30
#[ subdiagnostic]
31
31
pub unsafe_not_inherited_note : Option < UnsafeNotInheritedLintNote > ,
32
32
}
@@ -123,10 +123,10 @@ pub struct UnsafeOpInUnsafeFnBorrowOfLayoutConstrainedFieldRequiresUnsafe {
123
123
#[ derive( LintDiagnostic ) ]
124
124
#[ diag( mir_build_unsafe_op_in_unsafe_fn_call_to_fn_with_requires_unsafe) ]
125
125
#[ help]
126
- pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe < ' a > {
126
+ pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe {
127
127
#[ label]
128
128
pub span : Span ,
129
- pub function : & ' a str ,
129
+ pub function : String ,
130
130
pub missing_target_features : DiagnosticArgValue ,
131
131
pub missing_target_features_count : usize ,
132
132
#[ note]
@@ -140,11 +140,11 @@ pub struct UnsafeOpInUnsafeFnCallToFunctionWithRequiresUnsafe<'a> {
140
140
#[ derive( Diagnostic ) ]
141
141
#[ diag( mir_build_call_to_unsafe_fn_requires_unsafe, code = E0133 ) ]
142
142
#[ note]
143
- pub struct CallToUnsafeFunctionRequiresUnsafe < ' a > {
143
+ pub struct CallToUnsafeFunctionRequiresUnsafe {
144
144
#[ primary_span]
145
145
#[ label]
146
146
pub span : Span ,
147
- pub function : & ' a str ,
147
+ pub function : String ,
148
148
#[ subdiagnostic]
149
149
pub unsafe_not_inherited_note : Option < UnsafeNotInheritedNote > ,
150
150
}
@@ -163,11 +163,11 @@ pub struct CallToUnsafeFunctionRequiresUnsafeNameless {
163
163
#[ derive( Diagnostic ) ]
164
164
#[ diag( mir_build_call_to_unsafe_fn_requires_unsafe_unsafe_op_in_unsafe_fn_allowed, code = E0133 ) ]
165
165
#[ note]
166
- pub struct CallToUnsafeFunctionRequiresUnsafeUnsafeOpInUnsafeFnAllowed < ' a > {
166
+ pub struct CallToUnsafeFunctionRequiresUnsafeUnsafeOpInUnsafeFnAllowed {
167
167
#[ primary_span]
168
168
#[ label]
169
169
pub span : Span ,
170
- pub function : & ' a str ,
170
+ pub function : String ,
171
171
#[ subdiagnostic]
172
172
pub unsafe_not_inherited_note : Option < UnsafeNotInheritedNote > ,
173
173
}
@@ -374,11 +374,11 @@ pub struct BorrowOfLayoutConstrainedFieldRequiresUnsafeUnsafeOpInUnsafeFnAllowed
374
374
#[ derive( Diagnostic ) ]
375
375
#[ diag( mir_build_call_to_fn_with_requires_unsafe, code = E0133 ) ]
376
376
#[ help]
377
- pub struct CallToFunctionWithRequiresUnsafe < ' a > {
377
+ pub struct CallToFunctionWithRequiresUnsafe {
378
378
#[ primary_span]
379
379
#[ label]
380
380
pub span : Span ,
381
- pub function : & ' a str ,
381
+ pub function : String ,
382
382
pub missing_target_features : DiagnosticArgValue ,
383
383
pub missing_target_features_count : usize ,
384
384
#[ note]
@@ -392,11 +392,11 @@ pub struct CallToFunctionWithRequiresUnsafe<'a> {
392
392
#[ derive( Diagnostic ) ]
393
393
#[ diag( mir_build_call_to_fn_with_requires_unsafe_unsafe_op_in_unsafe_fn_allowed, code = E0133 ) ]
394
394
#[ help]
395
- pub struct CallToFunctionWithRequiresUnsafeUnsafeOpInUnsafeFnAllowed < ' a > {
395
+ pub struct CallToFunctionWithRequiresUnsafeUnsafeOpInUnsafeFnAllowed {
396
396
#[ primary_span]
397
397
#[ label]
398
398
pub span : Span ,
399
- pub function : & ' a str ,
399
+ pub function : String ,
400
400
pub missing_target_features : DiagnosticArgValue ,
401
401
pub missing_target_features_count : usize ,
402
402
#[ note]
0 commit comments