2022-02-15 06:58:34 -06:00
|
|
|
|
- // MIR for `main` before ConstProp
|
|
|
|
|
+ // MIR for `main` after ConstProp
|
|
|
|
|
|
|
|
|
|
fn main() -> () {
|
2022-07-27 13:47:42 -05:00
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/invalid_constant.rs:+0:11: +0:11
|
|
|
|
|
let _1: char; // in scope 0 at $DIR/invalid_constant.rs:+6:9: +6:22
|
|
|
|
|
let mut _2: main::InvalidChar; // in scope 0 at $DIR/invalid_constant.rs:+6:34: +6:63
|
|
|
|
|
let mut _4: E; // in scope 0 at $DIR/invalid_constant.rs:+13:25: +13:59
|
|
|
|
|
let mut _5: main::InvalidTag; // in scope 0 at $DIR/invalid_constant.rs:+13:34: +13:55
|
2022-02-16 18:00:00 -06:00
|
|
|
|
scope 1 {
|
2022-07-27 13:47:42 -05:00
|
|
|
|
debug _invalid_char => _1; // in scope 1 at $DIR/invalid_constant.rs:+6:9: +6:22
|
|
|
|
|
let _3: [E; 1]; // in scope 1 at $DIR/invalid_constant.rs:+13:9: +13:21
|
2022-03-03 06:02:52 -06:00
|
|
|
|
scope 3 {
|
2022-07-27 13:47:42 -05:00
|
|
|
|
debug _invalid_tag => _3; // in scope 3 at $DIR/invalid_constant.rs:+13:9: +13:21
|
|
|
|
|
let _6: [Empty; 1]; // in scope 3 at $DIR/invalid_constant.rs:+20:9: +20:31
|
2022-03-03 06:02:52 -06:00
|
|
|
|
scope 5 {
|
2022-07-27 13:47:42 -05:00
|
|
|
|
debug _enum_without_variants => _6; // in scope 5 at $DIR/invalid_constant.rs:+20:9: +20:31
|
2022-12-04 13:20:55 -06:00
|
|
|
|
let _7: main::Str<"<22><><EFBFBD>">; // in scope 5 at $DIR/invalid_constant.rs:+24:9: +24:22
|
2022-03-03 06:02:52 -06:00
|
|
|
|
scope 7 {
|
2022-12-04 13:20:55 -06:00
|
|
|
|
debug _non_utf8_str => _7; // in scope 7 at $DIR/invalid_constant.rs:+24:9: +24:22
|
2022-02-18 18:00:00 -06:00
|
|
|
|
}
|
2022-02-16 18:00:00 -06:00
|
|
|
|
}
|
2022-03-03 06:02:52 -06:00
|
|
|
|
scope 6 {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
scope 4 {
|
2022-02-15 06:58:34 -06:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-03-03 06:02:52 -06:00
|
|
|
|
scope 2 {
|
|
|
|
|
}
|
2022-02-15 06:58:34 -06:00
|
|
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
|
StorageLive(_1); // scope 0 at $DIR/invalid_constant.rs:+6:9: +6:22
|
|
|
|
|
StorageLive(_2); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
|
|
|
|
Deinit(_2); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
|
|
|
|
(_2.0: u32) = const 1114113_u32; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:63
|
|
|
|
|
- _1 = (_2.1: char); // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
|
|
|
|
+ _1 = const {transmute(0x00110001): char}; // scope 2 at $DIR/invalid_constant.rs:+6:34: +6:67
|
|
|
|
|
StorageDead(_2); // scope 0 at $DIR/invalid_constant.rs:+6:69: +6:70
|
|
|
|
|
StorageLive(_3); // scope 1 at $DIR/invalid_constant.rs:+13:9: +13:21
|
|
|
|
|
StorageLive(_4); // scope 1 at $DIR/invalid_constant.rs:+13:25: +13:59
|
|
|
|
|
StorageLive(_5); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
|
|
|
|
Deinit(_5); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
|
|
|
|
(_5.0: u32) = const 4_u32; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:55
|
|
|
|
|
- _4 = (_5.1: E); // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
|
|
|
|
- _3 = [move _4]; // scope 1 at $DIR/invalid_constant.rs:+13:24: +13:60
|
|
|
|
|
+ _4 = const Scalar(0x00000004): E; // scope 4 at $DIR/invalid_constant.rs:+13:34: +13:57
|
2022-02-15 06:58:34 -06:00
|
|
|
|
+ // mir::Constant
|
2022-03-03 06:02:52 -06:00
|
|
|
|
+ // + span: $DIR/invalid_constant.rs:28:34: 28:57
|
|
|
|
|
+ // + literal: Const { ty: E, val: Value(Scalar(0x00000004)) }
|
2022-07-27 13:47:42 -05:00
|
|
|
|
+ _3 = [const Scalar(0x00000004): E]; // scope 1 at $DIR/invalid_constant.rs:+13:24: +13:60
|
2022-02-15 06:58:34 -06:00
|
|
|
|
+ // mir::Constant
|
2022-03-03 06:02:52 -06:00
|
|
|
|
+ // + span: $DIR/invalid_constant.rs:28:24: 28:60
|
|
|
|
|
+ // + literal: Const { ty: E, val: Value(Scalar(0x00000004)) }
|
2022-07-27 13:47:42 -05:00
|
|
|
|
StorageDead(_4); // scope 1 at $DIR/invalid_constant.rs:+13:59: +13:60
|
|
|
|
|
StorageDead(_5); // scope 1 at $DIR/invalid_constant.rs:+13:60: +13:61
|
|
|
|
|
StorageLive(_6); // scope 3 at $DIR/invalid_constant.rs:+20:9: +20:31
|
2022-12-04 13:20:55 -06:00
|
|
|
|
StorageLive(_7); // scope 5 at $DIR/invalid_constant.rs:+24:9: +24:22
|
|
|
|
|
StorageDead(_7); // scope 5 at $DIR/invalid_constant.rs:+27:1: +27:2
|
2022-07-27 13:47:42 -05:00
|
|
|
|
StorageDead(_6); // scope 3 at $DIR/invalid_constant.rs:+27:1: +27:2
|
|
|
|
|
StorageDead(_3); // scope 1 at $DIR/invalid_constant.rs:+27:1: +27:2
|
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/invalid_constant.rs:+27:1: +27:2
|
|
|
|
|
return; // scope 0 at $DIR/invalid_constant.rs:+27:2: +27:2
|
2022-02-15 06:58:34 -06:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|