]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #42482 - eddyb:issue-42467, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 7 Jun 2017 10:09:11 +0000 (10:09 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Jun 2017 10:09:11 +0000 (10:09 +0000)
rustc: T: 'empty always holds for all types.

Fixes #42467 by special-casing `ReEmpty` to always hold, even for parameters.
The reason this is the case is that `ReEmpty` is the result of inferring a region variable with no constraints attached to it, so there is no lifetime a type would contain which would be strictly shorter.

r? @nikomatsakis

1  2 
src/librustc/infer/region_inference/mod.rs