For instance, I can no longer compile my embedded Rust code because rand/rand_core now depends on zerocopy.
error[E0080]: evaluation of constant value failed
--> C:\Users\erick\.cargo\registry\src\index.crates.io-6f17d22bba15001f\zerocopy-0.8.20\src\layout.rs:120:80
|
120 | pub(crate) const CURRENT_MAX_ALIGN: NonZeroUsize = match NonZeroUsize::new(1 << 28) {
| ^^^^^^^ attempt to shift left by `28_i32`, which would overflow
Progress
RUSTFLAGS='-C target-cpu=atmega328p' cargo +nightly-2025-02-25 check --target=avr-none -Zbuild-std=coreOriginally reported by @ErickTorresBrownU in rust-random/rand#1574 (comment):
@ErickTorresBrownU, what platform are you building for here? We would like to support this use case and add this platform to our CI so we don't regress.