File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 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+
1226fn main ( ) {
1327 let mut c = ( 1 , "" . to_owned ( ) ) ;
1428 match c {
Original file line number Diff line number Diff line change 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+
1228fn main ( ) {
1329 let mut c = ( 1 , ( 1 , "" . to_owned ( ) ) ) ;
1430 match c {
Original file line number Diff line number Diff line change 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+
1531extern crate test;
1632
1733enum Void { }
You can’t perform that action at this time.
0 commit comments