about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-11 12:59:28 +0200
committerGitHub <noreply@github.com>2022-06-11 12:59:28 +0200
commit825d28057e3617ce68263d77b526070574d5bec3 (patch)
treeac3e88d91cb7f666dc0f93869ef0a0de213cd1eb /compiler/rustc_parse/src
parentb7b5045364ab8835ca7642feb5cb931fc77d7f65 (diff)
parent6cad569a95c52ff9c9f4494d62512b4f57b3f722 (diff)
downloadrust-825d28057e3617ce68263d77b526070574d5bec3.tar.gz
rust-825d28057e3617ce68263d77b526070574d5bec3.zip
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.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions