mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
3e030b38ef
This saves a few blocks and matches the common `unpack!` paradigm.
23 lines
371 B
Rust
23 lines
371 B
Rust
// MIR for `bar` after built
|
|
|
|
fn bar(_1: [(Never, u32); 1]) -> u32 {
|
|
let mut _0: u32;
|
|
let _2: u32;
|
|
scope 1 {
|
|
debug x => _2;
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
_2 = (_1[0 of 1].1: u32);
|
|
_0 = _2;
|
|
StorageDead(_2);
|
|
return;
|
|
}
|
|
|
|
bb1: {
|
|
FakeRead(ForMatchedPlace(None), _1);
|
|
unreachable;
|
|
}
|
|
}
|