Skip to content

Commit 445fa3b

Browse files
committed
Deny rustc internal lints
1 parent 5361b84 commit 445fa3b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![allow(clippy::missing_docs_in_private_items)]
99
#![recursion_limit = "256"]
1010
#![warn(rust_2018_idioms, trivial_casts, trivial_numeric_casts)]
11+
#![deny(internal)]
1112
#![feature(crate_visibility_modifier)]
1213

1314
// FIXME: switch to something more ergonomic here, once available.

clippy_lints/src/matches.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use if_chain::if_chain;
99
use rustc::hir::def::CtorKind;
1010
use rustc::hir::*;
1111
use rustc::lint::{in_external_macro, LateContext, LateLintPass, LintArray, LintContext, LintPass};
12-
use rustc::ty::{self, Ty, TyKind};
12+
use rustc::ty::{self, Ty};
1313
use rustc::{declare_tool_lint, lint_array};
1414
use rustc_errors::Applicability;
1515
use std::cmp::Ordering;
@@ -500,7 +500,7 @@ fn check_wild_enum_match(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
500500
// already covered.
501501

502502
let mut missing_variants = vec![];
503-
if let TyKind::Adt(def, _) = ty.sty {
503+
if let ty::Adt(def, _) = ty.sty {
504504
for variant in &def.variants {
505505
missing_variants.push(variant);
506506
}

clippy_lints/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(default_hash_types)]
12

23
use std::borrow::Cow;
34
use std::cmp::Ordering;

0 commit comments

Comments
 (0)