mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
23ef234bf7
interpret/memory: simplify check_and_deref_ptr
*Finally* I saw a way to make this code simpler. The odd preprocessing in `let ptr_or_addr =` has bothered me since forever, but it actually became unnecessary in the last provenance refactoring. :)
This also leads to slightly more explicit error messages as a nice side-effect. 🎉
r? `@oli-obk`
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |