Skip to content

Commit

Permalink
Avoid a string allocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Nov 19, 2015
1 parent 3ccef0f commit 83b6369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/trans/base.rs
Expand Up @@ -666,7 +666,7 @@ pub fn unsize_thin_ptr<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
(PointerCast(bcx, src, ptr_ty),
unsized_info(bcx.ccx(), a, b, None, bcx.fcx.param_substs))
}
_ => bcx.sess().bug(&format!("unsize_thin_ptr: called on bad types")),
_ => bcx.sess().bug("unsize_thin_ptr: called on bad types"),
}
}

Expand Down

0 comments on commit 83b6369

Please sign in to comment.