1
Fork 0
rust/compiler/rustc_middle/src
bors 52e3dffa50 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`
2021-03-25 19:28:16 +00:00
..
dep_graph Access the session directly from DepContext. 2021-02-20 22:53:46 +01:00
hir Auto merge of #83424 - cjgillot:noparam, r=lcnr 2021-03-25 16:35:19 +00:00
ich Remove unwrap_none/expect_none from compiler/. 2021-03-18 14:25:54 +01:00
infer Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
middle resolve late lifetimes by item 2021-03-24 16:45:41 -04:00
mir Auto merge of #83307 - richkadel:cov-unused-functions-1.1, r=tmandry 2021-03-25 05:07:34 +00:00
query Auto merge of #82743 - jackh726:resolve-refactor, r=nikomatsakis 2021-03-25 19:28:16 +00:00
traits Rollup merge of #82707 - BoxyUwU:errooaaar, r=oli-obk 2021-03-21 02:01:34 +01:00
ty resolve late lifetimes by item 2021-03-24 16:45:41 -04:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Combination of commits 2020-12-03 09:50:10 -08:00
lib.rs Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
lint.rs Rollup merge of #81713 - estebank:unstable-assoc-item-lint, r=oli-obk 2021-02-25 14:33:53 +01:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs