75e2e8c71b
Allow the `SimplifyLocals` pass to remove reads of discriminants if the read is never used.
13 lines
193 B
Rust
13 lines
193 B
Rust
fn map(x: Option<Box<()>>) -> Option<Box<()>> {
|
|
match x {
|
|
None => None,
|
|
Some(x) => Some(x),
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
map(None);
|
|
}
|
|
|
|
// EMIT_MIR rustc.map.SimplifyLocals.diff
|