@@ -110,7 +110,7 @@ pub fn free_ty_immediate(bcx: @Block, v: ValueRef, t: ty::t) -> @Block {
110
110
}
111
111
112
112
pub fn lazily_emit_all_tydesc_glue ( ccx : @CrateContext ,
113
- static_ti : @mut tydesc_info ) {
113
+ static_ti : @tydesc_info ) {
114
114
lazily_emit_tydesc_glue ( ccx, abi:: tydesc_field_take_glue, static_ti) ;
115
115
lazily_emit_tydesc_glue ( ccx, abi:: tydesc_field_drop_glue, static_ti) ;
116
116
lazily_emit_tydesc_glue ( ccx, abi:: tydesc_field_free_glue, static_ti) ;
@@ -176,7 +176,8 @@ pub fn simplified_glue_type(tcx: ty::ctxt, field: uint, t: ty::t) -> ty::t {
176
176
177
177
pub fn lazily_emit_simplified_tydesc_glue ( ccx : @CrateContext ,
178
178
field : uint ,
179
- ti : & mut tydesc_info ) -> bool {
179
+ ti : & tydesc_info )
180
+ -> bool {
180
181
let _icx = push_ctxt ( "lazily_emit_simplified_tydesc_glue" ) ;
181
182
let simpl = simplified_glue_type ( ccx. tcx , field, ti. ty ) ;
182
183
if simpl != ti. ty {
@@ -201,7 +202,7 @@ pub fn lazily_emit_simplified_tydesc_glue(ccx: @CrateContext,
201
202
202
203
pub fn lazily_emit_tydesc_glue ( ccx : @CrateContext ,
203
204
field : uint ,
204
- ti : @mut tydesc_info ) {
205
+ ti : @tydesc_info ) {
205
206
let _icx = push_ctxt ( "lazily_emit_tydesc_glue" ) ;
206
207
let llfnty = Type :: glue_fn ( type_of ( ccx, ti. ty ) . ptr_to ( ) ) ;
207
208
@@ -269,7 +270,7 @@ pub fn call_tydesc_glue_full(bcx: @Block,
269
270
v : ValueRef ,
270
271
tydesc : ValueRef ,
271
272
field : uint ,
272
- static_ti : Option < @mut tydesc_info > ) {
273
+ static_ti : Option < @tydesc_info > ) {
273
274
let _icx = push_ctxt ( "call_tydesc_glue_full" ) ;
274
275
let ccx = bcx. ccx ( ) ;
275
276
// NB: Don't short-circuit even if this block is unreachable because
@@ -587,7 +588,7 @@ pub fn incr_refcnt_of_boxed(cx: @Block, box_ptr: ValueRef) {
587
588
588
589
589
590
// Generates the declaration for (but doesn't emit) a type descriptor.
590
- pub fn declare_tydesc ( ccx : & CrateContext , t : ty:: t ) -> @mut tydesc_info {
591
+ pub fn declare_tydesc ( ccx : & CrateContext , t : ty:: t ) -> @tydesc_info {
591
592
// If emit_tydescs already ran, then we shouldn't be creating any new
592
593
// tydescs.
593
594
assert ! ( !ccx. finished_tydescs. get( ) ) ;
@@ -624,7 +625,7 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @mut tydesc_info {
624
625
625
626
let ty_name = C_estr_slice ( ccx, ppaux:: ty_to_str ( ccx. tcx , t) . to_managed ( ) ) ;
626
627
627
- let inf = @mut tydesc_info {
628
+ let inf = @tydesc_info {
628
629
ty : t,
629
630
tydesc : gvar,
630
631
size : llsize,
0 commit comments