fix: impl Trait desugaring in trait objects' assoc constraints#97335
Closed
randomicon00 wants to merge 33 commits intorust-lang:masterfrom
Closed
fix: impl Trait desugaring in trait objects' assoc constraints#97335randomicon00 wants to merge 33 commits intorust-lang:masterfrom
randomicon00 wants to merge 33 commits intorust-lang:masterfrom
Conversation
Contributor
|
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
Contributor
Author
|
r? @cjgillot |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
|
☔ The latest upstream changes (presumably #97598) made this pull request unmergeable. Please resolve the merge conflicts. |
cjgillot
reviewed
Jun 5, 2022
| ty.span, | ||
| ), | ||
| ImplTraitContext::Universal(item_def) => { | ||
| //| ImplTraitContext::UniversalInDyn(item_def) => { |
Contributor
There was a problem hiding this comment.
Suggested change
| //| ImplTraitContext::UniversalInDyn(item_def) => { | |
| | ImplTraitContext::UniversalInDyn(item_def) => { |
This is the correct behaviour here.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
|
☔ The latest upstream changes (presumably #98106) made this pull request unmergeable. Please resolve the merge conflicts. |
Member
|
@randomicon00 what's the status of this? |
Contributor
Author
|
@Dylan-DPC Will have an update in the next two weeks. |
Member
|
@randomicon00 any updates on this? |
Member
|
Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #96529
Right now, the tasks that are done:
impl_trait_idtorust_ast::AssocConstraint.In progress:
The next tasks are a break out of what I am trying to accomplish. A bit different from the original tasks in order to be as precise as possible and help with mentoring.
visit_assoc_constraintindef_collectorand create the local def id there by matching withUniversalInDyncontext.desugar_to_impl_traitwith the associated constraint check.rust_ast_lowering::ImplTraitContextand add the vector toLoweringContext.with_hir_id_owner.Not started yet.
ResolverAstLowering::get_impl_trait_context(LocalDefId)to access theImplTraitContextvalue.lower_fn_decl.