rust/compiler/rustc_ast_lowering/src
bors c06b2b9117 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
2023-07-21 11:02:47 +00:00
..
asm.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
block.rs rustc_ast_lowering: remove ref patterns 2022-11-22 18:49:29 +00:00
errors.rs Make async removal span more resilient to macro expansions 2023-04-27 18:25:07 +00:00
expr.rs Add effects during lowering for ~const bounds 2023-07-04 11:47:45 +00:00
format.rs Limit lifetime of format_args!() with inlined args. 2023-05-09 16:08:40 +02:00
index.rs Separate AnonConst from ConstBlock in HIR. 2023-06-02 21:25:18 +00:00
item.rs add comment for lower_use_tree 2023-07-19 16:48:33 +08:00
lib.rs Auto merge of #113847 - SparrowLii:path_clone, r=cjgillot 2023-07-21 11:02:47 +00:00
lifetime_collector.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
pat.rs Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
path.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00