Skip to content

Commit f1bd3e7

Browse files
Fixed compiler warnings about unnecessary string allocations in debuginfo.rs
1 parent 5d5311d commit f1bd3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/trans/debuginfo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ fn create_basic_type(cx: @mut CrateContext, t: ty::t, _span: span) -> DIType {
268268
ast::ty_f32 => (~"f32", DW_ATE_float),
269269
ast::ty_f64 => (~"f64", DW_ATE_float)
270270
},
271-
_ => cx.sess.bug(~"debuginfo::create_basic_type - t is invalid type")
271+
_ => cx.sess.bug("debuginfo::create_basic_type - t is invalid type")
272272
};
273273

274274
let (size, align) = size_and_align_of(cx, t);
@@ -598,7 +598,7 @@ fn create_ty(cx: @mut CrateContext, t: ty::t, span: span) -> DIType {
598598
ty::ty_tup(ref elements) => {
599599
create_tuple(cx, t, *elements, span)
600600
},
601-
_ => cx.sess.bug(~"debuginfo: unexpected type in create_ty")
601+
_ => cx.sess.bug("debuginfo: unexpected type in create_ty")
602602
};
603603

604604
dbg_cx(cx).created_types.insert(ty_id, ty_md);

0 commit comments

Comments
 (0)