about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-21 11:02:47 +0000
committerbors <bors@rust-lang.org>2023-07-21 11:02:47 +0000
commitc06b2b9117d015bc0e6ce9a989435b6a47dfb339 (patch)
tree156c5fadcb4df2f3f9e87a55d7be343690fef918 /compiler/rustc_codegen_gcc
parent6b290367eca79457870fd57faa08d461d29b674e (diff)
parent0377945157da71c05ba52edca2de6f071212338c (diff)
downloadrust-c06b2b9117d015bc0e6ce9a989435b6a47dfb339.tar.gz
rust-c06b2b9117d015bc0e6ce9a989435b6a47dfb339.zip
Auto merge of #113847 - SparrowLii:path_clone, r=cjgillot
avoid clone path prefix when lowering to hir

Found this while trying to parallelize `lower_to_hir`.

When lowering to hir, `Nested` paths in `ast` will be split and the prefix segments will be cloned. This could be omited, since the only consequence is that the prefix segments in `Path`s in hir will have the same `HirId`s, and it seems harmless.

This simplifies the process of lowering to hir and avoids re-modification of `ResolverAstLowering`.

r? `@Aaron1011`
cc #99292
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions