]> git.lizzy.rs Git - rust.git/commit
cleanup polonius liveness fact generation
authorRemy Rakic <remy.rakic@gmail.com>
Mon, 9 Dec 2019 17:54:06 +0000 (18:54 +0100)
committerRemy Rakic <remy.rakic@gmail.com>
Tue, 10 Dec 2019 10:44:44 +0000 (11:44 +0100)
commite6d8fbede2e492e55283072e426ba81ec90f54ae
treef566055751e0513c0c5f17c3e4d589b4faf6a2b3
parent883b6aacba85b524a194577a24a47f115106ecc8
cleanup polonius liveness fact generation

For the var_uses_region and var_drops_region relations:
- check for all facts existence only once
- remove function only used once
- pull var_uses_region with the other access facts instead of on its own
src/librustc_mir/borrow_check/nll/type_check/liveness/polonius.rs