[WIP] Don't re-export rustc_ast items in rustc_hir#77494
[WIP] Don't re-export rustc_ast items in rustc_hir#77494jyn514 wants to merge 1 commit intorust-lang:masterfrom
rustc_ast items in rustc_hir#77494Conversation
- BorrowKind - ImplPolarity - IsAuto - CaptureBy - Movability - Mutability While working on this I realized that there are many different enums named `BorrowKind`, so it should really keep the prefix and just change it from `hir::` to `ast::`.
|
@bors rollup=never This will cause a ton of conflicts. |
rustc_span items in rustc_hirrustc_ast items in rustc_hir
|
Please don't do this. Now every time I work with the HIR, I have to remember that |
|
The goal is to reduce interdependence in the rustc_* crates by making it clear where things come from; hopefully this will allow us to remove some crates from Maybe |
|
I don't care if my 20 minute compilation gets a few seconds faster if it becomes more difficult to write code.
I don't buy the first part. Luckily we have benchmarks for |
That is unlikely to happen with |
|
Ok, this change is not super useful then. |
While working on this I realized that there are many different enums
named
BorrowKind, so it should really keep the prefix and just changeit from
hir::toast::.Partial fix for rust-lang/compiler-team#368.
r? @ghost - I still need to fix all the warnings and move
BorrowKindback toast::BorrowKind