1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // this tests move up progration, which is not yet implemented
12 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
13 // file at the top-level directory of this distribution and at
14 // http://rust-lang.org/COPYRIGHT.
16 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
17 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
18 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
19 // option. This file may not be copied, modified, or distributed
20 // except according to those terms.
22 // check that codegen of assignment expressions is sane. Assignments
23 // tend to be absent in simple code, so subtle breakage in them can
24 // leave a quite hard-to-find trail of destruction.
26 // ignore-tidy-linelength
34 let drop_x : Option<Box<u32>> = None;
41 // START rustc.main.SimplifyCfg-initial.after.mir
51 // UserAssertTy(Canonical { variables: [], value: std::option::Option<std::boxed::Box<u32>> }, _4);
52 // _4 = std::option::Option<std::boxed::Box<u32>>::None;
56 // replace(_5 <-move _6) -> [return: bb2, unwind: bb5];
62 // drop(_6) -> [return: bb6, unwind: bb4];
76 // drop(_5) -> [return: bb7, unwind: bb3];
80 // drop(_4) -> [return: bb8, unwind: bb1];
88 // END rustc.main.SimplifyCfg-initial.after.mir