@@ -135,9 +135,6 @@ pub fn decorate_builtin_lint(
135
135
stability:: Deprecated { sub, kind : "macro" . to_owned ( ) , path, note, since_kind }
136
136
. decorate_lint ( diag) ;
137
137
}
138
- BuiltinLintDiag :: UnusedDocComment ( attr_span) => {
139
- lints:: UnusedDocComment { span : attr_span } . decorate_lint ( diag) ;
140
- }
141
138
BuiltinLintDiag :: PatternsInFnsWithoutBody { span : remove_span, ident, is_foreign } => {
142
139
let sub = lints:: PatternsInFnsWithoutBodySub { ident, span : remove_span } ;
143
140
if is_foreign {
@@ -147,9 +144,6 @@ pub fn decorate_builtin_lint(
147
144
}
148
145
. decorate_lint ( diag) ;
149
146
}
150
- BuiltinLintDiag :: LegacyDeriveHelpers ( label_span) => {
151
- lints:: LegacyDeriveHelpers { span : label_span } . decorate_lint ( diag) ;
152
- }
153
147
BuiltinLintDiag :: OrPatternsBackCompat ( suggestion_span, suggestion) => {
154
148
lints:: OrPatternsBackCompat { span : suggestion_span, suggestion } . decorate_lint ( diag) ;
155
149
}
@@ -210,9 +204,6 @@ pub fn decorate_builtin_lint(
210
204
} ;
211
205
lints:: DeprecatedWhereClauseLocation { suggestion } . decorate_lint ( diag) ;
212
206
}
213
- BuiltinLintDiag :: MissingUnsafeOnExtern { suggestion } => {
214
- lints:: MissingUnsafeOnExtern { suggestion } . decorate_lint ( diag) ;
215
- }
216
207
BuiltinLintDiag :: SingleUseLifetime {
217
208
param_span,
218
209
use_span : Some ( ( use_span, elide) ) ,
@@ -242,7 +233,6 @@ pub fn decorate_builtin_lint(
242
233
. decorate_lint ( diag) ;
243
234
}
244
235
BuiltinLintDiag :: SingleUseLifetime { use_span : None , deletion_span, ident, .. } => {
245
- debug ! ( ?deletion_span) ;
246
236
lints:: UnusedLifetime { deletion_span, ident } . decorate_lint ( diag) ;
247
237
}
248
238
BuiltinLintDiag :: NamedArgumentUsedPositionally {
@@ -283,9 +273,6 @@ pub fn decorate_builtin_lint(
283
273
BuiltinLintDiag :: ByteSliceInPackedStructWithDerive { ty } => {
284
274
lints:: ByteSliceInPackedStructWithDerive { ty } . decorate_lint ( diag) ;
285
275
}
286
- BuiltinLintDiag :: UnusedExternCrate { span, removal_span } => {
287
- lints:: UnusedExternCrate { span, removal_span } . decorate_lint ( diag) ;
288
- }
289
276
BuiltinLintDiag :: ExternCrateNotIdiomatic { vis_span, ident_span } => {
290
277
let suggestion_span = vis_span. between ( ident_span) ;
291
278
let code = if vis_span. is_empty ( ) { "use " } else { " use " } ;
0 commit comments