Skip to content

Commit c442dae

Browse files
committed
Ignore NLL migrate mode test in the Polonius compare-mode
This is test specific to the NLL migrate mode which is irrelevant to -Z polonius. It can't currently be encoded depending on migrate-mode and NLL/Polonius mode, so the NLL compare-mode also ignores it.
1 parent 273f42b commit c442dae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/test/ui/borrowck/borrowck-migrate-to-nll.edition.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning[E0507]: cannot move out of `foo` in pattern guard
2-
--> $DIR/borrowck-migrate-to-nll.rs:25:18
2+
--> $DIR/borrowck-migrate-to-nll.rs:26:18
33
|
44
LL | (|| { let bar = foo; bar.take() })();
55
| ^^ ---

src/test/ui/borrowck/borrowck-migrate-to-nll.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// just ignore it instead:
1111

1212
// ignore-compare-mode-nll
13+
// ignore-compare-mode-polonius
1314

1415
// revisions: zflag edition
1516
//[zflag]compile-flags: -Z borrowck=migrate

src/test/ui/borrowck/borrowck-migrate-to-nll.zflag.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning[E0507]: cannot move out of `foo` in pattern guard
2-
--> $DIR/borrowck-migrate-to-nll.rs:25:18
2+
--> $DIR/borrowck-migrate-to-nll.rs:26:18
33
|
44
LL | (|| { let bar = foo; bar.take() })();
55
| ^^ ---

0 commit comments

Comments
 (0)