danderson,
@danderson@hachyderm.io avatar

lol, I wrote a bit of code and my editor was happy with it, and I was very confused because it looked like there was very obvious reuse of a moved value that shouldn't have worked, but wasn't getting any diagnostics...

Turns out the rust language server was just busted, and I now have about three pages of angry borrow checker to sift through. At least I was right about the code being wrong, I guess.

lori,

@danderson Is Rust more anal retentive than Java?

danderson,
@danderson@hachyderm.io avatar

@lori I would argue yes, because it's mixing ownership and lifetimes in with "plain" type things, so you can paint yourself into much more interesting corners :)

raggi,
@raggi@rag.pub avatar

@danderson something you'll slowly get used to is that the borrow checker is another stage in the build process, so it becomes normal to expect another stage after syntax and type correctness - early on it's unusual though, which can be jarring

danderson,
@danderson@hachyderm.io avatar

@raggi Hmm, earlier today I was sure that rls was giving me borrow checker diagnostics as well... But maybe not.

raggi,
@raggi@rag.pub avatar

@danderson it does yeah, and it can get broken sometimes - sucks when it happens. I can be pretty trigger happy with restarting rls

danderson,
@danderson@hachyderm.io avatar

@raggi Well now rls is just crashing immediately when I try and start it, so once I'm back to code that compiles, that'll be a little side adventure...

raggi,
@raggi@rag.pub avatar

@danderson oh no, that sounds awful :( I've had it get stuck on stuff like git branch switches, much like the go one and so on, but i've not seen a crashloop for a few years now

danderson,
@danderson@hachyderm.io avatar

@raggi I expect it's some combination of my hipster environment that's going wrong, as usual. Emacs on nixos with rls being pulled into scope by direnv magic that's monkeypatched back into emacs... I forgive it for not liking where it finds itself 😂

danderson,
@danderson@hachyderm.io avatar

"I must be approaching the borrow checker cliff soon", he said, while walking on thin air several feet past the cliff edge, Wile E. Coyote style.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • JUstTest
  • lostlight
  • All magazines