Move everything over from middle::const_val to mir::interpret

This commit is contained in:
Oliver Schneider 2018-06-25 18:46:02 +02:00
parent 6005b0ad2f
commit 05994779ea
34 changed files with 158 additions and 166 deletions

View file

@ -1381,7 +1381,7 @@ mod temp_stable_hash_impls {
fn fetch_wasm_section(tcx: TyCtxt, id: DefId) -> (String, Vec<u8>) {
use rustc::mir::interpret::GlobalId;
use rustc::middle::const_val::ConstVal;
use rustc::mir::interpret::ConstVal;
info!("loading wasm section {:?}", id);

View file

@ -9,7 +9,7 @@
// except according to those terms.
use llvm::{self, ValueRef};
use rustc::middle::const_val::{ConstVal, ConstEvalErr};
use rustc::mir::interpret::{ConstVal, ConstEvalErr};
use rustc_mir::interpret::{read_target_uint, const_val_field};
use rustc::hir::def_id::DefId;
use rustc::mir;

View file

@ -9,7 +9,7 @@
// except according to those terms.
use llvm::{ValueRef, LLVMConstInBoundsGEP};
use rustc::middle::const_val::ConstEvalErr;
use rustc::mir::interpret::ConstEvalErr;
use rustc::mir;
use rustc::mir::interpret::ConstValue;
use rustc::ty;