Skip to content

Commit d9e997d

Browse files
committed
Remove useless variant.
1 parent 4a66a70 commit d9e997d

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

compiler/rustc_lint/src/context.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ use ast::util::unicode::TEXT_FLOW_CONTROL_CHARS;
2222
use rustc_ast as ast;
2323
use rustc_data_structures::fx::FxHashMap;
2424
use rustc_data_structures::sync;
25-
use rustc_errors::{
26-
add_elided_lifetime_in_path_suggestion, struct_span_err, Applicability, SuggestionStyle,
27-
};
25+
use rustc_errors::{struct_span_err, Applicability, SuggestionStyle};
2826
use rustc_hir as hir;
2927
use rustc_hir::def::Res;
3028
use rustc_hir::def_id::{CrateNum, DefId};
@@ -670,23 +668,6 @@ pub trait LintContext: Sized {
670668
) => {
671669
db.span_note(span_def, "the macro is defined here");
672670
}
673-
BuiltinLintDiagnostics::ElidedLifetimesInPaths(
674-
n,
675-
path_span,
676-
incl_angl_brckt,
677-
insertion_span,
678-
anon_lts,
679-
) => {
680-
add_elided_lifetime_in_path_suggestion(
681-
sess.source_map(),
682-
&mut db,
683-
n,
684-
path_span,
685-
incl_angl_brckt,
686-
insertion_span,
687-
anon_lts,
688-
);
689-
}
690671
BuiltinLintDiagnostics::UnknownCrateTypes(span, note, sugg) => {
691672
db.span_suggestion(span, &note, sugg, Applicability::MaybeIncorrect);
692673
}

compiler/rustc_lint_defs/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ pub enum BuiltinLintDiagnostics {
289289
AbsPathWithModule(Span),
290290
ProcMacroDeriveResolutionFallback(Span),
291291
MacroExpandedMacroExportsAccessedByAbsolutePaths(Span),
292-
ElidedLifetimesInPaths(usize, Span, bool, Span, String),
293292
UnknownCrateTypes(Span, String, String),
294293
UnusedImports(String, Vec<(Span, String)>),
295294
RedundantImport(Vec<(Span, bool)>, Ident),

0 commit comments

Comments
 (0)