SorteKanin@feddit.dk to Rust@programming.dev · 24 days agoIt's not me, it's the compiler!parsa.wtfexternal-linkmessage-square6linkfedilinkarrow-up149arrow-down10
arrow-up149arrow-down1external-linkIt's not me, it's the compiler!parsa.wtfSorteKanin@feddit.dk to Rust@programming.dev · 24 days agomessage-square6linkfedilink
minus-squareblackjacksepp@feddit.orglinkfedilinkEnglisharrow-up10·24 days agoNope, the bug was present in multiple stable versions. From the Github issue comments: I can reproduce the bug on 1.94, 1.95, 1.96 and nightly. (1.93 seems to be the latest version without the bug present)
minus-squarenialv7@lemmy.worldlinkfedilinkarrow-up3·24 days agothat’s a pretty big fuckup, no? also does MIR not check for variable not being initialized?
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up2·24 days agoWow. I wonder why nobody saw this before then? Op’s code doesn’t look unusual.
Nope, the bug was present in multiple stable versions. From the Github issue comments:
that’s a pretty big fuckup, no? also does MIR not check for variable not being initialized?
Wow. I wonder why nobody saw this before then? Op’s code doesn’t look unusual.