3 ms·
In fact, the `drop` function is totally trivial. It's just a function that takes ownership of a thing, then does nothing with it whatsoever. In other words, the
by kibwen 12y ago
In fact, the `drop` function is totally trivial. It's just a function that takes ownership of a thing, then does nothing with it whatsoever. In other words, the function body is entirely empty! :)
https://github.com/rust-lang/rust/blob/master/src/libcore/mem.rs#L348 https://github.com/rust-lang/rust/blob/master/src/libcore/me...
- portmanteaufu 12y agoHa! I've been using this function for ages and always assumed it was a compiler built-in. I love that it's just that simple.
- Double_Cast 12y agoThat's just too perfect. Of all things, your comment has raised my opinion of Rust the most.