]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/meth.rs
bring Ty into scope
[rust.git] / src / librustc_trans / meth.rs
index 6eedd53974e70482a76cca732d4c90ea6c2a6719..9abfbb3279ce0315f9e404c2fa7701f0a6d99032 100644 (file)
@@ -18,7 +18,7 @@
 use monomorphize;
 use type_::Type;
 use value::Value;
-use rustc::ty;
+use rustc::ty::{self, Ty};
 
 #[derive(Copy, Clone, Debug)]
 pub struct VirtualIndex(usize);
@@ -63,7 +63,7 @@ pub fn get_usize(self, bcx: &Builder<'a, 'tcx>, llvtable: ValueRef) -> ValueRef
 /// making an object `Foo<Trait>` from a value of type `Foo<T>`, then
 /// `trait_ref` would map `T:Trait`.
 pub fn get_vtable<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
-                            ty: ty::Ty<'tcx>,
+                            ty: Ty<'tcx>,
                             trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>)
                             -> ValueRef
 {