rust/src/librustc_typeck
bors f9e53c7f2c Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix
Rather than storing the relations between free-regions in a global
table, introduce a `FreeRegionMap` data structure. regionck computes the
`FreeRegionMap` for each fn and stores the result into the tcx so that
borrowck can use it (this could perhaps be refactored to have borrowck
recompute the map, but it's a bid tedious to recompute due to the
interaction of closures and free fns). The main reason to do this is
because of #22779 -- using a global table was incorrect because when
validating impl method signatures, we want to use the free region
relationships from the *trait*, not the impl.

Fixes #22779.
2015-04-24 21:07:41 +00:00
..
check Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix 2015-04-24 21:07:41 +00:00
coherence Positive case of len() -> is_empty() 2015-04-14 20:26:03 -07:00
astconv.rs Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix 2015-04-24 21:07:41 +00:00
collect.rs Rather than storing the relations between free-regions in a global 2015-04-18 11:35:51 -04:00
constrained_type_params.rs Rewrite constrained type params code to operate generically over 2015-04-17 10:05:33 -04:00
diagnostics.rs If we find a blanket impl for Trait but we're matching on an object 2015-04-06 06:12:51 -04:00
lib.rs Added test for #24036, using spans to display note/help for this message now 2015-04-04 16:29:29 -06:00
rscope.rs Fallout out rustc 2015-04-01 11:22:39 -04:00
variance.rs Create a struct to represent early-bound regions 2015-04-17 10:05:32 -04:00