@@ -135,9 +135,6 @@ pub fn decorate_builtin_lint(
135135 stability:: Deprecated { sub, kind : "macro" . to_owned ( ) , path, note, since_kind }
136136 . decorate_lint ( diag) ;
137137 }
138- BuiltinLintDiag :: UnusedDocComment ( attr_span) => {
139- lints:: UnusedDocComment { span : attr_span } . decorate_lint ( diag) ;
140- }
141138 BuiltinLintDiag :: PatternsInFnsWithoutBody { span : remove_span, ident, is_foreign } => {
142139 let sub = lints:: PatternsInFnsWithoutBodySub { ident, span : remove_span } ;
143140 if is_foreign {
@@ -147,9 +144,6 @@ pub fn decorate_builtin_lint(
147144 }
148145 . decorate_lint ( diag) ;
149146 }
150- BuiltinLintDiag :: LegacyDeriveHelpers ( label_span) => {
151- lints:: LegacyDeriveHelpers { span : label_span } . decorate_lint ( diag) ;
152- }
153147 BuiltinLintDiag :: OrPatternsBackCompat ( suggestion_span, suggestion) => {
154148 lints:: OrPatternsBackCompat { span : suggestion_span, suggestion } . decorate_lint ( diag) ;
155149 }
@@ -210,9 +204,6 @@ pub fn decorate_builtin_lint(
210204 } ;
211205 lints:: DeprecatedWhereClauseLocation { suggestion } . decorate_lint ( diag) ;
212206 }
213- BuiltinLintDiag :: MissingUnsafeOnExtern { suggestion } => {
214- lints:: MissingUnsafeOnExtern { suggestion } . decorate_lint ( diag) ;
215- }
216207 BuiltinLintDiag :: SingleUseLifetime {
217208 param_span,
218209 use_span : Some ( ( use_span, elide) ) ,
@@ -242,7 +233,6 @@ pub fn decorate_builtin_lint(
242233 . decorate_lint ( diag) ;
243234 }
244235 BuiltinLintDiag :: SingleUseLifetime { use_span : None , deletion_span, ident, .. } => {
245- debug ! ( ?deletion_span) ;
246236 lints:: UnusedLifetime { deletion_span, ident } . decorate_lint ( diag) ;
247237 }
248238 BuiltinLintDiag :: NamedArgumentUsedPositionally {
@@ -283,9 +273,6 @@ pub fn decorate_builtin_lint(
283273 BuiltinLintDiag :: ByteSliceInPackedStructWithDerive { ty } => {
284274 lints:: ByteSliceInPackedStructWithDerive { ty } . decorate_lint ( diag) ;
285275 }
286- BuiltinLintDiag :: UnusedExternCrate { span, removal_span } => {
287- lints:: UnusedExternCrate { span, removal_span } . decorate_lint ( diag) ;
288- }
289276 BuiltinLintDiag :: ExternCrateNotIdiomatic { vis_span, ident_span } => {
290277 let suggestion_span = vis_span. between ( ident_span) ;
291278 let code = if vis_span. is_empty ( ) { "use " } else { " use " } ;
0 commit comments