@@ -569,7 +569,7 @@ fn create_backwarding_vtbl(cx: @local_ctxt, sp: span, inner_obj_ty: ty::t,
569
569
// finish_vtbl: Given a vector of vtable entries, create the table in
570
570
// read-only memory and return a pointer to it.
571
571
fn finish_vtbl ( cx : @local_ctxt , llmethods : [ ValueRef ] , name : str ) ->
572
- ValueRef {
572
+ ValueRef unsafe {
573
573
let vtbl = C_struct ( llmethods) ;
574
574
let vtbl_name = mangle_internal_name_by_path ( cx. ccx , cx. path + [ name] ) ;
575
575
let gvar =
@@ -619,7 +619,7 @@ fn begin_fn(cx: @local_ctxt, sp: span, m: @ty::method,
619
619
// returns the value returned from that call.
620
620
fn process_bkwding_mthd ( cx : @local_ctxt , sp : span , m : @ty:: method ,
621
621
ty_params : [ ast:: ty_param ] , outer_obj_ty : ty:: t ,
622
- _additional_field_tys : [ ty:: t ] ) -> ValueRef {
622
+ _additional_field_tys : [ ty:: t ] ) -> ValueRef unsafe {
623
623
624
624
let llbackwarding_fn = begin_fn ( cx, sp, m, ty_params, "backwarding_fn" ) ;
625
625
let fcx = new_fn_ctxt ( cx, sp, llbackwarding_fn) ;
@@ -724,7 +724,7 @@ fn process_bkwding_mthd(cx: @local_ctxt, sp: span, m: @ty::method,
724
724
fn process_fwding_mthd ( cx : @local_ctxt , sp : span , m : @ty:: method ,
725
725
ty_params : [ ast:: ty_param ] , inner_obj_ty : ty:: t ,
726
726
backwarding_vtbl : ValueRef ,
727
- additional_field_tys : [ ty:: t ] ) -> ValueRef {
727
+ additional_field_tys : [ ty:: t ] ) -> ValueRef unsafe {
728
728
729
729
// Create a new function context and block context for the function,
730
730
// holding onto a pointer to the first block.
0 commit comments