-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Move datatypes definitions in specific modules inside rustc::{traits, infer} #68461
Conversation
Actually, I have less of a sense of direction wrt. traits/infer, so I'll r? @nikomatsakis :) |
☔ The latest upstream changes (presumably #68831) made this pull request unmergeable. Please resolve the merge conflicts. |
7a2702d
to
735d664
Compare
r? @matthewjasper |
📌 Commit 735d664 has been approved by |
Move datatypes definitions in specific modules inside rustc::{traits, infer} Prelude to #67953 Some data types inside `rustc::traits` and `rustc::infer` are used in other parts of `librustc`. These cannot go to a separate crate `librustc_infer`. This PR moves those data types to `traits::types` and `infer::types` modules, from where everything is reexported. Note for review: some imports feature the `crate -> rustc` substitution. This is cruft from the splitting out of #67953. This can be reverted, but are bound to be put back by #67953. r? @Centril cc @Zoxc
☀️ Test successful - checks-azure |
This PR made some fields |
Prelude to #67953
Some data types inside
rustc::traits
andrustc::infer
are used in other parts oflibrustc
. These cannot go to a separate cratelibrustc_infer
.This PR moves those data types to
traits::types
andinfer::types
modules, from where everything is reexported.Note for review: some imports feature the
crate -> rustc
substitution. This is cruft from the splitting out of #67953. This can be reverted, but are bound to be put back by #67953.r? @Centril
cc @Zoxc