Skip to content

Commit cc419e5

Browse files
author
Allen Hsu
committed
Rename repeated trait bound test files.
1 parent 6e2ec70 commit cc419e5

3 files changed

+13
-13
lines changed

tests/ui/repeated_where_clause_or_trait_bound.fixed tests/ui/repeated_where_clauses_or_trait_bounds.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// run-rustfix
22
//
33
#![allow(unused)]
4-
#![deny(clippy::repeated_where_clause_or_trait_bound)]
4+
#![deny(clippy::repeated_where_clauses_or_trait_bounds)]
55

66
fn bad_foo<T: Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
77
unimplemented!();

tests/ui/repeated_where_clause_or_trait_bound.rs tests/ui/repeated_where_clauses_or_trait_bounds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// run-rustfix
22
//
33
#![allow(unused)]
4-
#![deny(clippy::repeated_where_clause_or_trait_bound)]
4+
#![deny(clippy::repeated_where_clauses_or_trait_bounds)]
55

66
fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
77
unimplemented!();

tests/ui/repeated_where_clause_or_trait_bound.stderr tests/ui/repeated_where_clauses_or_trait_bounds.stderr

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
error: these bounds contain repeated elements
2-
--> $DIR/repeated_where_clause_or_trait_bound.rs:6:15
2+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:6:15
33
|
44
LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
66
|
77
note: the lint level is defined here
8-
--> $DIR/repeated_where_clause_or_trait_bound.rs:4:9
8+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:4:9
99
|
10-
LL | #![deny(clippy::repeated_where_clause_or_trait_bound)]
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10+
LL | #![deny(clippy::repeated_where_clauses_or_trait_bounds)]
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: these where clauses contain repeated elements
14-
--> $DIR/repeated_where_clause_or_trait_bound.rs:12:8
14+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:12:8
1515
|
1616
LL | T: Clone + Clone + Clone + Copy,
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
1818

1919
error: these bounds contain repeated elements
20-
--> $DIR/repeated_where_clause_or_trait_bound.rs:40:26
20+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:40:26
2121
|
2222
LL | trait BadSelfTraitBound: Clone + Clone + Clone {
2323
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
2424

2525
error: these where clauses contain repeated elements
26-
--> $DIR/repeated_where_clause_or_trait_bound.rs:47:15
26+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:47:15
2727
|
2828
LL | Self: Clone + Clone + Clone;
2929
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
3030

3131
error: these bounds contain repeated elements
32-
--> $DIR/repeated_where_clause_or_trait_bound.rs:61:24
32+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:61:24
3333
|
3434
LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
3636

3737
error: these where clauses contain repeated elements
38-
--> $DIR/repeated_where_clause_or_trait_bound.rs:68:12
38+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:68:12
3939
|
4040
LL | T: Clone + Clone + Clone + Copy,
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
4242

4343
error: these bounds contain repeated elements
44-
--> $DIR/repeated_where_clause_or_trait_bound.rs:101:19
44+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:101:19
4545
|
4646
LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
4747
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u32> + GenericTrait<u64>`
4848

4949
error: these bounds contain repeated elements
50-
--> $DIR/repeated_where_clause_or_trait_bound.rs:109:22
50+
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:109:22
5151
|
5252
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + foo::Clone`

0 commit comments

Comments
 (0)