rust/compiler/rustc_resolve/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
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late if $c:expr { Some($r:expr) } else { None } =>> $c.then(|| $r) 2023-02-16 15:26:00 +00:00
build_reduced_graph.rs Auto merge of #108006 - cjgillot:def-impl, r=oli-obk 2023-02-15 16:14:10 +00:00
check_unused.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
def_collector.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
diagnostics.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
effective_visibilities.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
errors.rs migrating rustc_resolve to SessionDiagnostic. work in progress. start 2022-11-13 19:39:26 +05:30
ident.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
imports.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
late.rs Make things actually work 2023-02-16 03:39:59 +00:00
lib.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
macros.rs Separate the lifetime of the session and the arena in the resolver 2023-02-14 10:01:25 +00:00
rustdoc.rs use chars instead of strings where applicable 2023-02-15 22:54:57 +01:00