mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
c06b2b9117
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 |
||
---|---|---|
.. | ||
asm.rs | ||
block.rs | ||
errors.rs | ||
expr.rs | ||
format.rs | ||
index.rs | ||
item.rs | ||
lib.rs | ||
lifetime_collector.rs | ||
pat.rs | ||
path.rs |