rust/compiler/rustc_const_eval/src
Matthias Krüger cf3bb09888
Rollup merge of #94343 - RalfJung:fn-ptr, r=oli-obk
Miri fn ptr check: don't use conservative null check

In https://github.com/rust-lang/rust/pull/94270 I used the wrong NULL check for function pointers: `memory.ptr_may_be_null` is conservative even on machines that support ptr-to-int casts, leading to false errors in Miri.

This fixes that problem, and also replaces that foot-fun of a method with `scalar_may_be_null` which is never unnecessarily conservative.

r? `@oli-obk`
2022-02-25 14:14:39 +01:00
..
const_eval Rollup merge of #94343 - RalfJung:fn-ptr, r=oli-obk 2022-02-25 14:14:39 +01:00
interpret Rollup merge of #94343 - RalfJung:fn-ptr, r=oli-obk 2022-02-25 14:14:39 +01:00
transform rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
util rustc_const_eval: adopt let else in more places 2022-02-19 01:55:47 +01:00
lib.rs Support pretty printing of invalid constants 2022-02-16 00:38:59 +01:00