File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
// 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
+
12
26
fn main ( ) {
13
27
let mut c = ( 1 , "" . to_owned ( ) ) ;
14
28
match c {
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
// 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
+
12
28
fn main ( ) {
13
29
let mut c = ( 1 , ( 1 , "" . to_owned ( ) ) ) ;
14
30
match c {
Original file line number Diff line number Diff line change 12
12
#![ feature( test) ]
13
13
#![ allow( unused_mut) ] // under NLL we get warning about `x` below: rust-lang/rust#54499
14
14
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
+
15
31
extern crate test;
16
32
17
33
enum Void { }
You can’t perform that action at this time.
0 commit comments