about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-25 19:28:16 +0000
committerbors <bors@rust-lang.org>2021-03-25 19:28:16 +0000
commit52e3dffa50cfffdcfa145c0cc0ba48b49abc0c07 (patch)
tree465f243b97249b7476d3ca4ce4885154ca0709cf /compiler/rustc_codegen_llvm/src
parentcb473c2c5b72289470fa4de00474b7239013f11f (diff)
parent44e9d201c1a5bb7db4fd9e312ea1ad690fc42476 (diff)
downloadrust-52e3dffa50cfffdcfa145c0cc0ba48b49abc0c07.tar.gz
rust-52e3dffa50cfffdcfa145c0cc0ba48b49abc0c07.zip
Auto merge of #82743 - jackh726:resolve-refactor, r=nikomatsakis
Refactor rustc_resolve::late::lifetimes to resolve per-item

There are some changes to tests that I'd like some feedback on; so this is still WIP.

The reason behind this change will (hopefully) allow us to (as part of #76814) be able to essentially use the lifetime resolve code to resolve *all* late bound vars (including those of super traits). Currently, it only resolves those that are *syntactically* in scope. In #76814, I'm essentially finding that I would essentially have to redo the passing of bound vars through scopes (i.e. when instantiating a poly trait ref), and that's what this code does anyways. However, to be able to do this (ask super traits what bound vars are in scope), we have to be able to resolve items separately.

The first commit is actually partially orthogonal. Essentially removing one use of late bound debruijn indices.

Not exactly sure who would be best to review here.
Let r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions