Closed atomgardner closed 6 months ago
Casting between immutable and mutable references can create undefined behaviour. Performing the cast through an UnsafeCell ensures noalias attributes are not being sent to LLVM.
closes: #36
Thanks, it works! Now it compiles on the latest stable toolchain.
Casting between immutable and mutable references can create undefined behaviour. Performing the cast through an UnsafeCell ensures noalias attributes are not being sent to LLVM.
closes: #36