@@ -91,9 +91,9 @@ pub struct BuiltinEllipsisInclusiveRangePatterns {
91
91
92
92
#[ derive( Subdiagnostic ) ]
93
93
#[ note( lint_requested_level) ]
94
- pub struct RequestedLevel {
94
+ pub struct RequestedLevel < ' a > {
95
95
pub level : Level ,
96
- pub lint_name : String ,
96
+ pub lint_name : & ' a str ,
97
97
}
98
98
99
99
#[ derive( Diagnostic ) ]
@@ -102,13 +102,13 @@ pub struct UnsupportedGroup {
102
102
pub lint_group : String ,
103
103
}
104
104
105
- pub struct CheckNameUnknown {
106
- pub lint_name : String ,
105
+ pub struct CheckNameUnknown < ' a > {
106
+ pub lint_name : & ' a str ,
107
107
pub suggestion : Option < Symbol > ,
108
- pub sub : RequestedLevel ,
108
+ pub sub : RequestedLevel < ' a > ,
109
109
}
110
110
111
- impl IntoDiagnostic < ' _ > for CheckNameUnknown {
111
+ impl IntoDiagnostic < ' _ > for CheckNameUnknown < ' _ > {
112
112
fn into_diagnostic (
113
113
self ,
114
114
handler : & Handler ,
@@ -127,35 +127,35 @@ impl IntoDiagnostic<'_> for CheckNameUnknown {
127
127
128
128
#[ derive( Diagnostic ) ]
129
129
#[ diag( lint_check_name_unknown_tool, code = "E0602" ) ]
130
- pub struct CheckNameUnknownTool {
130
+ pub struct CheckNameUnknownTool < ' a > {
131
131
pub tool_name : Symbol ,
132
132
#[ subdiagnostic]
133
- pub sub : RequestedLevel ,
133
+ pub sub : RequestedLevel < ' a > ,
134
134
}
135
135
136
136
#[ derive( Diagnostic ) ]
137
137
#[ diag( lint_check_name_renamed) ]
138
- pub struct CheckNameRenamed {
139
- pub lint_name : String ,
140
- pub replace : String ,
138
+ pub struct CheckNameRenamed < ' a > {
139
+ pub lint_name : & ' a str ,
140
+ pub replace : & ' a str ,
141
141
#[ subdiagnostic]
142
- pub sub : RequestedLevel ,
142
+ pub sub : RequestedLevel < ' a > ,
143
143
}
144
144
145
145
#[ derive( Diagnostic ) ]
146
146
#[ diag( lint_check_name_removed) ]
147
- pub struct CheckNameRemoved {
148
- pub lint_name : String ,
149
- pub reason : String ,
147
+ pub struct CheckNameRemoved < ' a > {
148
+ pub lint_name : & ' a str ,
149
+ pub reason : & ' a str ,
150
150
#[ subdiagnostic]
151
- pub sub : RequestedLevel ,
151
+ pub sub : RequestedLevel < ' a > ,
152
152
}
153
153
154
154
#[ derive( Diagnostic ) ]
155
155
#[ diag( lint_check_name_deprecated) ]
156
- pub struct CheckNameDeprecated {
157
- pub lint_name : String ,
158
- pub new_name : String ,
156
+ pub struct CheckNameDeprecated < ' a > {
157
+ pub lint_name : & ' a str ,
158
+ pub new_name : & ' a str ,
159
159
#[ subdiagnostic]
160
- pub sub : RequestedLevel ,
160
+ pub sub : RequestedLevel < ' a > ,
161
161
}
0 commit comments