rust/compiler/rustc_middle/src
Dylan DPC 825d28057e
Rollup merge of #97913 - dingxiangfei2009:wrap-into-local-var-id, r=nikomatsakis
Wrap `HirId`s of locals into `LocalVarId`s for THIR nodes

This is the first effort to decouple `HirId`s from THIR. `HirId` is not very relevant in building THIR and MIR.

Based on the changeset, I think there are a few other pending refactoring that we could perform after this, in case we want to eliminate use of `HirId` in THIR.
- `TypeckResults::closure_min_captures` could be remapped from the variable `HirId`s to `LocalVarId` while the THIR is getting built.
- Use of `ScopeTree::var_scope` could be eliminated as well, since we will consider deprecating `ScopeTree` in the future.
2022-06-11 12:59:28 +02:00
..
dep_graph Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
hir Compute lifetimes in scope at diagnostic time. 2022-06-04 15:28:15 +02:00
infer fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
middle Rollup merge of #97301 - semicoleon:unstable-reexport, r=petrochenkov 2022-06-07 11:41:07 +02:00
mir Auto merge of #97905 - nnethercote:revert-infallible-encoder, r=bjorn3 2022-06-11 04:00:23 +00:00
query Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors 2022-06-06 14:34:55 +02:00
thir Fix precise field capture of univariant enums 2022-05-23 19:07:06 +02:00
traits Lifetime variance fixes for rustc 2022-05-22 14:29:32 -07:00
ty Rollup merge of #97703 - lcnr:post-89862, r=estebank 2022-06-11 07:42:13 +02:00
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs try to cache region_scope_tree as a query 2022-05-25 13:52:32 +08:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
lint.rs Move lint expectation checking into a separate query (RFC 2383) 2022-05-08 14:37:14 +02:00
macros.rs Folding revamp. 2022-06-08 09:24:03 +10:00
metadata.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs thir: wrap hir id of vars into local var id 2022-06-09 17:00:38 +08:00