1 // this tests move up progration, which is not yet implemented
3 // Check codegen for assignments (`a = b`) where the left-hand-side is
4 // not yet initialized. Assignments tend to be absent in simple code,
5 // so subtle breakage in them can leave a quite hard-to-find trail of
12 // Since boolean does not require drop, this can be a simple
16 let drop_x : Option<Box<u32>> = None;
19 // Since the type of `drop_y` has drop, we generate a `replace`
25 // START rustc.main.SimplifyCfg-initial.after.mir
29 // FakeRead(ForLet, _1);
36 // _4 = std::option::Option::<std::boxed::Box<u32>>::None;
37 // FakeRead(ForLet, _4);
38 // AscribeUserType(_4, o, UserTypeProjection { base: UserType(1), projs: [] });
42 // replace(_5 <- move _6) -> [return: bb2, unwind: bb5];
46 // drop(_6) -> [return: bb6, unwind: bb4];
52 // END rustc.main.SimplifyCfg-initial.after.mir