Skip to content

Commit 2c62686

Browse files
committed
Move some UI tests to more suitable subdirs
1 parent 6e0b554 commit 2c62686

Some content is hidden

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

53 files changed

+11
-9
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/test/ui/issues/issue-36638.rs renamed to src/test/ui/keyword/keyword-self-as-type-param.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Regression test of #36638.
2+
13
struct Foo<Self>(Self);
24
//~^ ERROR expected identifier, found keyword `Self`
35
//~^^ ERROR E0392

src/test/ui/issues/issue-36638.stderr renamed to src/test/ui/keyword/keyword-self-as-type-param.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
error: expected identifier, found keyword `Self`
2-
--> $DIR/issue-36638.rs:1:12
2+
--> $DIR/keyword-self-as-type-param.rs:3:12
33
|
44
LL | struct Foo<Self>(Self);
55
| ^^^^ expected identifier, found keyword
66

77
error: expected identifier, found keyword `Self`
8-
--> $DIR/issue-36638.rs:5:11
8+
--> $DIR/keyword-self-as-type-param.rs:7:11
99
|
1010
LL | trait Bar<Self> {}
1111
| ^^^^ expected identifier, found keyword
1212

1313
error[E0392]: parameter `Self` is never used
14-
--> $DIR/issue-36638.rs:1:12
14+
--> $DIR/keyword-self-as-type-param.rs:3:12
1515
|
1616
LL | struct Foo<Self>(Self);
1717
| ^^^^ unused parameter
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/test/ui/issues/issue-54521.stderr renamed to src/test/ui/parser/issue-54521-3.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error: unmatched angle brackets
2-
--> $DIR/issue-54521.rs:11:60
2+
--> $DIR/issue-54521-3.rs:11:60
33
|
44
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>>>();
55
| ^^^^ help: remove extra angle brackets
66

77
error: unmatched angle brackets
8-
--> $DIR/issue-54521.rs:14:60
8+
--> $DIR/issue-54521-3.rs:14:60
99
|
1010
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>>();
1111
| ^^^ help: remove extra angle brackets
1212

1313
error: unmatched angle brackets
14-
--> $DIR/issue-54521.rs:17:60
14+
--> $DIR/issue-54521-3.rs:17:60
1515
|
1616
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>();
1717
| ^^ help: remove extra angle brackets
1818

1919
error: unmatched angle bracket
20-
--> $DIR/issue-54521.rs:20:60
20+
--> $DIR/issue-54521-3.rs:20:60
2121
|
2222
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>();
2323
| ^ help: remove extra angle bracket
File renamed without changes.

src/tools/tidy/src/ui_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use std::path::Path;
77

88
const ENTRY_LIMIT: usize = 1000;
99
// FIXME: The following limits should be reduced eventually.
10-
const ROOT_ENTRY_LIMIT: usize = 1371;
11-
const ISSUES_ENTRY_LIMIT: usize = 2559;
10+
const ROOT_ENTRY_LIMIT: usize = 1345;
11+
const ISSUES_ENTRY_LIMIT: usize = 2530;
1212

1313
fn check_entries(path: &Path, bad: &mut bool) {
1414
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))

0 commit comments

Comments
 (0)