File tree Expand file tree Collapse file tree 4 files changed +8
-39
lines changed Expand file tree Collapse file tree 4 files changed +8
-39
lines changed Original file line number Diff line number Diff line change @@ -3146,7 +3146,6 @@ ui/nll/issue-97997.rs
31463146ui/nll/issue-98170.rs
31473147ui/nll/issue-98589-closures-relate-named-regions.rs
31483148ui/nll/issue-98693.rs
3149- ui/nll/polonius/issue-46589.rs
31503149ui/nll/relate_tys/issue-48071.rs
31513150ui/nll/ty-outlives/issue-53789-1.rs
31523151ui/nll/ty-outlives/issue-53789-2.rs
Original file line number Diff line number Diff line change 11error[E0499]: cannot borrow `**other` as mutable more than once at a time
2- --> $DIR/issue-46589.rs:23 :21
2+ --> $DIR/issue-46589.rs:24 :21
33 |
44LL | *other = match (*other).get_self() {
55 | -------- first mutable borrow occurs here
Original file line number Diff line number Diff line change 1- // This tests passes in Polonius mode, so is skipped in the automated compare-mode.
2- // We will manually check it passes in Polonius tests, as we can't have a test here
3- // which conditionally passes depending on a test revision/compile-flags.
4-
5- //@ ignore-compare-mode-polonius
1+ //@ ignore-compare-mode-polonius (explicit revisions)
2+ //@ revisions: nll polonius_next polonius
3+ //@ [polonius_next] check-pass
4+ //@ [polonius_next] compile-flags: -Zpolonius=next
5+ //@ [polonius] check-pass
6+ //@ [polonius] compile-flags: -Zpolonius
67
78struct Foo ;
89
@@ -21,7 +22,7 @@ impl Foo {
2122 * other = match ( * other) . get_self ( ) {
2223 Some ( s) => s,
2324 None => ( * other) . new_self ( )
24- //~^ ERROR cannot borrow `**other` as mutable more than once at a time [E0499]
25+ //[nll] ~^ ERROR cannot borrow `**other` as mutable more than once at a time [E0499]
2526 } ;
2627
2728 let c = other;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments