Skip to content

Commit

Permalink
Adapt lints to new names introduced in Rust 1.27
Browse files Browse the repository at this point in the history
Relevant PR: rust-lang/rust#50879.
  • Loading branch information
hcpl committed Jul 23, 2018
1 parent 86c936d commit acc9761
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ fn main() {
query_rustc_print_cfg("1.19.0", &["lints_1_19"]);
query_rustc_print_cfg("1.24.0", &["lints_1_24"]);
query_rustc_print_cfg("1.26.0", &["lints_1_26", "stable_i128"]);
query_rustc_print_cfg("1.27.0", &["lints_1_27"]);
}
12 changes: 10 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,19 @@
tyvar_behind_raw_pointer,
))]

#![cfg_attr(all(feature = "aggressive-rustc-lints", lints_1_26), deny(
// Deny some warn-level lints available from Rust 1.26
#![cfg_attr(all(feature = "aggressive-rustc-lints", lints_1_26, not(lints_1_27)), deny(
// Deny some warn-level lints available from Rust 1.26 that are renamed in
// 1.27 (relevant PR: https://github.com/rust-lang/rust/pull/50879).
unstable_name_collision,
))]

#![cfg_attr(all(feature = "aggressive-rustc-lints", lints_1_27), deny(
// Deny some warn-level lints available from previous Rust versions that are
// renamed in 1.27
// (relevant PR: https://github.com/rust-lang/rust/pull/50879).
unstable_name_collisions,
))]


// ========== CLIPPY LINTS ========== //

Expand Down

0 comments on commit acc9761

Please sign in to comment.