4 ms·
I think people in this thread say borrow checker but mean RAII where the compiler injects Drop for you automatically. But that’s not so much the borrow checker
by vlovich123 4y ago
I think people in this thread say borrow checker but mean RAII where the compiler injects Drop for you automatically. But that’s not so much the borrow checker and more lexical lifetimes. It‘s possible the borrow checker is involved with non lexical lifetimes? Not sure
- steveklabnik 4y agoThe borrow checker is what checks lifetimes, that's correct. "Non-lexical lifetimes" is an example of describing certain semantics of what the borrow checker checks, yes.