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

Commit 5ed300f

Browse files
committed
Auto merge of #136 - Xanewok:housekeeping, r=Manishearth
Housekeeping Fixing some artifacts of the past - this should not change any behaviour. It's worth noting that there are some `allow` attributes for pedantic Clippy lints, which are not enforced anywhere anymore - probably because those lints have been moved around in categories. Should I remove the directives that do not warn anymore by default under `cargo clippy`? r? `@Manishearth`
2 parents 6a54d64 + 3550a9a commit 5ed300f

9 files changed

+7
-32
lines changed

Cargo.toml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "semverver"
3-
description = "Automatic verification of SemVer adhrence in rust library crates"
3+
description = "Automatic verification of SemVer adherence in Rust library crates"
44
repository = "https://github.com/rust-dev-tools/rust-semverver"
55
readme = "README.md"
66
keywords = ["semver", "plugin"]
@@ -10,22 +10,6 @@ authors = ["Inokentiy Babushkin <[email protected]>"]
1010
license-file = "LICENSE"
1111
edition = "2018"
1212

13-
[badges]
14-
travis-ci = { repository = "rust-dev-tools/rust-semverver" }
15-
appveyor = { repository = "rust-dev-tools/rust-semverver" }
16-
17-
[[bin]]
18-
name = "cargo-semver"
19-
path = "src/bin/cargo_semver.rs"
20-
21-
[[bin]]
22-
name = "rust-semverver"
23-
path = "src/bin/rust_semverver.rs"
24-
25-
[[bin]]
26-
name = "rust-semver-public"
27-
path = "src/bin/rust_semver_public.rs"
28-
2913
[dependencies]
3014
cargo = "0.44"
3115
crates-io = "0.32"

src/bin/cargo_semver.rs renamed to src/bin/cargo-semver.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22
#![feature(set_stdio)]
33
#![allow(clippy::too_many_lines)]
44

5-
extern crate curl;
6-
#[macro_use]
7-
extern crate serde;
85
extern crate rustc_session;
9-
extern crate serde_json;
106

117
use cargo::core::{Package, PackageId, Source, SourceId, Workspace};
128
use cargo::sources::RegistrySource;
139
use curl::easy::Easy;
1410
use log::debug;
1511
use rand::Rng;
1612
use rustc_session::getopts;
13+
use serde::Deserialize;
1714
use std::collections::HashSet;
1815
use std::{
1916
env,

src/bin/rust_semver_public.rs renamed to src/bin/rust-semver-public.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
extern crate rustc_driver;
44
extern crate rustc_interface;
5-
extern crate rustc_middle;
65
extern crate rustc_span;
76

87
use log::debug;

src/bin/rust_semverver.rs renamed to src/bin/rust-semverver.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#![feature(rustc_private)]
22

33
extern crate rustc_driver;
4-
extern crate rustc_errors;
54
extern crate rustc_interface;
6-
extern crate rustc_metadata;
7-
extern crate rustc_middle;
85
extern crate rustc_span;
96

107
use log::debug;

src/changes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,6 @@ impl<'a, 'tcx> Serialize for RChangeSet<'a, 'tcx> {
12221222
#[cfg(test)]
12231223
pub mod tests {
12241224
pub use super::*;
1225-
extern crate quickcheck;
12261225
use quickcheck::*;
12271226

12281227
use rustc_hir::def_id::DefId;

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
#![allow(clippy::single_match_else)]
44
#![allow(clippy::too_many_lines)]
55
#![deny(warnings)]
6-
extern crate rustc_ast;
6+
77
extern crate rustc_hir;
88
extern crate rustc_infer;
99
extern crate rustc_middle;
1010
extern crate rustc_mir;
1111
extern crate rustc_session;
1212
extern crate rustc_span;
1313
extern crate rustc_trait_selection;
14-
extern crate rustc_traits;
1514

1615
mod changes;
1716
mod mapping;

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)