Skip to content

Commit b8654ea

Browse files
committed
Stabilize tool lints
1 parent 8b45dd7 commit b8654ea

File tree

205 files changed

+211
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+211
-212
lines changed

README.md

+4-5

clippy_dev/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212
#![allow(clippy::default_hash_types)]
1313

1414
use itertools::Itertools;

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![allow(unknown_lints, clippy::shadow_reuse, clippy::missing_docs_in_private_items)]
1919
#![recursion_limit = "256"]
2020
#![feature(macro_at_most_once_rep)]
21-
#![feature(tool_lints)]
21+
2222
#![warn(rust_2018_idioms, trivial_casts, trivial_numeric_casts)]
2323
#![feature(crate_visibility_modifier)]
2424
#![feature(try_from)]

src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// error-pattern:yummy
1212
#![feature(box_syntax)]
1313
#![feature(rustc_private)]
14-
#![feature(tool_lints)]
14+
1515
#![feature(try_from)]
1616
#![allow(unknown_lints, clippy::missing_docs_in_private_items)]
1717

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// error-pattern:cargo-clippy
1212
#![feature(plugin_registrar)]
1313
#![feature(rustc_private)]
14-
#![feature(tool_lints)]
14+
1515
#![allow(unknown_lints)]
1616
#![allow(clippy::missing_docs_in_private_items)]
1717
#![warn(rust_2018_idioms)]

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// error-pattern:yummy
1212
#![feature(box_syntax)]
1313
#![feature(rustc_private)]
14-
#![feature(tool_lints)]
14+
1515
#![allow(unknown_lints, clippy::missing_docs_in_private_items)]
1616

1717
use rustc_tools_util::*;

tests/run-pass/enum-glob-import-crate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::all)]
1414
#![allow(unused_imports)]

tests/run-pass/ice-1588.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(clippy::all)]
1414

tests/run-pass/ice-1969.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(clippy::all)]
1414

tests/run-pass/ice-2499.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(dead_code, clippy::char_lit_as_u8, clippy::needless_bool)]
1414

tests/run-pass/ice-2760.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(unused_variables, clippy::blacklisted_name,
1414
clippy::needless_pass_by_value, dead_code)]

tests/run-pass/ice-2774.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
use std::collections::HashSet;
1414

tests/run-pass/ice-700.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::all)]
1414

tests/run-pass/ice_exacte_size.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::all)]
1414

tests/run-pass/if_same_then_else.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::if_same_then_else)]
1414

tests/run-pass/match_same_arms_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::match_same_arms)]
1414

tests/run-pass/mut_mut_macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::mut_mut, clippy::zero_ptr, clippy::cmp_nan)]
1414
#![allow(dead_code)]

tests/run-pass/needless_borrow_fp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#[deny(clippy::all)]
1414

tests/run-pass/needless_lifetimes_impl_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![deny(clippy::needless_lifetimes)]
1414
#![allow(dead_code)]

tests/run-pass/regressions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(clippy::blacklisted_name)]
1414

tests/run-pass/single-match-else.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![warn(clippy::single_match_else)]
1414

tests/run-pass/used_underscore_binding_macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![allow(clippy::useless_attribute)] //issue #2910
1414

tests/ui-toml/toml_blacklist/conf_french_blacklisted_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![allow(dead_code)]

tests/ui-toml/toml_trivially_copy/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212
#![allow(clippy::many_single_char_names)]
1313

1414
#[derive(Copy, Clone)]

tests/ui/absurd-extreme-comparisons.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![warn(clippy::absurd_extreme_comparisons)]

tests/ui/approx_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#[warn(clippy::approx_constant)]

tests/ui/arithmetic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![warn(clippy::integer_arithmetic, clippy::float_arithmetic)]

tests/ui/assign_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#[allow(dead_code, unused_assignments)]
1414
#[warn(clippy::assign_op_pattern)]

tests/ui/assign_ops2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#[allow(unused_assignments)]

tests/ui/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![warn(clippy::inline_always, clippy::deprecated_semver)]

tests/ui/bit_masks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
const THREE_BITS : i64 = 7;

tests/ui/blacklisted_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![allow(dead_code, clippy::similar_names, clippy::single_match, clippy::toplevel_ref_arg, unused_mut, unused_variables)]

tests/ui/block_in_if_condition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![warn(clippy::block_in_if_condition_expr)]

tests/ui/bool_comparison.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#[warn(clippy::bool_comparison)]

tests/ui/booleans.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![warn(clippy::nonminimal_bool, clippy::logic_bug)]
1414

tests/ui/borrow_box.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![deny(clippy::borrowed_box)]

tests/ui/box_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#![warn(clippy::all)]

tests/ui/builtin-type-shadow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#![warn(clippy::builtin_type_shadow)]
1414

tests/ui/bytecount.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#[deny(clippy::naive_bytecount)]

tests/ui/cast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313

1414
#[warn(clippy::cast_precision_loss, clippy::cast_possible_truncation, clippy::cast_sign_loss, clippy::cast_possible_wrap, clippy::cast_lossless)]

tests/ui/cast_alignment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
//! Test casts for alignment issues
1414

tests/ui/cast_lossless_float.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212

1313
#[warn(clippy::cast_lossless)]
1414
#[allow(clippy::no_effect, clippy::unnecessary_operation)]

tests/ui/cast_lossless_integer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010

11-
#![feature(tool_lints)]
11+
1212
#[warn(clippy::cast_lossless)]
1313
#[allow(clippy::no_effect, clippy::unnecessary_operation)]
1414
fn main() {

0 commit comments

Comments
 (0)