Skip to content

Commit ff5934f

Browse files
committed
Update tests
1 parent 5b31e00 commit ff5934f

3 files changed

+7
-2
lines changed

tests/ui/errors/remap-path-prefix-sysroot.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// [without-remap]compile-flags:
55
// error-pattern: E0507
66

7+
// The $SRC_DIR*.rs:LL:COL normalisation doesn't kick in automatically
8+
// as the remapped revision will not begin with $SRC_DIR_REAL,
9+
// so we have to do it ourselves.
10+
// normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:COL"
11+
712
use std::thread;
813
struct Worker {
914
thread: thread::JoinHandle<()>,

tests/ui/errors/remap-path-prefix-sysroot.with-remap.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0507]: cannot move out of `self.thread` which is behind a mutable reference
2-
--> remapped/tests/ui/errors/remap-path-prefix-sysroot.rs:14:9
2+
--> remapped/tests/ui/errors/remap-path-prefix-sysroot.rs:LL:COL
33
|
44
LL | self.thread.join().unwrap();
55
| ^^^^^^^^^^^ ------ `self.thread` moved due to this method call

tests/ui/errors/remap-path-prefix-sysroot.without-remap.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0507]: cannot move out of `self.thread` which is behind a mutable reference
2-
--> $DIR/remap-path-prefix-sysroot.rs:14:9
2+
--> $DIR/remap-path-prefix-sysroot.rs:LL:COL
33
|
44
LL | self.thread.join().unwrap();
55
| ^^^^^^^^^^^ ------ `self.thread` moved due to this method call

0 commit comments

Comments
 (0)