]> git.lizzy.rs Git - rust.git/commit
Make `MaybeStorageLive` correct for all kinds of MIR bodies
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 29 Mar 2020 21:16:29 +0000 (14:16 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 9 Apr 2020 19:45:46 +0000 (12:45 -0700)
commitfcd1f5bc0a1090f295667dc0fdb7f238672b0302
treee1e64058e6aa0520711cf2215e6382a0d77f1ed4
parent444ad6255b3324a7dd3c4d852808336d39a09ab3
Make `MaybeStorageLive` correct for all kinds of MIR bodies

Before, it ignored the first argument and marked all variables without
`Storage*` annotations as dead.
src/librustc_mir/dataflow/impls/storage_liveness.rs