Skip to content

Commit bb1385c

Browse files
committed
merge duplicate issue-46589 tests
also add explicit revisions for -Zpolonius=next
1 parent 6ce46a8 commit bb1385c

File tree

4 files changed

+8
-39
lines changed

4 files changed

+8
-39
lines changed

src/tools/tidy/src/issues.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,6 @@ ui/nll/issue-97997.rs
31463146
ui/nll/issue-98170.rs
31473147
ui/nll/issue-98589-closures-relate-named-regions.rs
31483148
ui/nll/issue-98693.rs
3149-
ui/nll/polonius/issue-46589.rs
31503149
ui/nll/relate_tys/issue-48071.rs
31513150
ui/nll/ty-outlives/issue-53789-1.rs
31523151
ui/nll/ty-outlives/issue-53789-2.rs

tests/ui/nll/issue-46589.stderr renamed to tests/ui/nll/issue-46589.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[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
|
44
LL | *other = match (*other).get_self() {
55
| -------- first mutable borrow occurs here

tests/ui/nll/issue-46589.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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

78
struct 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;

tests/ui/nll/polonius/issue-46589.rs

-31
This file was deleted.

0 commit comments

Comments
 (0)