diff options
| author | Brian Koropoff <bkoropoff@gmail.com> | 2014-11-05 23:50:10 -0800 |
|---|---|---|
| committer | Brian Koropoff <bkoropoff@gmail.com> | 2014-11-06 18:17:57 -0800 |
| commit | daa215e8c536a1940d9f0f668610c67e6aa8542e (patch) | |
| tree | 191a890ef7b2a73f46fc24940a3f153578ea6326 /src/libstd/path | |
| parent | 63c4f22f2bf9f1c070311cdc08c6ceb279434733 (diff) | |
| download | rust-daa215e8c536a1940d9f0f668610c67e6aa8542e.tar.gz rust-daa215e8c536a1940d9f0f668610c67e6aa8542e.zip | |
Fix handling of unboxed closure type param substitutions
- When selecting an implicit trait impl for an unboxed closure, plumb through and use the substitutions from impl selection instead of using those from the current param environment in trans, which may be incorrect. - When generating a function declaration for an unboxed closure, plumb through the substitutions from the param environment of the closure as above. Also normalize the type to avoid generating duplicate declarations due to regions being inconsistently replaced with ReStatic elsewhere. - Do not place the closure type in the self param space when translating the unboxed closure callee, etc. It is not actually used, and doing so conflicts with the self substitution from default trait methods. Closes #18661 Closes #18685
Diffstat (limited to 'src/libstd/path')
0 files changed, 0 insertions, 0 deletions
