rust/compiler/rustc_hir_analysis/src
Matthias Krüger 089e8c03bc
Rollup merge of #107489 - compiler-errors:non_lifetime_binders, r=cjgillot
Implement partial support for non-lifetime binders

This implements support for non-lifetime binders. It's pretty useless currently, but I wanted to put this up so the implementation can be discussed.

Specifically, this piggybacks off of the late-bound lifetime collection code in `rustc_hir_typeck::collect::lifetimes`. This seems like a necessary step given the fact we don't resolve late-bound regions until this point, and binders are sometimes merged.

Q: I'm not sure if I should go along this route, or try to modify the earlier nameres code to compute the right bound var indices for type and const binders eagerly... If so, I'll need to rename all these queries to something more appropriate (I've done this for `resolve_lifetime::Region` -> `resolve_lifetime::ResolvedArg`)

cc rust-lang/types-team#81

r? `@ghost`
2023-02-17 00:19:34 +01:00
..
astconv Rollup merge of #107489 - compiler-errors:non_lifetime_binders, r=cjgillot 2023-02-17 00:19:34 +01:00
check Auto merge of #108020 - nnethercote:opt-mk_region, r=compiler-errors 2023-02-16 16:11:54 +00:00
coherence Move query out of path. 2023-02-14 20:27:38 +00:00
collect Rollup merge of #107489 - compiler-errors:non_lifetime_binders, r=cjgillot 2023-02-17 00:19:34 +01:00
impl_wf_check add AliasEq to PredicateKind 2023-02-10 13:44:46 +00:00
outlives Auto merge of #107507 - BoxyUwU:deferred_projection_equality, r=lcnr 2023-02-11 05:46:24 +00:00
structured_errors rustc_hir_analysis: remove ref patterns 2023-01-17 07:48:19 +00:00
variance Make visiting traits generic over the Interner 2023-02-13 10:24:49 +00:00
autoderef.rs fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00
bounds.rs Rework hir Bounds collection 2022-12-28 23:40:09 +00:00
check_unused.rs Use expect_{use,fn} in a couple of places 2023-01-30 05:50:37 +00:00
collect.rs Rollup merge of #107489 - compiler-errors:non_lifetime_binders, r=cjgillot 2023-02-17 00:19:34 +01:00
constrained_generic_params.rs Make visiting traits generic over the Interner 2023-02-13 10:24:49 +00:00
errors.rs Move autoderef to rustc_hir_analysis 2023-01-11 20:12:57 +00:00
hir_wf_check.rs Rename folder traits' tcx method to interner 2023-02-13 10:24:51 +00:00
impl_wf_check.rs Add of_trait to DefKind::Impl. 2023-02-14 19:55:44 +00:00
lib.rs Replace some thens with some then_somes 2023-02-16 15:26:03 +00:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00