]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #52991 - nikomatsakis:nll-escaping-into-return, r=pnkfelix
authorbors <bors@rust-lang.org>
Sun, 5 Aug 2018 07:06:11 +0000 (07:06 +0000)
committerbors <bors@rust-lang.org>
Sun, 5 Aug 2018 07:06:11 +0000 (07:06 +0000)
commitb47c314c5652c8ecc3f086b0326f467b857b9d5b
treec755c1c13fd5b6e908a6f315cf13640c9d04c143
parentddcf17e1ed577bad26e92db3c25499620f853a49
parent2e2ea26a8305d44e2441b8a97e05f7f4d69f7220
Auto merge of #52991 - nikomatsakis:nll-escaping-into-return, r=pnkfelix

avoid computing liveness for locals that escape into statics

Fixes #52713

I poked at this on the plane and I think it's working -- but I want to do a bit more investigation and double check. The idea is to identify those local variables where the entire value will "escape" into the return -- for them, we don't need to compute liveness, since we know that the outlives relations from the return type will force those regions to be equal to free regions. This should help with html5ever in particular.

- [x] test performance
- [x] verify correctness
- [x] add comments

r? @pnkfelix
cc @lqd