Skip to content

Commit 9648d17

Browse files
Update ui tests
1 parent 8210981 commit 9648d17

7 files changed

+57
-54
lines changed

tests/ui/multiple_bound_locations.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ error: bound is defined in more than one place
44
LL | fn ty<F: std::fmt::Debug>(a: F)
55
| ^
66
...
7-
LL | F: Sized
7+
LL | F: Sized,
88
| ^
99
|
1010
= note: `-D clippy::multiple-bound-locations` implied by `-D warnings`
1111
= help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`
1212

1313
error: bound is defined in more than one place
14-
--> $DIR/multiple_bound_locations.rs:9:17
14+
--> $DIR/multiple_bound_locations.rs:10:17
1515
|
1616
LL | fn lifetime<'a, 'b: 'a, 'c>(a: &'b str, b: &'a str, c: &'c str)
1717
| ^^
1818
...
19-
LL | 'b: 'c
19+
LL | 'b: 'c,
2020
| ^^
2121

2222
error: bound is defined in more than one place
23-
--> $DIR/multiple_bound_locations.rs:15:12
23+
--> $DIR/multiple_bound_locations.rs:17:12
2424
|
2525
LL | fn ty_pred<F: Sized>()
2626
| ^
2727
...
28-
LL | for<'a> F: Send + 'a
28+
LL | for<'a> F: Send + 'a,
2929
| ^
3030

3131
error: aborting due to 3 previous errors

tests/ui/trait_duplication_in_bounds_unfixable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![deny(clippy::trait_duplication_in_bounds)]
2+
#![allow(clippy::multiple_bound_locations)]
23

34
use std::collections::BTreeMap;
45
use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign};

tests/ui/trait_duplication_in_bounds_unfixable.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this trait bound is already specified in the where clause
2-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:6:15
2+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:7:15
33
|
44
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
55
| ^^^^^
@@ -12,55 +12,55 @@ LL | #![deny(clippy::trait_duplication_in_bounds)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

1414
error: this trait bound is already specified in the where clause
15-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:6:23
15+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:7:23
1616
|
1717
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
1818
| ^^^^^^^
1919
|
2020
= help: consider removing this trait bound
2121

2222
error: this trait bound is already specified in trait declaration
23-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:37:15
23+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:38:15
2424
|
2525
LL | Self: Default;
2626
| ^^^^^^^
2727
|
2828
= help: consider removing this trait bound
2929

3030
error: this trait bound is already specified in trait declaration
31-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:52:15
31+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:53:15
3232
|
3333
LL | Self: Default + Clone;
3434
| ^^^^^^^
3535
|
3636
= help: consider removing this trait bound
3737

3838
error: this trait bound is already specified in trait declaration
39-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:59:15
39+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:60:15
4040
|
4141
LL | Self: Default + Clone;
4242
| ^^^^^^^
4343
|
4444
= help: consider removing this trait bound
4545

4646
error: this trait bound is already specified in trait declaration
47-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:59:25
47+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:60:25
4848
|
4949
LL | Self: Default + Clone;
5050
| ^^^^^
5151
|
5252
= help: consider removing this trait bound
5353

5454
error: this trait bound is already specified in trait declaration
55-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:64:15
55+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:65:15
5656
|
5757
LL | Self: Default;
5858
| ^^^^^^^
5959
|
6060
= help: consider removing this trait bound
6161

6262
error: this trait bound is already specified in trait declaration
63-
--> $DIR/trait_duplication_in_bounds_unfixable.rs:100:15
63+
--> $DIR/trait_duplication_in_bounds_unfixable.rs:101:15
6464
|
6565
LL | Self: Iterator<Item = Foo>,
6666
| ^^^^^^^^^^^^^^^^^^^^

tests/ui/type_repetition_in_bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![deny(clippy::type_repetition_in_bounds)]
2-
#![allow(clippy::extra_unused_type_parameters)]
2+
#![allow(clippy::extra_unused_type_parameters, clippy::multiple_bound_locations)]
33

44
use serde::Deserialize;
55
use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign};

tests/ui/unnecessary_cast.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![warn(clippy::unnecessary_cast)]
33
#![allow(
44
clippy::borrow_as_ptr,
5+
clippy::multiple_bound_locations,
56
clippy::no_effect,
67
clippy::nonstandard_macro_braces,
78
clippy::unnecessary_operation,

tests/ui/unnecessary_cast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![warn(clippy::unnecessary_cast)]
33
#![allow(
44
clippy::borrow_as_ptr,
5+
clippy::multiple_bound_locations,
56
clippy::no_effect,
67
clippy::nonstandard_macro_braces,
78
clippy::unnecessary_operation,

0 commit comments

Comments
 (0)