rust/compiler/rustc_middle/src/middle
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
..
codegen_fn_attrs.rs only compute codegen_fn_attrs where needed 2022-05-09 18:40:18 +02:00
dependency_format.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
exported_symbols.rs Synthesis object file for #[used] and exported symbols 2022-04-18 20:50:56 +01:00
lang_items.rs don't take TyCtxt by reference 2020-09-18 20:49:25 +02:00
limits.rs Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
mod.rs Remove SymbolStr. 2021-12-15 13:30:26 +11:00
privacy.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
region.rs Replace &Vec<_>s with &[_]s 2022-06-03 20:42:42 +04:00
resolve_lifetime.rs Completely remove LifetimeScopeForPath. 2022-06-04 15:33:27 +02:00
stability.rs Cache more queries on disk. 2022-05-13 08:06:48 +02:00