about summary refs log tree commit diff
path: root/tests/ui/nll/issue-46589.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2025-01-30 12:47:04 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2025-01-31 11:04:50 +0000
commitbb1385ca8bdacd092e4110d26176dbf12092eedf (patch)
treee22a8b42084c9fdb661c4e978e4725456fd9870a /tests/ui/nll/issue-46589.rs
parent6ce46a82cb158c612a909b9acb16882c16fbe970 (diff)
downloadrust-bb1385ca8bdacd092e4110d26176dbf12092eedf.tar.gz
rust-bb1385ca8bdacd092e4110d26176dbf12092eedf.zip
merge duplicate issue-46589 tests
also add explicit revisions for -Zpolonius=next
Diffstat (limited to 'tests/ui/nll/issue-46589.rs')
-rw-r--r--tests/ui/nll/issue-46589.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/ui/nll/issue-46589.rs b/tests/ui/nll/issue-46589.rs
index 417d9cab657..10aff0d7b4e 100644
--- a/tests/ui/nll/issue-46589.rs
+++ b/tests/ui/nll/issue-46589.rs
@@ -1,8 +1,9 @@
-// This tests passes in Polonius mode, so is skipped in the automated compare-mode.
-// We will manually check it passes in Polonius tests, as we can't have a test here
-// which conditionally passes depending on a test revision/compile-flags.
-
-//@ ignore-compare-mode-polonius
+//@ ignore-compare-mode-polonius (explicit revisions)
+//@ revisions: nll polonius_next polonius
+//@ [polonius_next] check-pass
+//@ [polonius_next] compile-flags: -Zpolonius=next
+//@ [polonius] check-pass
+//@ [polonius] compile-flags: -Zpolonius
 
 struct Foo;
 
@@ -21,7 +22,7 @@ impl Foo {
         *other = match (*other).get_self() {
             Some(s) => s,
             None => (*other).new_self()
-            //~^ ERROR cannot borrow `**other` as mutable more than once at a time [E0499]
+            //[nll]~^ ERROR cannot borrow `**other` as mutable more than once at a time [E0499]
         };
 
         let c = other;