Skip to content

Commit f58eab7

Browse files
authored
Rollup merge of #145897 - Oneirical:uncountable-integer-11, r=jieyouxu
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#4 of Batch #2] Part of #133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer Inspired by the methodology that `@Kivooeo` was using. r? `@jieyouxu`
2 parents 817720c + 6ca6981 commit f58eab7

File tree

48 files changed

+91
-64
lines changed

Some content is hidden

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

48 files changed

+91
-64
lines changed

tests/ui/issues/issue-68010-large-zst-consts.rs renamed to tests/ui/array-slice-vec/large-zst-array-compilation-time-68010.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/68010
12
//@ build-pass
23

34
fn main() {

tests/ui/issues/issue-65230.rs renamed to tests/ui/associated-types/mismatched-types-in-trait-impl-65230.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/65230
12
trait T0 {}
23
trait T1: T0 {}
34

tests/ui/issues/issue-65230.stderr renamed to tests/ui/associated-types/mismatched-types-in-trait-impl-65230.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-65230.rs:8:13
2+
--> $DIR/mismatched-types-in-trait-impl-65230.rs:9:13
33
|
44
LL | impl T1 for &dyn T2 {}
55
| ^^^^^^^ lifetime mismatch
66
|
77
= note: expected trait `<&dyn T2 as T0>`
88
found trait `<&(dyn T2 + 'static) as T0>`
99
note: the anonymous lifetime as defined here...
10-
--> $DIR/issue-65230.rs:8:13
10+
--> $DIR/mismatched-types-in-trait-impl-65230.rs:9:13
1111
|
1212
LL | impl T1 for &dyn T2 {}
1313
| ^

tests/ui/issues/issue-66702-break-outside-loop-val.rs renamed to tests/ui/async-await/labeled-break-in-async-fn-ice-66702.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/66702
12
// Breaks with values inside closures used to ICE (#66863)
23

34
fn main() {

tests/ui/issues/issue-66702-break-outside-loop-val.stderr renamed to tests/ui/async-await/labeled-break-in-async-fn-ice-66702.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0767]: use of unreachable label `'some_label`
2-
--> $DIR/issue-66702-break-outside-loop-val.rs:5:18
2+
--> $DIR/labeled-break-in-async-fn-ice-66702.rs:6:18
33
|
44
LL | 'some_label: loop {
55
| ----------- unreachable label defined here
@@ -9,7 +9,7 @@ LL | || break 'some_label ();
99
= note: labels are unreachable through functions, closures, async blocks and modules
1010

1111
error[E0267]: `break` inside of a closure
12-
--> $DIR/issue-66702-break-outside-loop-val.rs:5:12
12+
--> $DIR/labeled-break-in-async-fn-ice-66702.rs:6:12
1313
|
1414
LL | || break 'some_label ();
1515
| -- ^^^^^^^^^^^^^^^^^^^^ cannot `break` inside of a closure

tests/ui/issues/issue-61108.rs renamed to tests/ui/borrowck/borrow-of-moved-value-in-for-loop-61108.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/61108
12
fn main() {
23
let mut bad_letters = vec!['e', 't', 'o', 'i'];
34
for l in bad_letters {

tests/ui/issues/issue-61108.stderr renamed to tests/ui/borrowck/borrow-of-moved-value-in-for-loop-61108.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0382]: borrow of moved value: `bad_letters`
2-
--> $DIR/issue-61108.rs:6:5
2+
--> $DIR/borrow-of-moved-value-in-for-loop-61108.rs:7:5
33
|
44
LL | let mut bad_letters = vec!['e', 't', 'o', 'i'];
55
| --------------- move occurs because `bad_letters` has type `Vec<char>`, which does not implement the `Copy` trait

tests/ui/issues/issue-64559.rs renamed to tests/ui/borrowck/moved-value-in-closure-suggestion-64559.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/64559
12
fn main() {
23
let orig = vec![true];
34
for _val in orig {}

tests/ui/issues/issue-64559.stderr renamed to tests/ui/borrowck/moved-value-in-closure-suggestion-64559.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0382]: use of moved value: `orig`
2-
--> $DIR/issue-64559.rs:4:20
2+
--> $DIR/moved-value-in-closure-suggestion-64559.rs:5:20
33
|
44
LL | let orig = vec![true];
55
| ---- move occurs because `orig` has type `Vec<bool>`, which does not implement the `Copy` trait

tests/ui/issues/issue-65131.rs renamed to tests/ui/borrowck/multiple-mutable-borrows-error-65131.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/65131
12
fn get_pair(_a: &mut u32, _b: &mut u32) {}
23

34
macro_rules! x10 {

0 commit comments

Comments
 (0)