Skip to content

Commit ac6faee

Browse files
committed
less line changes ui-tests
1 parent e1aa0a1 commit ac6faee

File tree

113 files changed

+0
-226
lines changed

Some content is hidden

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

113 files changed

+0
-226
lines changed

tests/ui/absurd-extreme-comparisons.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::absurd_extreme_comparisons)]
75
#![allow(unused, clippy::eq_op, clippy::no_effect, clippy::unnecessary_operation, clippy::needless_pass_by_value)]
86

tests/ui/approx_const.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::approx_constant)]
75
#[allow(unused, clippy::shadow_unrelated, clippy::similar_names, clippy::unreadable_literal)]
86
fn main() {

tests/ui/arithmetic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::integer_arithmetic, clippy::float_arithmetic)]
75
#![allow(unused, clippy::shadow_reuse, clippy::shadow_unrelated, clippy::no_effect, clippy::unnecessary_operation)]
86
fn main() {

tests/ui/assign_ops.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::assign_ops)]
75
#[allow(unused_assignments)]
86
fn main() {

tests/ui/assign_ops2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[allow(unused_assignments)]
75
#[warn(clippy::misrefactored_assign_op, clippy::assign_op_pattern)]
86
fn main() {

tests/ui/attrs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::inline_always, clippy::deprecated_semver)]
75

86
#[inline(always)]

tests/ui/bit_masks.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
const THREE_BITS : i64 = 7;
75
const EVEN_MORE_REDIRECTION : i64 = THREE_BITS;
86

tests/ui/blacklisted_name.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![allow(dead_code, clippy::similar_names, clippy::single_match, clippy::toplevel_ref_arg, unused_mut, unused_variables)]
75
#![warn(clippy::blacklisted_name)]
86

tests/ui/block_in_if_condition.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::block_in_if_condition_expr)]
75
#![warn(clippy::block_in_if_condition_stmt)]
86
#![allow(unused, clippy::let_and_return)]

tests/ui/bool_comparison.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::bool_comparison)]
75
fn main() {
86
let x = true;

tests/ui/booleans.rs

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

3-
4-
53
#![warn(clippy::nonminimal_bool, clippy::logic_bug)]
64

75
#[allow(unused, clippy::many_single_char_names)]

tests/ui/borrow_box.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![deny(clippy::borrowed_box)]
75
#![allow(clippy::blacklisted_name)]
86
#![allow(unused_variables)]

tests/ui/box_vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::all)]
75
#![allow(clippy::boxed_local, clippy::needless_pass_by_value)]
86
#![allow(clippy::blacklisted_name)]

tests/ui/builtin-type-shadow.rs

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

3-
4-
53
#![warn(clippy::builtin_type_shadow)]
64

75
fn foo<u32>(a: u32) -> u32 {

tests/ui/bytecount.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[deny(clippy::naive_bytecount)]
75
fn main() {
86
let x = vec![0_u8; 16];

tests/ui/cast.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::cast_precision_loss, clippy::cast_possible_truncation, clippy::cast_sign_loss, clippy::cast_possible_wrap, clippy::cast_lossless)]
75
#[allow(clippy::no_effect, clippy::unnecessary_operation)]
86
fn main() {

tests/ui/cast_lossless_integer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![feature(tool_lints)]
2-
3-
42
#[warn(clippy::cast_lossless)]
53
#[allow(clippy::no_effect, clippy::unnecessary_operation)]
64
fn main() {

tests/ui/char_lit_as_u8.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::char_lit_as_u8)]
75
#![allow(unused_variables)]
86
fn main() {

tests/ui/cmp_nan.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::cmp_nan)]
75
#[allow(clippy::float_cmp, clippy::no_effect, clippy::unnecessary_operation)]
86
fn main() {

tests/ui/cmp_null.rs

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

3-
4-
53
#![warn(clippy::cmp_null)]
64
#![allow(unused_mut)]
75

tests/ui/cmp_owned.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::cmp_owned)]
75
#[allow(clippy::unnecessary_operation)]
86
fn main() {

tests/ui/collapsible_if.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::collapsible_if)]
75
fn main() {
86
let x = "hello";

tests/ui/complex_types.rs

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

3-
4-
53
#![warn(clippy::all)]
64
#![allow(unused, clippy::needless_pass_by_value)]
75
#![feature(associated_type_defaults)]

tests/ui/decimal_literal_representation.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::decimal_literal_representation)]
75
#[allow(unused_variables)]
86
fn main() {

tests/ui/derive.rs

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

3-
4-
53
#![feature(untagged_unions)]
64

75
#![allow(dead_code)]

tests/ui/double_neg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::double_neg)]
75
fn main() {
86
let x = 1;

tests/ui/double_parens.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::double_parens)]
75
#![allow(dead_code)]
86

tests/ui/drop_forget_copy.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::drop_copy, clippy::forget_copy)]
75
#![allow(clippy::toplevel_ref_arg, clippy::drclippy::op_ref, clippy::forget_ref, unused_mut)]
86

tests/ui/drop_forget_ref.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::drclippy::op_ref, clippy::forget_ref)]
75
#![allow(clippy::toplevel_ref_arg, clippy::similar_names, clippy::needless_pass_by_value)]
86

tests/ui/duplicate_underscore_argument.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::duplicate_underscore_argument)]
75
#[allow(dead_code, unused)]
86

tests/ui/empty_enum.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![allow(dead_code)]
75
#![warn(clippy::empty_enum)]
86

tests/ui/empty_line_after_outer_attribute.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![feature(tool_lints)]
2-
3-
42
#![warn(clippy::empty_line_after_outer_attr)]
53

64
// This should produce a warning

tests/ui/entry.rs

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

3-
4-
53
#![allow(unused, clippy::needless_pass_by_value)]
64

75
#![warn(clippy::map_entry)]

tests/ui/enum_glob_use.rs

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

3-
4-
53
#![warn(clippy::all, clippy::pedantic)]
64
#![allow(unused_imports, dead_code, clippy::missing_docs_in_private_items)]
75

tests/ui/eq_op.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::eq_op)]
75
#[allow(clippy::identity_op, clippy::double_parens, clippy::many_single_char_names)]
86
#[allow(clippy::no_effect, unused_variables, clippy::unnecessary_operation, clippy::short_circuit_statement)]

tests/ui/erasing_op.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[allow(clippy::no_effect)]
75
#[warn(clippy::erasing_op)]
86
fn main() {

tests/ui/eta.rs

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

3-
4-
53
#![allow(unknown_lints, unused, clippy::no_effect, clippy::redundant_closure_call, clippy::many_single_char_names, clippy::needless_pass_by_value, clippy::option_map_unit_fn, clippy::trivially_copy_pass_by_ref)]
64
#![warn(clippy::redundant_closure, clippy::needless_borrow)]
75

tests/ui/eval_order_dependence.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#[warn(clippy::eval_order_dependence)]
75
#[allow(unused_assignments, unused_variables, clippy::many_single_char_names, clippy::no_effect, dead_code, clippy::blacklisted_name)]
86
fn main() {

tests/ui/excessive_precision.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![feature(tool_lints)]
2-
3-
42
#![warn(clippy::excessive_precision)]
53
#![allow(clippy::print_literal)]
64

tests/ui/filter_methods.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::all, clippy::pedantic)]
75
#![allow(clippy::missing_docs_in_private_items)]
86

tests/ui/float_cmp.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::float_cmp)]
75
#![allow(unused, clippy::no_effect, clippy::unnecessary_operation, clippy::cast_lossless)]
86

tests/ui/float_cmp_const.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy::float_cmp_const)]
75
#![allow(clippy::float_cmp)]
86
#![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]

tests/ui/for_loop.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
use std::collections::*;
75
use std::rc::Rc;
86

tests/ui/format.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![feature(tool_lints)]
2-
3-
42
#![allow(clippy::print_literal)]
53
#![warn(clippy::useless_format)]
64

tests/ui/formatting.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
#![warn(clippy)]
75
#![allow(unused_variables)]
86
#![allow(unused_assignments)]

tests/ui/identity_op.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(tool_lints)]
22

33

4-
5-
64
const ONE : i64 = 1;
75
const NEG_ONE : i64 = -1;
86
const ZERO : i64 = 0;

0 commit comments

Comments
 (0)