-
Notifications
You must be signed in to change notification settings - Fork 252
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
Add hypothetical lifetime parameters and arguments to function signatures #1000
Conversation
108e7b4
to
d22ee19
Compare
2bbefc8
to
07e133e
Compare
@@ -61,9 +61,9 @@ struct HypoWrapper { | |||
|
|||
// CHECK-LABEL: final labeling for "_field_access" | |||
// CHECK-DAG: ([[@LINE+3]]: ppd): addr_of = UNIQUE, type = READ | WRITE | UNIQUE | |||
// CHECK-DAG: ([[@LINE+2]]: ra): &mut A | |||
// CHECK-DAG: ([[@LINE+2]]: ra): &'d mut A<'d> | |||
// CHECK-DAG: ([[@LINE+1]]: ppd): &mut &mut Data |
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.
In another PR I'd like to add hypothetical params to this label
b03f205
to
3297742
Compare
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.
Looks about right to me.
Regarding the conflict: in #1005 (merged yesterday), I pulled the struct rewriting logic out of HirTyVisitor::visit_item
to avoid O(N^2) behavior (each time we ran rewriting on a function, it also generated all struct rewrites) and give main.rs
more control over what gets rewritten. You'll probably have to move the new gen_generics_rws
calls out of visit_item
as well.
4a07a01
to
1c39f40
Compare
Fixes #921 and fixes #927