about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-16 09:36:22 +0200
committerRalf Jung <post@ralfj.de>2023-09-19 11:11:02 +0200
commit5a0a1ff0cdb37ffb5fe970a4bcbde9df4ef1d602 (patch)
treea7364dede24f47c6698ec3fce71cd09d1f51f38b /compiler/rustc_codegen_cranelift/src
parentbe8f5f6e7fba05d9761b1cb8dc2bcd0901942312 (diff)
downloadrust-5a0a1ff0cdb37ffb5fe970a4bcbde9df4ef1d602.tar.gz
rust-5a0a1ff0cdb37ffb5fe970a4bcbde9df4ef1d602.zip
move ConstValue into mir
this way we have mir::ConstValue and ty::ValTree as reasonably parallel
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/constant.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs
index 0d9bd3cf240..02468684ba0 100644
--- a/compiler/rustc_codegen_cranelift/src/constant.rs
+++ b/compiler/rustc_codegen_cranelift/src/constant.rs
@@ -2,7 +2,8 @@
 
 use rustc_data_structures::fx::{FxHashMap, FxHashSet};
 use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
-use rustc_middle::mir::interpret::{read_target_uint, AllocId, ConstValue, GlobalAlloc, Scalar};
+use rustc_middle::mir::interpret::{read_target_uint, AllocId, GlobalAlloc, Scalar};
+use rustc_middle::mir::ConstValue;
 
 use cranelift_module::*;