rust/src/librustc_typeck
Niko Matsakis ca98fefd04 Fix two bugs in HRTB: 1. Categorize early-vs-late bindings on impls when constructing generics, so that we don't add unnecessary region parameters. 2. Correct the DeBruijn indices when substituting the self type into the method signature.
Previously, the DeBruijn index for the self type was not being
adjusted to account for the fn binder. This mean that when late-bound
regions were instantiated, you sometimes wind up with two distinct
lifetimes.

Fixes #19537.
2014-12-10 19:45:19 -05:00
..
check typeck: Make the supplied parameters to be a tuple 2014-12-10 12:33:20 +09:00
coherence rollup merge of #19587: huonw/closure-feature-gate 2014-12-09 09:24:44 -08:00
astconv.rs Fix two bugs in HRTB: 1. Categorize early-vs-late bindings on impls when constructing generics, so that we don't add unnecessary region parameters. 2. Correct the DeBruijn indices when substituting the self type into the method signature. 2014-12-10 19:45:19 -05:00
collect.rs Fix two bugs in HRTB: 1. Categorize early-vs-late bindings on impls when constructing generics, so that we don't add unnecessary region parameters. 2. Correct the DeBruijn indices when substituting the self type into the method signature. 2014-12-10 19:45:19 -05:00
diagnostics.rs Feature-gate explicit unboxed closure method calls & manual impls, 2014-12-05 17:54:45 -08:00
lib.rs
rscope.rs librustc: Make Copy opt-in. 2014-12-08 13:47:44 -05:00
variance.rs librustc: Make Copy opt-in. 2014-12-08 13:47:44 -05:00