]> git.lizzy.rs Git - rust.git/commitdiff
Remove useless variant.
authorCamille GILLOT <gillot.camille@gmail.com>
Fri, 10 Dec 2021 23:56:21 +0000 (00:56 +0100)
committerCamille GILLOT <gillot.camille@gmail.com>
Sat, 11 Dec 2021 10:08:46 +0000 (11:08 +0100)
compiler/rustc_lint/src/context.rs
compiler/rustc_lint_defs/src/lib.rs

index 4c936dec6f2cd3a72af9c3ca199a98708768009b..3c79020523a9fea2f99e036dc22811c0f2b7c31c 100644 (file)
@@ -22,9 +22,7 @@
 use rustc_ast as ast;
 use rustc_data_structures::fx::FxHashMap;
 use rustc_data_structures::sync;
-use rustc_errors::{
-    add_elided_lifetime_in_path_suggestion, struct_span_err, Applicability, SuggestionStyle,
-};
+use rustc_errors::{struct_span_err, Applicability, SuggestionStyle};
 use rustc_hir as hir;
 use rustc_hir::def::Res;
 use rustc_hir::def_id::{CrateNum, DefId};
@@ -670,23 +668,6 @@ fn lookup_with_diagnostics(
                 ) => {
                     db.span_note(span_def, "the macro is defined here");
                 }
-                BuiltinLintDiagnostics::ElidedLifetimesInPaths(
-                    n,
-                    path_span,
-                    incl_angl_brckt,
-                    insertion_span,
-                    anon_lts,
-                ) => {
-                    add_elided_lifetime_in_path_suggestion(
-                        sess.source_map(),
-                        &mut db,
-                        n,
-                        path_span,
-                        incl_angl_brckt,
-                        insertion_span,
-                        anon_lts,
-                    );
-                }
                 BuiltinLintDiagnostics::UnknownCrateTypes(span, note, sugg) => {
                     db.span_suggestion(span, &note, sugg, Applicability::MaybeIncorrect);
                 }
index feac2a7cfa48a77a8b0c88c296f5f584023478ab..3f504d75dfc92120bee05a736400105e181ca579 100644 (file)
@@ -289,7 +289,6 @@ pub enum BuiltinLintDiagnostics {
     AbsPathWithModule(Span),
     ProcMacroDeriveResolutionFallback(Span),
     MacroExpandedMacroExportsAccessedByAbsolutePaths(Span),
-    ElidedLifetimesInPaths(usize, Span, bool, Span, String),
     UnknownCrateTypes(Span, String, String),
     UnusedImports(String, Vec<(Span, String)>),
     RedundantImport(Vec<(Span, bool)>, Ident),