0x0@lemmy.zip to Programmer Humor@programming.dev · 8 days agorace conditionslemmy.zipexternal-linkmessage-square76fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkrace conditionslemmy.zip0x0@lemmy.zip to Programmer Humor@programming.dev · 8 days agomessage-square76fedilink
minus-squareILikeBoobies@lemmy.calinkfedilinkarrow-up0·8 days agoWhy is the crab not Rust. This is outrageous, it’s unfair
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up0·edit-28 days agoRust would be some borrow checker compile error like borrowed data escapes outside of associated function argument requires that `'1` must outlive `'static`
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·8 days agoyou can still segfault in rust iirc
minus-squarejenesaisquoi@feddit.orglinkfedilinkEnglisharrow-up0·7 days agoNot in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·7 days agoI guess they fixed the weirdness involving calling main later in the program
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·7 days agohttps://github.com/Speykious/cve-rs
minus-squarepewgar_seemsimandroid@lemmy.blahaj.zonelinkfedilinkarrow-up0·8 days agorust errors are funny if you don’t know rust
minus-squaremilicent_bystandr@lemm.eelinkfedilinkarrow-up0·8 days ago News at Ten: Borrowed Data Escapes Outside of Associated Function
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up0·8 days agoThose also happen to be errors you’d typically run into, if you don’t yet really know Rust…
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up0·edit-27 days agoI do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function. There are also some reported issues that may be false positives, e. g. https://github.com/rust-lang/rust/issues/107115. In some cases, the error message can be misleading: https://github.com/rust-lang/rust/issues/112650
Why is the crab not Rust. This is outrageous, it’s unfair
Rust would be some borrow checker compile error like
borrowed data escapes outside of associated function
argument requires that `'1` must outlive `'static`
you can still segfault in rust iirc
Not in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
I guess they fixed the weirdness involving calling main later in the program
https://github.com/Speykious/cve-rs
rust errors are funny if you don’t know rust
Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…
I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
There are also some reported issues that may be false positives, e. g. https://github.com/rust-lang/rust/issues/107115. In some cases, the error message can be misleading: https://github.com/rust-lang/rust/issues/112650