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
Rust v1.80 (rustfmt 1.7.0-stable (0514789 2024-07-21)) and Nightly (rustfmt 1.7.1-nightly (64ebd39 2024-08-03)) both remove values from static items:
extern"C"{staticTEST:i32 = 42;}
When formatted it gets transformed into:
extern"C"{staticTEST:i32;}
Rustfmt showed no error.
This code doesn't actually build in the first place, I'm using it with a proc-macro to implement externalized strings in wasm-bindgen (rustwasm/wasm-bindgen#4031) which allows this to work.
Rust v1.80 (
rustfmt 1.7.0-stable (0514789 2024-07-21)
) and Nightly (rustfmt 1.7.1-nightly (64ebd39 2024-08-03)
) both remove values from static items:When formatted it gets transformed into:
Rustfmt showed no error.
This code doesn't actually build in the first place, I'm using it with a proc-macro to implement externalized strings in
wasm-bindgen
(rustwasm/wasm-bindgen#4031) which allows this to work.This is similar to #4159.
The text was updated successfully, but these errors were encountered: