Skip to content

Commit d4ca9a3

Browse files
committed
Ignore test issue-45983 in the polonius compare mode
There is no difference between the NLL and Polonius outputs, and it manually tests NLLs.
1 parent c442dae commit d4ca9a3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/test/ui/borrowck/issue-45983.migrate.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: borrowed data cannot be stored outside of its closure
2-
--> $DIR/issue-45983.rs:19:27
2+
--> $DIR/issue-45983.rs:20:27
33
|
44
LL | let x = None;
55
| - borrowed data cannot be stored into here...

src/test/ui/borrowck/issue-45983.nll.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0521]: borrowed data escapes outside of closure
2-
--> $DIR/issue-45983.rs:19:18
2+
--> $DIR/issue-45983.rs:20:18
33
|
44
LL | let x = None;
55
| - `x` is declared here, outside of the closure body
@@ -9,7 +9,7 @@ LL | give_any(|y| x = Some(y));
99
| `y` is a reference that is only valid in the closure body
1010

1111
error[E0594]: cannot assign to `x`, as it is not declared as mutable
12-
--> $DIR/issue-45983.rs:19:18
12+
--> $DIR/issue-45983.rs:20:18
1313
|
1414
LL | let x = None;
1515
| - help: consider changing this to be mutable: `mut x`

src/test/ui/borrowck/issue-45983.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// revisions, don't worry about the --compare-mode=nll on this test.
88

99
// ignore-compare-mode-nll
10+
// ignore-compare-mode-polonius
1011

1112
//[nll]compile-flags: -Z borrowck=mir
1213

0 commit comments

Comments
 (0)