]> git.lizzy.rs Git - rust.git/commitdiff
Fix an incorrect type annotation (shadowed lifetime parameter) that was masked by
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 11 Dec 2014 09:16:11 +0000 (04:16 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 11 Dec 2014 09:16:11 +0000 (04:16 -0500)
these bugs.

src/librustc_trans/trans/datum.rs

index 23a261842b2d57443889fbf4a787674c8fb277b7..edcc8edaf7f92da65d59af8a933bbc154edad27f 100644 (file)
@@ -535,10 +535,10 @@ fn shallow_copy_raw<'blk>(&self,
     /// Copies the value into a new location. This function always preserves the existing datum as
     /// a valid value. Therefore, it does not consume `self` and, also, cannot be applied to affine
     /// values (since they must never be duplicated).
-    pub fn shallow_copy<'blk, 'tcx>(&self,
-                                    bcx: Block<'blk, 'tcx>,
-                                    dst: ValueRef)
-                                    -> Block<'blk, 'tcx> {
+    pub fn shallow_copy<'blk>(&self,
+                              bcx: Block<'blk, 'tcx>,
+                              dst: ValueRef)
+                              -> Block<'blk, 'tcx> {
         /*!
          * Copies the value into a new location. This function always
          * preserves the existing datum as a valid value. Therefore,