Skip to content

Commit

Permalink
Fix rebase fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 authored and phaylon committed Jul 3, 2020
1 parent 346ee96 commit 6447507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/lib.rs
Expand Up @@ -268,7 +268,7 @@ mod overflow_check_conditional;
mod panic_unimplemented;
mod partialeq_ne_impl;
mod path_buf_push_overwrite;
pub mod pattern_type_mismatch;
mod pattern_type_mismatch;
mod precedence;
mod ptr;
mod ptr_offset_with_cast;
Expand Down
7 changes: 4 additions & 3 deletions clippy_lints/src/pattern_type_mismatch.rs
@@ -1,12 +1,12 @@
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};
use rustc_hir::{
intravisit, Body, Expr, ExprKind, FieldPat, FnDecl, HirId, LocalSource, MatchSource, Mutability, Pat, PatKind,
QPath, Stmt, StmtKind,
};
use rustc_lint::{LateContext, LateLintPass, LintContext};
use rustc_middle::lint::in_external_macro;
use rustc_middle::ty::subst::SubstsRef;
use rustc_middle::ty::{AdtDef, FieldDef, Ty, TyKind, VariantDef};
use rustc_session::{declare_lint_pass, declare_tool_lint};
use rustc_span::source_map::Span;

Expand Down Expand Up @@ -120,6 +120,7 @@ fn apply_lint<'a, 'tcx>(
PATTERN_TYPE_MISMATCH,
span,
"type of pattern does not match the expression type",
None,
&format!(
"{}explicitly match against a `{}` pattern and adjust the enclosed variable bindings",
match (deref_possible, level) {
Expand Down

0 comments on commit 6447507

Please sign in to comment.