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
With the inline const expression feature introduced in 1.79, I noticed that omitting a semi-colon after the const {} block interacts poorly with multiversion v0.7.4. On nightly, Rust will happily compile the version without the semi-colon--albeit this could be considered badly written Rust--so it caught me off guard when my const { assert!() } + mulltiversion made the function vanish.
Minimal error
use multiversion::multiversion;// Unexpected token#[multiversion(targets = "simd")]pubfnx() -> u32{const{2;}0}// Cannot find function `x` in this scopepubfny() -> u32{x() + 1}// Compilespubfnx_again() -> u32{const{2;}0}// Compiles#[multiversion(targets = "simd")]pubfnx_one_more_time() -> u32{const{2;};0}// Compiles#[multiversion(targets = "simd")]pubfnabc() -> u32{0}// Compilespubfndef() -> u32{abc() + 1}
With the inline const expression feature introduced in 1.79, I noticed that omitting a semi-colon after the
const {}
block interacts poorly with multiversion v0.7.4. On nightly, Rust will happily compile the version without the semi-colon--albeit this could be considered badly written Rust--so it caught me off guard when myconst { assert!() }
+ mulltiversion made the function vanish.Minimal error
Systems tested
The text was updated successfully, but these errors were encountered: