Skip to content
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

Update charon #407

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Update charon #407

merged 1 commit into from
Jan 2, 2025

Conversation

Nadrieril
Copy link
Member

Companion PR to AeneasVerif/charon#512.

let f = trans.f in
let explicit_info =
explicit_info_drop_prefix decl.generics f.signature.explicit_info
in
(* TODO: this is likely incorrect, we should instantiate the binders properly *)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonmarcho This will likely cause issues after AeneasVerif/charon#127: the full method generics will no longer be a simple concatenation of the impl generics + method generics (because I'll be adding the extra associated type parameters at the end of the list of parameters instead of in the middle). We should find a way to instantiate the binders properly here.

@@ -728,6 +724,7 @@ let eval_transparent_function_call_symbolic_inst (span : Meta.span)
we also need to update the generics.
*)
let func = FunId fid in
(* TODO: the `trait_method_generics` look fishy *)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonmarcho What are the trait_method_generics supposed to correspond to? From the name I'd expect these would be the generics just for the method, but here you pass generics valid for the function item (which include impl generics).

@Nadrieril Nadrieril enabled auto-merge January 2, 2025 13:14
@Nadrieril Nadrieril merged commit f87d080 into AeneasVerif:main Jan 2, 2025
6 checks passed
@Nadrieril Nadrieril deleted the update-charon branch January 2, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant