Skip to content

Commit 061a87e

Browse files
committed
Fix an incorrect type annotation (shadowed lifetime parameter) that was masked by
these bugs.
1 parent 31e46ac commit 061a87e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_trans/trans/datum.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,10 @@ impl<'tcx, K: KindOps + fmt::Show> Datum<'tcx, K> {
535535
/// Copies the value into a new location. This function always preserves the existing datum as
536536
/// a valid value. Therefore, it does not consume `self` and, also, cannot be applied to affine
537537
/// values (since they must never be duplicated).
538-
pub fn shallow_copy<'blk, 'tcx>(&self,
539-
bcx: Block<'blk, 'tcx>,
540-
dst: ValueRef)
541-
-> Block<'blk, 'tcx> {
538+
pub fn shallow_copy<'blk>(&self,
539+
bcx: Block<'blk, 'tcx>,
540+
dst: ValueRef)
541+
-> Block<'blk, 'tcx> {
542542
/*!
543543
* Copies the value into a new location. This function always
544544
* preserves the existing datum as a valid value. Therefore,

0 commit comments

Comments
 (0)