-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Remove some glob imports from the type system #142637
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
base: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @WaffleLapkin. Use |
Some changes occurred in need_type_info.rs cc @lcnr |
☔ The latest upstream changes (presumably #137944) made this pull request unmergeable. Please resolve the merge conflicts. |
RegionInferReason::Param(def) => { | ||
RegionVariableOrigin::RegionParameterDefinition(span, def.name) | ||
} | ||
_ => RegionVariableOrigin::MiscVariable(span), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that you're already modifying all uses of this variant, rename it to just Misc
in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r? @lcnr
r=me after nit + rebase
032beb8
to
3e35f31
Compare
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor changes to the core type system |
This comment has been minimized.
This comment has been minimized.
3e35f31
to
9b07e2d
Compare
Namely, remove the glob imports for
BoundRegionConversionTime
,RegionVariableOrigin
,SubregionOrigin
,TyOrConstInferVar
,RegionResolutionError
,SelectionError
,ProjectionCandidate
,ProjectionCandidateSet
, and some more specific scoped globs (likeInserted
in the impl overlap graph construction.These glob imports are IMO very low value, since they're not used nearly as often as other globs (like
TyKind
).