Skip to content

Commit

Permalink
Work around rust < 1.78 crash (#231)
Browse files Browse the repository at this point in the history
Somehow the DWARF info generated by the compiler for the
`hash`-replacement assignment is confusing to LLVM, which crashes.

By using a different form for the same operation, the compiler is happy.
  • Loading branch information
glandium authored Dec 30, 2024
1 parent 543b050 commit d160ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mls-rs/src/tree_kem/parent_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl TreeKemPublic {
)
.await?;

(parent.parent_hash, hash) = (hash, calculated);
parent.parent_hash = core::mem::replace(&mut hash, calculated);
}

Ok(hash)
Expand Down

0 comments on commit d160ba6

Please sign in to comment.