error: casting &T to &mut T is undefined behavior #1485
Sorry to re-open this. But I still get this with rust 1.87. Thanks.
Upgrade to v0.20.2 or later, or downgrade rustc.
I'm still getting this issue as well with v0.21.2. Is there a version of rustc that I should try downgrading to?
Can you paste the compiler output for v0.21.2? I just rechecked the source on docs.rs and pretty sure >=v0.20.2 should have it fixed.
You'd have to downgrade quite far back, which could lead to other issues.
Just built this fine on 1.89-nightly. Newer toolchains even seem to ignore the error if tokenizers is used as a dependency. 1.89-nightly builds a project using tokenizers 0.13.3 fine, but will not build this repo by itself on that same version.