-
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
Make def_key and HIR parenting consistent. #82891
Conversation
@@ -1137,7 +1136,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { | |||
// so desugar to | |||
// | |||
// fn foo(x: dyn Iterator<Item = impl Debug>) | |||
ImplTraitContext::Universal(..) if self.is_in_dyn_type => (true, itctx), | |||
ImplTraitContext::Universal(_, parent) if self.is_in_dyn_type => { |
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.
If parenting depends on flags like is_in_dyn_type
unavailable in def collector, how is it possible to make it consistent?
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.
This specific lowering is not handled inside the def collector. The generic parameter's DefId
is created line 1199, and its HIR parent is the item's generic parameter list.
a621208
to
3e1f478
Compare
This comment has been minimized.
This comment has been minimized.
r=me after squashing commits. |
@bors r=petrochenkov |
📌 Commit b4cc003 has been approved by |
Make def_key and HIR parenting consistent. r? `@petrochenkov`
⌛ Testing commit b4cc003 with merge 7bd2b8d07c7dfc7de65738df25ef0e5b31c112be... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like some coverage tests need to be updated. |
@bors r=petrochenkov |
📌 Commit 445b4e3 has been approved by |
☀️ Test successful - checks-actions |
r? @petrochenkov