about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Sedlacek <rs@474.at>2020-02-09 17:57:35 +0100
committerRobert Sedlacek <rs@474.at>2020-07-03 18:12:29 +0200
commit55877d7b4a6a2c713412db7b30ef79b2a252956e (patch)
tree7ad25d24e81ae1e74ef646cde50677645d72477f
parentc3c402783f1d12852982f9dc734cc4c07b9fce33 (diff)
downloadrust-55877d7b4a6a2c713412db7b30ef79b2a252956e.tar.gz
rust-55877d7b4a6a2c713412db7b30ef79b2a252956e.zip
span_help_and_lint -> span_lint_and_help
-rw-r--r--clippy_lints/src/pattern_type_mismatch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/pattern_type_mismatch.rs b/clippy_lints/src/pattern_type_mismatch.rs
index a07279c92b0..d3f65db1916 100644
--- a/clippy_lints/src/pattern_type_mismatch.rs
+++ b/clippy_lints/src/pattern_type_mismatch.rs
@@ -1,4 +1,4 @@
-use crate::utils::{last_path_segment, span_help_and_lint};
+use crate::utils::{last_path_segment, span_lint_and_help};
 use rustc::lint::in_external_macro;
 use rustc::ty::subst::SubstsRef;
 use rustc::ty::{AdtDef, FieldDef, Ty, TyKind, VariantDef};
@@ -115,7 +115,7 @@ fn apply_lint<'a, 'tcx>(
 ) -> bool {
     let maybe_mismatch = find_first_mismatch(cx, pat, expr_ty, Level::Top);
     if let Some((span, mutability, level)) = maybe_mismatch {
-        span_help_and_lint(
+        span_lint_and_help(
             cx,
             PATTERN_TYPE_MISMATCH,
             span,