about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/machine.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-30 17:08:38 -0400
committerRalf Jung <post@ralfj.de>2022-07-30 17:08:38 -0400
commit29ce4d51a8b173aba8e0f404c78b6f8990ec065b (patch)
tree3a94fafcfbd51509a8f64b1e8308bcf8f6c52cae /compiler/rustc_const_eval/src/interpret/machine.rs
parent12c5b1ef3882fa824a7dc6054f9f15732b44c863 (diff)
downloadrust-29ce4d51a8b173aba8e0f404c78b6f8990ec065b.tar.gz
rust-29ce4d51a8b173aba8e0f404c78b6f8990ec065b.zip
allow numbers with provenance within CTFE execution
This effectively reverts https://github.com/rust-lang/rust/pull/97684 for CTFE
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/machine.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/machine.rs b/compiler/rustc_const_eval/src/interpret/machine.rs
index c18ac84171d..080cabe0336 100644
--- a/compiler/rustc_const_eval/src/interpret/machine.rs
+++ b/compiler/rustc_const_eval/src/interpret/machine.rs
@@ -465,7 +465,7 @@ pub macro compile_time_machine(<$mir: lifetime, $tcx: lifetime>) {
 
     #[inline(always)]
     fn enforce_number_no_provenance(_ecx: &InterpCx<$mir, $tcx, Self>) -> bool {
-        true
+        false
     }
 
     #[inline(always)]