You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm posting it here since it generates the code, but if you think it should be moved to the rustc repo, let me know.
If you have a big enough enum, the wasm-bdingen generated code causes rustc to stack overflow. This didn't happen in rustc 1.44.1, but does happen in 1.45.0.
Code:
use wasm_bindgen::prelude::*;#[wasm_bindgen]pubenumCode{A0,A1,A2,A3,A4,A5,
...
A3997,A3998,A3999,A4000,}
Describe the Bug
I'm posting it here since it generates the code, but if you think it should be moved to the rustc repo, let me know.
If you have a big enough enum, the wasm-bdingen generated code causes rustc to stack overflow. This didn't happen in rustc 1.44.1, but does happen in 1.45.0.
Code:
Steps to Reproduce
Expected Behavior
It compiles
Actual Behavior
Stack overflow in rustc
Additional Context
Add any other context about the problem here.
It generates code like this:
Crashes on Win10 and WSL. Didn't test any other OS.
The generated code could be turned into a simple transmute (IIRC, that's what the compiler will generate if it doesn't stack overflow)
The text was updated successfully, but these errors were encountered: