Skip to content

Commit 63c837e

Browse files
committed
Ignore feature-gate-nll.rs in Polonius compare mode
This is a test about turning the NLL feature gate on, ignored by the NLL compare-mode.
1 parent 273bfd4 commit 63c837e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/ui/feature-gates/feature-gate-nll.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// Don't use compare-mode=nll, since that turns on NLL.
55
// ignore-compare-mode-nll
6+
// ignore-compare-mode-polonius
67

78
#![feature(rustc_attrs)]
89

src/test/ui/feature-gates/feature-gate-nll.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning[E0502]: cannot borrow `*x.1` as immutable because it is also borrowed as mutable
2-
--> $DIR/feature-gate-nll.rs:14:13
2+
--> $DIR/feature-gate-nll.rs:15:13
33
|
44
LL | let m = &mut x;
55
| ------ mutable borrow occurs here
@@ -14,7 +14,7 @@ LL | m;
1414
= note: for more information, try `rustc --explain E0729`
1515

1616
error: compilation successful
17-
--> $DIR/feature-gate-nll.rs:10:1
17+
--> $DIR/feature-gate-nll.rs:11:1
1818
|
1919
LL | / fn main() {
2020
LL | | let mut x = (33, &0);

0 commit comments

Comments
 (0)