Skip to content

Commit 4229739

Browse files
committed
Add ignore-compare-mode-nll to some run-pass tests that become compile-fail under rust-lang#54986.
1 parent 3587ff5 commit 4229739

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

Diff for: src/test/run-pass/issues/issue-26996.rs

+14
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
13+
// This test is bogus (i.e. should be compile-fail) during the period
14+
// where #54986 is implemented and #54987 is *not* implemented. For
15+
// now: just ignore it under nll
16+
//
17+
// ignore-compare-mode-nll
18+
19+
// This test is checking that the write to `c.0` (which has been moved out of)
20+
// won't overwrite the state in `c2`.
21+
//
22+
// That's a fine thing to test when this code is accepted by the
23+
// compiler, and this code is being transcribed accordingly into
24+
// the ui test issue-21232-partial-init-and-use.rs
25+
1226
fn main() {
1327
let mut c = (1, "".to_owned());
1428
match c {

Diff for: src/test/run-pass/issues/issue-27021.rs

+16
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
13+
// This test is bogus (i.e. should be compile-fail) during the period
14+
// where #54986 is implemented and #54987 is *not* implemented. For
15+
// now: just ignore it under nll
16+
//
17+
// ignore-compare-mode-nll
18+
19+
// These are variants of issue-26996.rs. In all cases we are writing
20+
// into a record field that has been moved out of, and ensuring that
21+
// such a write won't overwrite the state of the thing it was moved
22+
// into.
23+
//
24+
// That's a fine thing to test when this code is accepted by the
25+
// compiler, and this code is being transcribed accordingly into
26+
// the ui test issue-21232-partial-init-and-use.rs
27+
1228
fn main() {
1329
let mut c = (1, (1, "".to_owned()));
1430
match c {

Diff for: src/test/run-pass/issues/issue-49298.rs

+16
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
1212
#![feature(test)]
1313
#![allow(unused_mut)] // under NLL we get warning about `x` below: rust-lang/rust#54499
1414

15+
// This test is bogus (i.e. should be compile-fail) during the period
16+
// where #54986 is implemented and #54987 is *not* implemented. For
17+
// now: just ignore it under nll
18+
//
19+
// ignore-compare-mode-nll
20+
21+
// This test is checking that the space allocated for `x.1` does not
22+
// overlap with `y`. (The reason why such a thing happened at one
23+
// point was because `x.0: Void` and thus the whole type of `x` was
24+
// uninhabited, and so the compiler thought it was safe to use the
25+
// space of `x.1` to hold `y`.)
26+
//
27+
// That's a fine thing to test when this code is accepted by the
28+
// compiler, and this code is being transcribed accordingly into
29+
// the ui test issue-21232-partial-init-and-use.rs
30+
1531
extern crate test;
1632

1733
enum Void {}

0 commit comments

Comments
 (0)