span_help_and_lint -> span_lint_and_help
This commit is contained in:
parent
c3c402783f
commit
55877d7b4a
@ -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::lint::in_external_macro;
|
||||||
use rustc::ty::subst::SubstsRef;
|
use rustc::ty::subst::SubstsRef;
|
||||||
use rustc::ty::{AdtDef, FieldDef, Ty, TyKind, VariantDef};
|
use rustc::ty::{AdtDef, FieldDef, Ty, TyKind, VariantDef};
|
||||||
@ -115,7 +115,7 @@ fn apply_lint<'a, 'tcx>(
|
|||||||
) -> bool {
|
) -> bool {
|
||||||
let maybe_mismatch = find_first_mismatch(cx, pat, expr_ty, Level::Top);
|
let maybe_mismatch = find_first_mismatch(cx, pat, expr_ty, Level::Top);
|
||||||
if let Some((span, mutability, level)) = maybe_mismatch {
|
if let Some((span, mutability, level)) = maybe_mismatch {
|
||||||
span_help_and_lint(
|
span_lint_and_help(
|
||||||
cx,
|
cx,
|
||||||
PATTERN_TYPE_MISMATCH,
|
PATTERN_TYPE_MISMATCH,
|
||||||
span,
|
span,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user