1
Fork 0
rust/compiler/rustc_hir/src
Dylan DPC a736acc804
Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors
Compute lifetimes in scope at diagnostic time

The set of available lifetimes is currently computed during lifetime resolution on HIR.  It is only used for one diagnostic.

In this PR, HIR lifetime resolution just reports whether elided lifetimes are well-defined at the place of use.  The diagnostic code is responsible for building a list of lifetime names if elision is not allowed.

This will allow to remove lifetime resolution on HIR eventually.
2022-06-06 14:34:55 +02:00
..
arena.rs Box HIR Generics and Impl. 2022-04-30 13:51:49 +02:00
def.rs Apply track_caller to closure on expect_non_local() 2022-05-31 23:57:13 +09: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 Replace DefPathData::Misc by two appropriately-named variants. 2022-05-12 20:12:35 +02:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir.rs Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors 2022-06-06 14:34:55 +02:00
hir_id.rs Auto merge of #96082 - michaelwoerister:less_impl_stable_hash_via_hash, r=compiler-errors 2022-04-20 03:51:09 +00:00
intravisit.rs Manipulate lifetimes by LocalDefId for region resolution. 2022-06-03 12:03:20 +02:00
itemlikevisit.rs remove ItemLikeVisitor and DeepVisitor 2022-05-13 11:46:06 -04:00
lang_items.rs generalize "incoherent impls" impl for custom types 2022-05-05 10:53:00 +02:00
lib.rs Apply track_caller to closure on expect_non_local() 2022-05-31 23:57:13 +09: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