]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 23 Mar 2022 21:13:24 +0000 (22:13 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 21:13:24 +0000 (22:13 +0100)
commit23ef234bf765951e49805fbdad95f538ac33f2d8
treeba0debae5eaf0939a16023482366193796259f92
parent0c79c862f0e7e6ab56ea6d78b15410de209e0825
parenta76e5b1882f78c250a3f7338d12c559029949d73
Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk

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. :tada:

r? `@oli-obk`