Rust compiler version <= 1.74.0 reserves 4096 + 16 = 4112 bytes of stack (yes, with optimization level 3, opt-level=3), check this out https://godbolt.org/z/PsjETWceq. If I switch to Rust 1.75.0, it gets fixed, https://godbolt.org/z/63EE6j3h3, it reserves 32 bytes
Share this post
Rust: enum, boxed error and stack size…
Share this post
Rust compiler version <= 1.74.0 reserves 4096 + 16 = 4112 bytes of stack (yes, with optimization level 3, opt-level=3), check this out https://godbolt.org/z/PsjETWceq. If I switch to Rust 1.75.0, it gets fixed, https://godbolt.org/z/63EE6j3h3, it reserves 32 bytes