Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
mir-opt
/
simplify-locals-removes-unused-discriminant-reads.rs
blob: d09bd92c4e81d176328a1159f1c23aadd8c1e723 [
file
] [
log
] [
blame
]
// unit-test: SimplifyLocals
fn
map
(
x
:
Option
<
Box
<()>>)
->
Option
<
Box
<()>>
{
match
x
{
None
=>
None
,
Some
(
x
)
=>
Some
(
x
),
}
}
fn
main
()
{
map
(
None
);
}
// EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff