]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_const_eval/src/const_eval/eval_queries.rs
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
[rust.git] / compiler / rustc_const_eval / src / const_eval / eval_queries.rs
index 6112c4ffbfa6df84121d03d127ea175f45089af4..38fecf7232ebc704436755d752b000401df2afbb 100644 (file)
@@ -1,4 +1,4 @@
-use super::{const_to_valtree, CompileTimeEvalContext, CompileTimeInterpreter, ConstEvalErr};
+use super::{CompileTimeEvalContext, CompileTimeInterpreter, ConstEvalErr};
 use crate::interpret::eval_nullary_intrinsic;
 use crate::interpret::{
     intern_const_alloc_recursive, Allocation, ConstAlloc, ConstValue, CtfeValidationMode, GlobalId,
@@ -219,13 +219,6 @@ fn turn_into_const_value<'tcx>(
     let const_val = op_to_const(&ecx, &mplace.into());
     debug!(?const_val);
 
-    if cfg!(debug_assertions) {
-        if let Some(valtree) = const_to_valtree(tcx, key.param_env, constant) {
-            let const_val = tcx.valtree_to_const_val((constant.ty, valtree));
-            debug!(?const_val);
-        }
-    }
-
     const_val
 }