Skip to content

Commit bd1201a

Browse files
committed
Fix inconsistent test names
1 parent 494bc8a commit bd1201a

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed
File renamed without changes.

tests/ui/dlist.stderr renamed to tests/ui/linkedlist.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
2-
--> $DIR/dlist.rs:8:10
2+
--> $DIR/linkedlist.rs:8:10
33
|
44
LL | const C: LinkedList<i32> = LinkedList::new();
55
| ^^^^^^^^^^^^^^^
@@ -8,55 +8,55 @@ LL | const C: LinkedList<i32> = LinkedList::new();
88
= help: a `VecDeque` might work
99

1010
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
11-
--> $DIR/dlist.rs:9:11
11+
--> $DIR/linkedlist.rs:9:11
1212
|
1313
LL | static S: LinkedList<i32> = LinkedList::new();
1414
| ^^^^^^^^^^^^^^^
1515
|
1616
= help: a `VecDeque` might work
1717

1818
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
19-
--> $DIR/dlist.rs:12:16
19+
--> $DIR/linkedlist.rs:12:16
2020
|
2121
LL | type Baz = LinkedList<u8>;
2222
| ^^^^^^^^^^^^^^
2323
|
2424
= help: a `VecDeque` might work
2525

2626
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
27-
--> $DIR/dlist.rs:13:15
27+
--> $DIR/linkedlist.rs:13:15
2828
|
2929
LL | fn foo(_: LinkedList<u8>);
3030
| ^^^^^^^^^^^^^^
3131
|
3232
= help: a `VecDeque` might work
3333

3434
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
35-
--> $DIR/dlist.rs:14:23
35+
--> $DIR/linkedlist.rs:14:23
3636
|
3737
LL | const BAR: Option<LinkedList<u8>>;
3838
| ^^^^^^^^^^^^^^
3939
|
4040
= help: a `VecDeque` might work
4141

4242
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
43-
--> $DIR/dlist.rs:25:15
43+
--> $DIR/linkedlist.rs:25:15
4444
|
4545
LL | fn foo(_: LinkedList<u8>) {}
4646
| ^^^^^^^^^^^^^^
4747
|
4848
= help: a `VecDeque` might work
4949

5050
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
51-
--> $DIR/dlist.rs:28:39
51+
--> $DIR/linkedlist.rs:28:39
5252
|
5353
LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
5454
| ^^^^^^^^^^^^^^
5555
|
5656
= help: a `VecDeque` might work
5757

5858
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
59-
--> $DIR/dlist.rs:32:29
59+
--> $DIR/linkedlist.rs:32:29
6060
|
6161
LL | pub fn test_ret() -> Option<LinkedList<u8>> {
6262
| ^^^^^^^^^^^^^^
File renamed without changes.

tests/ui/complex_types.stderr renamed to tests/ui/type_complexity.stderr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,91 @@
11
error: very complex type used. Consider factoring parts into `type` definitions
2-
--> $DIR/complex_types.rs:7:12
2+
--> $DIR/type_complexity.rs:7:12
33
|
44
LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::type-complexity` implied by `-D warnings`
88

99
error: very complex type used. Consider factoring parts into `type` definitions
10-
--> $DIR/complex_types.rs:8:12
10+
--> $DIR/type_complexity.rs:8:12
1111
|
1212
LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414

1515
error: very complex type used. Consider factoring parts into `type` definitions
16-
--> $DIR/complex_types.rs:11:8
16+
--> $DIR/type_complexity.rs:11:8
1717
|
1818
LL | f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020

2121
error: very complex type used. Consider factoring parts into `type` definitions
22-
--> $DIR/complex_types.rs:14:11
22+
--> $DIR/type_complexity.rs:14:11
2323
|
2424
LL | struct Ts(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626

2727
error: very complex type used. Consider factoring parts into `type` definitions
28-
--> $DIR/complex_types.rs:17:11
28+
--> $DIR/type_complexity.rs:17:11
2929
|
3030
LL | Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
error: very complex type used. Consider factoring parts into `type` definitions
34-
--> $DIR/complex_types.rs:18:17
34+
--> $DIR/type_complexity.rs:18:17
3535
|
3636
LL | Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3838

3939
error: very complex type used. Consider factoring parts into `type` definitions
40-
--> $DIR/complex_types.rs:22:14
40+
--> $DIR/type_complexity.rs:22:14
4141
|
4242
LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
4343
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4444

4545
error: very complex type used. Consider factoring parts into `type` definitions
46-
--> $DIR/complex_types.rs:23:30
46+
--> $DIR/type_complexity.rs:23:30
4747
|
4848
LL | fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
4949
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050

5151
error: very complex type used. Consider factoring parts into `type` definitions
52-
--> $DIR/complex_types.rs:27:14
52+
--> $DIR/type_complexity.rs:27:14
5353
|
5454
LL | const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
5555
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5656

5757
error: very complex type used. Consider factoring parts into `type` definitions
58-
--> $DIR/complex_types.rs:28:14
58+
--> $DIR/type_complexity.rs:28:14
5959
|
6060
LL | type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6262

6363
error: very complex type used. Consider factoring parts into `type` definitions
64-
--> $DIR/complex_types.rs:29:25
64+
--> $DIR/type_complexity.rs:29:25
6565
|
6666
LL | fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
6767
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6868

6969
error: very complex type used. Consider factoring parts into `type` definitions
70-
--> $DIR/complex_types.rs:30:29
70+
--> $DIR/type_complexity.rs:30:29
7171
|
7272
LL | fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
7373
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7474

7575
error: very complex type used. Consider factoring parts into `type` definitions
76-
--> $DIR/complex_types.rs:33:15
76+
--> $DIR/type_complexity.rs:33:15
7777
|
7878
LL | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> {
7979
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8080

8181
error: very complex type used. Consider factoring parts into `type` definitions
82-
--> $DIR/complex_types.rs:37:14
82+
--> $DIR/type_complexity.rs:37:14
8383
|
8484
LL | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
8585
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8686

8787
error: very complex type used. Consider factoring parts into `type` definitions
88-
--> $DIR/complex_types.rs:40:13
88+
--> $DIR/type_complexity.rs:40:13
8989
|
9090
LL | let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
9191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)