mirror of https://github.com/rust-lang/rust
0151cbe6e8
Document futility of printing temporary pointers In the user forum I've seen a few people trying to understand how borrowing and moves are implemented by peppering their code with printing of `{:p}` of references to variables and expressions. This is a bad idea. It gives misleading and confusing results, because of autoderef magic, printing pointers of temporaries on the stack, and/or causes LLVM to optimize code differently when values had their address exposed. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |