mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
26 lines
1.4 KiB
Diff
26 lines
1.4 KiB
Diff
- // MIR for `main` before DeadStoreElimination
|
|
+ // MIR for `main` after DeadStoreElimination
|
|
|
|
fn main() -> () {
|
|
let mut _0: (); // return place in scope 0 at $DIR/place_mention.rs:+0:11: +0:11
|
|
let mut _1: (&str, &str); // in scope 0 at $DIR/place_mention.rs:+3:18: +3:36
|
|
scope 1 {
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1); // scope 0 at $DIR/place_mention.rs:+3:18: +3:36
|
|
_1 = (const "Hello", const "World"); // scope 0 at $DIR/place_mention.rs:+3:18: +3:36
|
|
// mir::Constant
|
|
// + span: $DIR/place_mention.rs:8:19: 8:26
|
|
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
|
// mir::Constant
|
|
// + span: $DIR/place_mention.rs:8:28: 8:35
|
|
// + literal: Const { ty: &str, val: Value(Slice(..)) }
|
|
PlaceMention(_1); // scope 0 at $DIR/place_mention.rs:+3:18: +3:36
|
|
StorageDead(_1); // scope 0 at $DIR/place_mention.rs:+3:36: +3:37
|
|
_0 = const (); // scope 0 at $DIR/place_mention.rs:+0:11: +4:2
|
|
return; // scope 0 at $DIR/place_mention.rs:+4:2: +4:2
|
|
}
|
|
}
|
|
|