Closed lcnr closed 1 year ago
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
cc @rust-lang/types
Proposal
Incrementally work towards merging all variants which are rigid type constructors with the goal of having the following final enum:
This greatly simplifies type relations and makes it easier to use a
TypeFolder
for generalization, as getting variance right will be a lot easier by adding a methodfn RigidTy::variances(self) -> &'tcx [ty::Variance]
which we then use to relate theSubstsRef
.It should have a minimal (potentially even positive) impact on performance and a noticeable impact on readability.
Mentors or Reviewers
I am up to mentor and review this work.
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.