@@ -77,7 +77,7 @@ unsafe fn fail_borrowed(box: *mut raw::Box<()>, file: *c_char, line: size_t) {
77
77
None => { // not recording borrows
78
78
let msg = "borrowed" ;
79
79
do msg. as_c_str |msg_p| {
80
- sys:: begin_unwind_ ( msg_p as * c_char , file, line) ;
80
+ sys:: begin_unwind_ ( msg_p, file, line) ;
81
81
}
82
82
}
83
83
Some ( borrow_list) => { // recording borrows
@@ -93,7 +93,7 @@ unsafe fn fail_borrowed(box: *mut raw::Box<()>, file: *c_char, line: size_t) {
93
93
}
94
94
}
95
95
do msg. as_c_str |msg_p| {
96
- sys:: begin_unwind_( msg_p as * c_char , file, line)
96
+ sys:: begin_unwind_( msg_p, file, line)
97
97
}
98
98
}
99
99
}
@@ -232,7 +232,7 @@ pub unsafe fn unrecord_borrow(a: *u8, old_ref_count: uint,
232
232
if br. box != a || br. file != file || br. line != line {
233
233
let err = fmt!( "wrong borrow found, br=%?" , br) ;
234
234
do err. as_c_str |msg_p| {
235
- sys:: begin_unwind_( msg_p as * c_char , file, line)
235
+ sys:: begin_unwind_( msg_p, file, line)
236
236
}
237
237
}
238
238
borrow_list
0 commit comments