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-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
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