Skip to content

Commit 83b6369

Browse files
committed
Avoid a string allocation.
1 parent 3ccef0f commit 83b6369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ pub fn unsize_thin_ptr<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
666666
(PointerCast(bcx, src, ptr_ty),
667667
unsized_info(bcx.ccx(), a, b, None, bcx.fcx.param_substs))
668668
}
669-
_ => bcx.sess().bug(&format!("unsize_thin_ptr: called on bad types")),
669+
_ => bcx.sess().bug("unsize_thin_ptr: called on bad types"),
670670
}
671671
}
672672

0 commit comments

Comments
 (0)