Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 3e85ec4

Browse files
committed
Migrate remaining clippy lints to regular tool lints
1 parent 8077576 commit 3e85ec4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![allow(clippy::single_match_else)]
44
#![allow(clippy::too_many_lines)]
55
#![deny(warnings)]
6+
67
extern crate rustc_ast;
78
extern crate rustc_hir;
89
extern crate rustc_infer;

src/mapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub type InherentImplSet = BTreeSet<(DefId, DefId)>;
6666
/// Definitions and simple `DefId` mappings are kept separate to record both kinds of
6767
/// correspondence losslessly. The *access* to the stored data happens through the same API,
6868
/// however. A reverse mapping is also included, but only for `DefId` lookup.
69-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
69+
#[allow(clippy::module_name_repetitions)]
7070
pub struct IdMapping {
7171
/// The old crate.
7272
old_crate: CrateNum,
@@ -337,7 +337,7 @@ type OptionalExport = Option<Export<HirId>>;
337337
///
338338
/// Both old and new exports can be missing. Allows for reuse of the `HashMap`s used for storage.
339339
#[derive(Default)]
340-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
340+
#[allow(clippy::module_name_repetitions)]
341341
pub struct NameMapping {
342342
/// The exports in the type namespace.
343343
type_map: HashMap<Symbol, (OptionalExport, OptionalExport)>,

src/mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::collections::{HashMap, HashSet, VecDeque};
2121
/// Keeps track of item pairs found that way that correspond to item matchings not yet known.
2222
/// This allows to match up some items that aren't exported, and which possibly even differ in
2323
/// their names across versions.
24-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
24+
#[allow(clippy::module_name_repetitions)]
2525
pub struct MismatchRelation<'a, 'tcx> {
2626
/// The type context used.
2727
tcx: TyCtxt<'tcx>,

src/traverse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn run_traversal(tcx: TyCtxt, new: DefId) {
121121
/// Traverse the two root modules in an interleaved manner, matching up pairs of modules
122122
/// from the two crate versions and compare for changes. Matching children get processed
123123
/// in the same fashion.
124-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::cognitive_complexity))]
124+
#[allow(clippy::cognitive_complexity)]
125125
fn diff_structure<'tcx>(
126126
changes: &mut ChangeSet,
127127
id_mapping: &mut IdMapping,

0 commit comments

Comments
 (0)