• Miaou@jlai.lu
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 hours ago

    If they rely on UB at all, then this won’t work. At best you get a compile time error, but more likely your rust program will do weird stuff with memory. And given how much people rely on compilers “acting nice” when it comes to aliasing (something rust does not fuck around with), I wouldn’t hold my breathe