diff options
| author | lqd <remy.rakic+github@gmail.com> | 2019-06-11 18:53:54 +0200 |
|---|---|---|
| committer | lqd <remy.rakic+github@gmail.com> | 2019-07-22 10:32:37 +0200 |
| commit | d4ca9a349ca67f3e23692a1ebfbce919da307738 (patch) | |
| tree | f4151c3907839dc7c722f48e8effa8dc11d2433e | |
| parent | c442dae5b89f175c2aa52877cb4f693b0f2b2ca6 (diff) | |
| download | rust-d4ca9a349ca67f3e23692a1ebfbce919da307738.tar.gz rust-d4ca9a349ca67f3e23692a1ebfbce919da307738.zip | |
Ignore test issue-45983 in the polonius compare mode
There is no difference between the NLL and Polonius outputs, and it manually tests NLLs.
| -rw-r--r-- | src/test/ui/borrowck/issue-45983.migrate.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/borrowck/issue-45983.nll.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/borrowck/issue-45983.rs | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/borrowck/issue-45983.migrate.stderr b/src/test/ui/borrowck/issue-45983.migrate.stderr index 3a6b2f69a1f..c1564cf07e6 100644 --- a/src/test/ui/borrowck/issue-45983.migrate.stderr +++ b/src/test/ui/borrowck/issue-45983.migrate.stderr @@ -1,5 +1,5 @@ error: borrowed data cannot be stored outside of its closure - --> $DIR/issue-45983.rs:19:27 + --> $DIR/issue-45983.rs:20:27 | LL | let x = None; | - borrowed data cannot be stored into here... diff --git a/src/test/ui/borrowck/issue-45983.nll.stderr b/src/test/ui/borrowck/issue-45983.nll.stderr index 94360b65ffe..dff0b4cebac 100644 --- a/src/test/ui/borrowck/issue-45983.nll.stderr +++ b/src/test/ui/borrowck/issue-45983.nll.stderr @@ -1,5 +1,5 @@ error[E0521]: borrowed data escapes outside of closure - --> $DIR/issue-45983.rs:19:18 + --> $DIR/issue-45983.rs:20:18 | LL | let x = None; | - `x` is declared here, outside of the closure body @@ -9,7 +9,7 @@ LL | give_any(|y| x = Some(y)); | `y` is a reference that is only valid in the closure body error[E0594]: cannot assign to `x`, as it is not declared as mutable - --> $DIR/issue-45983.rs:19:18 + --> $DIR/issue-45983.rs:20:18 | LL | let x = None; | - help: consider changing this to be mutable: `mut x` diff --git a/src/test/ui/borrowck/issue-45983.rs b/src/test/ui/borrowck/issue-45983.rs index a2656f5939a..3cd28207742 100644 --- a/src/test/ui/borrowck/issue-45983.rs +++ b/src/test/ui/borrowck/issue-45983.rs @@ -7,6 +7,7 @@ // revisions, don't worry about the --compare-mode=nll on this test. // ignore-compare-mode-nll +// ignore-compare-mode-polonius //[nll]compile-flags: -Z borrowck=mir |
