about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2020-12-12 15:32:30 +0100
committerLeSeulArtichaut <leseulartichaut@gmail.com>2021-01-18 21:09:30 +0100
commit50e1ae15e9f3035b06bae00e1b1dc7a358546d3e (patch)
treee5cee77dc418dba544f105f5732636aa63f558f4 /compiler/rustc_codegen_llvm/src/builder.rs
parent933bb18956f8e8a57e130ce0c9d342becc0ad0ae (diff)
downloadrust-50e1ae15e9f3035b06bae00e1b1dc7a358546d3e.tar.gz
rust-50e1ae15e9f3035b06bae00e1b1dc7a358546d3e.zip
Use ty::{IntTy,UintTy,FloatTy} in rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs
index f122fa14e70..d2f4d3edc22 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -304,9 +304,8 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         lhs: Self::Value,
         rhs: Self::Value,
     ) -> (Self::Value, Self::Value) {
-        use rustc_ast::IntTy::*;
-        use rustc_ast::UintTy::*;
         use rustc_middle::ty::{Int, Uint};
+        use rustc_middle::ty::{IntTy::*, UintTy::*};
 
         let new_kind = match ty.kind() {
             Int(t @ Isize) => Int(t.normalize(self.tcx.sess.target.pointer_width)),