diff options
| author | bors <bors@rust-lang.org> | 2018-10-16 23:27:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-16 23:27:43 +0000 |
| commit | 01ca85becd45a4115bd5a1b367a1667c06f0906b (patch) | |
| tree | d5ccbfbaf741308c228752047d8088ff87a0b7cc /src/test/incremental/thinlto | |
| parent | bef62ccddb911b9cd7677717a69348a62cf61f96 (diff) | |
| parent | b70b4a6814d420222f28684f9286a21ddb980bcf (diff) | |
| download | rust-01ca85becd45a4115bd5a1b367a1667c06f0906b.tar.gz rust-01ca85becd45a4115bd5a1b367a1667c06f0906b.zip | |
Auto merge of #55093 - nikomatsakis:nll-issue-54574-multisegment-path, r=pnkfelix
nll type annotations in multisegment path This turned out to be sort of tricky. The problem is that if you have a path like ``` <Foo<&'static u32>>::bar ``` and it comes from an impl like `impl<T> Foo<T>` then the self-type the user gave doesn't *directly* map to the substitutions that the impl wants. To handle this, then, we have to preserve not just the "user-given substs" we used to do, but also a "user-given self-ty", which we have to apply later. This PR makes those changes. It also removes the code from NLL relate-ops that handled canonical variables and moves to use normal inference variables instead. This simplifies a few things and gives us a bit more flexibility (for example, I predict we are going to have to start normalizing at some point, and it would be easy now). r? @matthewjasper -- you were just touching this code, do you feel comfortable reviewing this? Fixes #54574
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
