« first day (3551 days earlier)      last day (158 days later) » 

17:42
Just posted this: stackoverflow.com/questions/78708354/… This has been an issue all year but I haven't bothered looking into it since it isn't on my normal dev environment. A bit embarrassed about the solution, but I only found it while writing it up so I thought I'd still post it on the off chance it helps someone else.
Also, not fishing for votes. I just thought others might get a chuckle out of it at my expense.
18:05
I found the best option of rust-analizer "rust-analyzer.cargo.targetDir": true,
would be better if it's would be relative to my cargo target but can't have everything
 
2 hours later…
20:03
A weird fix: https://github.com/Canop/broot/pull/897/commits/ac0ffb02dbb3504cda1cf3eec54588735a0977b7
I prevent the ioctl call from "not working" in release mode by adding a debug call using its returned value.
@DenysSéguret make w mutable and pass &mut w
Oh...
Well seen
hah, comments like that instantly trigger my undefined behavior detector
I guess you're more used than me to calling C from rust
BTW it does work, as expected
Thanks a lot.
Could the ioctl definition be fixed to enforce passing a mut ref ?
20:23
@DenysSéguret It could be better if it was *mut _ yeah, but unfortunately ioctl uses C variadic arguments so you're out of luck on having a well-typed API for that call. :/
 
1 hour later…
21:52
@DenysSéguret are you crazy using pre-release with cargo ?
@kmdreko clearly specially the "strange if I output this the bug is gone" is instant UB detected :p

« first day (3551 days earlier)      last day (158 days later) »