Skip to content

Commit 235a035

Browse files
committed
span_help_and_lint -> span_lint_and_help
1 parent 5f7e105 commit 235a035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/pattern_type_mismatch.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::utils::{last_path_segment, span_help_and_lint};
1+
use crate::utils::{last_path_segment, span_lint_and_help};
22
use rustc::lint::in_external_macro;
33
use rustc::ty::subst::SubstsRef;
44
use rustc::ty::{AdtDef, FieldDef, Ty, TyKind, VariantDef};
@@ -115,7 +115,7 @@ fn apply_lint<'a, 'tcx>(
115115
) -> bool {
116116
let maybe_mismatch = find_first_mismatch(cx, pat, expr_ty, Level::Top);
117117
if let Some((span, mutability, level)) = maybe_mismatch {
118-
span_help_and_lint(
118+
span_lint_and_help(
119119
cx,
120120
PATTERN_TYPE_MISMATCH,
121121
span,

0 commit comments

Comments
 (0)