1
Fork 0
rust/compiler/rustc_hir/src
bors 1ec2c136b3 Auto merge of #95779 - cjgillot:ast-lifetimes-undeclared, r=petrochenkov
Report undeclared lifetimes during late resolution.

First step in https://github.com/rust-lang/rust/pull/91557

We reuse the rib design of the current resolution framework. Specific `LifetimeRib` and `LifetimeRibKind` types are introduced. The most important variant is `LifetimeRibKind::Generics`, which happens each time we encounter something which may introduce generic lifetime parameters. It can be an item or a `for<...>` binder. The `LifetimeBinderKind` specifies how this rib behaves with respect to in-band lifetimes.

r? `@petrochenkov`
2022-04-17 12:56:19 +00:00
..
arena.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
def.rs Avoid accessing HIR from MIR queries. 2022-04-10 13:08:36 +02:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs Use def_key in tcx.item_name when possible. 2022-04-09 10:54:43 +02:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir.rs Lint elided lifetimes in path on the AST. 2022-04-17 11:03:34 +02:00
hir_id.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
intravisit.rs Lint elided lifetimes in path on the AST. 2022-04-17 11:03:34 +02:00
itemlikevisit.rs fix mention of moved function in rustc_hir docs 2022-02-11 15:38:31 +00:00
lang_items.rs library: Move CStr to libcore, and CString to liballoc 2022-04-14 21:53:11 +03:00
lib.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
pat_util.rs Simplify for loop desugar 2021-11-21 08:15:21 -06:00
stable_hash_impls.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
target.rs add comment about restriction of Target::from_def_kind 2022-04-09 16:03:16 -04:00
tests.rs Revert "Revert "Fix test"" 2021-07-06 11:28:06 +02:00
weak_lang_items.rs Clean up lang_items::extract 2022-01-09 13:41:04 -08:00