-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Don't re-export rustc_ast
items in rustc_hir
#77494
Conversation
- 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_hir
rustc_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
BorrowKind
back toast::BorrowKind