]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/glue.rs
Generalized base.rs#call_memcpy and everything that it uses
[rust.git] / src / librustc_codegen_llvm / glue.rs
index 842bdf3cb493ff1b01772c5d4026c8388ae440e3..9144e3f07a13355aff3337a3016306ace25282a0 100644 (file)
 use rustc::ty::layout::LayoutOf;
 use rustc::ty::{self, Ty};
 use value::Value;
+use traits::BuilderMethods;
 
-pub fn size_and_align_of_dst(bx: &Builder<'_, 'll, 'tcx>, t: Ty<'tcx>, info: Option<&'ll Value>)
-                                       -> (&'ll Value, &'ll Value) {
+pub fn size_and_align_of_dst(
+    bx: &Builder<'_, 'll, 'tcx>,
+    t: Ty<'tcx>,
+    info: Option<&'ll Value>
+) -> (&'ll Value, &'ll Value) {
     debug!("calculate size of DST: {}; with lost info: {:?}",
            t, info);
     if bx.cx.type_is_sized(t) {