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.
This commit is contained in:
lqd 2019-06-11 18:36:15 +02:00
parent 273f42b596
commit c442dae5b8
3 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,5 @@
warning[E0507]: cannot move out of `foo` in pattern guard
--> $DIR/borrowck-migrate-to-nll.rs:25:18
--> $DIR/borrowck-migrate-to-nll.rs:26:18
|
LL | (|| { let bar = foo; bar.take() })();
| ^^ ---

View file

@ -10,6 +10,7 @@
// just ignore it instead:
// ignore-compare-mode-nll
// ignore-compare-mode-polonius
// revisions: zflag edition
//[zflag]compile-flags: -Z borrowck=migrate

View file

@ -1,5 +1,5 @@
warning[E0507]: cannot move out of `foo` in pattern guard
--> $DIR/borrowck-migrate-to-nll.rs:25:18
--> $DIR/borrowck-migrate-to-nll.rs:26:18
|
LL | (|| { let bar = foo; bar.take() })();
| ^^ ---