Skip to content

Commit

Permalink
fix(hax-lib/macros): handle correctly &mut Self arguments in ensures
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Jan 22, 2025
1 parent 3aad8b7 commit 6ef83cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hax-lib/macros/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ pub fn make_fn_decoration(
mut generics: Option<Generics>,
self_type: Option<Type>,
) -> (TokenStream, AttrPayload) {
let uid = ItemUid::fresh();
let mut_ref_inputs = unmut_references_in_inputs(&mut signature);
let self_ident: Ident = syn::parse_quote! {self_};
let error = {
let mut rewriter = RewriteSelf::new(self_ident, self_type);
Expand All @@ -230,6 +228,8 @@ pub fn make_fn_decoration(
}
rewriter.get_error()
};
let uid = ItemUid::fresh();
let mut_ref_inputs = unmut_references_in_inputs(&mut signature);
let decoration = {
let decoration_sig = {
let mut sig = signature.clone();
Expand Down

0 comments on commit 6ef83cf

Please sign in to comment.