Skip to content

Commit a85bbc2

Browse files
authored
Unrolled build for #144397
Rollup merge of #144397 - Kivooeo:issue2, r=jieyouxu `tests/ui/issues/`: The Issues Strike Back [2/N] Some `tests/ui/issues/` housekeeping, to trim down number of tests directly under `tests/ui/issues/`. Part of #133895. r? ``@jieyouxu``
2 parents e3ee7f7 + a4a5bf5 commit a85bbc2

File tree

48 files changed

+140
-62
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

+140
-62
lines changed

tests/ui/issues/issue-13264.rs renamed to tests/ui/autoref-autoderef/deref-chain-method-calls-13264.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/13264
2+
13
//@ run-pass
24
#![allow(non_camel_case_types)]
35
#![allow(non_snake_case)]

tests/ui/issues/issue-11709.rs renamed to tests/ui/block-result/blocks-without-results-11709.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11709
2+
13
//@ run-pass
24
#![allow(dead_code)]
35

tests/ui/issues/issue-12041.rs renamed to tests/ui/borrowck/moved-value-in-thread-loop-12041.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/12041
2+
13
use std::sync::mpsc::channel;
24
use std::thread;
35

tests/ui/issues/issue-12041.stderr renamed to tests/ui/borrowck/moved-value-in-thread-loop-12041.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: `tx`
2-
--> $DIR/issue-12041.rs:8:22
2+
--> $DIR/moved-value-in-thread-loop-12041.rs:10:22
33
|
44
LL | let tx = tx;
55
| ^^ value moved here, in previous iteration of loop

tests/ui/issues/issue-12033.rs renamed to tests/ui/borrowck/refcell-borrow-comparison-12033.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/12033
2+
13
//@ run-pass
24
use std::cell::RefCell;
35

tests/ui/issues/issue-11869.rs renamed to tests/ui/borrowck/string-literal-match-patterns-11869.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11869
2+
13
//@ check-pass
24
#![allow(dead_code)]
35

tests/ui/issues/issue-12127.rs renamed to tests/ui/closures/fnonce-moved-twice-12127.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/12127
2+
13
#![feature(unboxed_closures, tuple_trait)]
24

35
fn to_fn_once<A:std::marker::Tuple,F:FnOnce<A>>(f: F) -> F { f }

tests/ui/issues/issue-12127.stderr renamed to tests/ui/closures/fnonce-moved-twice-12127.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
error[E0382]: use of moved value: `f`
2-
--> $DIR/issue-12127.rs:11:9
2+
--> $DIR/fnonce-moved-twice-12127.rs:13:9
33
|
44
LL | f();
55
| --- `f` moved due to this call
66
LL | f();
77
| ^ value used here after move
88
|
99
note: this value implements `FnOnce`, which causes it to be moved when called
10-
--> $DIR/issue-12127.rs:10:9
10+
--> $DIR/fnonce-moved-twice-12127.rs:12:9
1111
|
1212
LL | f();
1313
| ^
14-
= note: move occurs because `f` has type `{closure@$DIR/issue-12127.rs:8:24: 8:30}`, which does not implement the `Copy` trait
14+
= note: move occurs because `f` has type `{closure@$DIR/fnonce-moved-twice-12127.rs:10:24: 10:30}`, which does not implement the `Copy` trait
1515

1616
error: aborting due to 1 previous error
1717

tests/ui/issues/issue-11958.rs renamed to tests/ui/closures/moved-upvar-mut-rebind-11958.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11958
2+
13
//@ run-pass
24

35
// We shouldn't need to rebind a moved upvar as mut if it's already

tests/ui/issues/issue-11958.stderr renamed to tests/ui/closures/moved-upvar-mut-rebind-11958.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: value assigned to `x` is never read
2-
--> $DIR/issue-11958.rs:8:36
2+
--> $DIR/moved-upvar-mut-rebind-11958.rs:10:36
33
|
44
LL | let _thunk = Box::new(move|| { x = 2; });
55
| ^
@@ -8,7 +8,7 @@ LL | let _thunk = Box::new(move|| { x = 2; });
88
= note: `#[warn(unused_assignments)]` on by default
99

1010
warning: unused variable: `x`
11-
--> $DIR/issue-11958.rs:8:36
11+
--> $DIR/moved-upvar-mut-rebind-11958.rs:10:36
1212
|
1313
LL | let _thunk = Box::new(move|| { x = 2; });
1414
| ^

0 commit comments

Comments
 (0)