Skip to content

Commit 172fb17

Browse files
committed
Check in changes I forgot to check in
1 parent f64c23f commit 172fb17

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ fn emit_tydescs(ccx: @crate_ctxt) {
619619
C_shape(ccx, shape), // shape
620620
shape_tables, // shape_tables
621621
C_int(ccx, 0), // unused
622-
C_int(ccx, 0)]/~); // unused
622+
C_int(ccx, 0)]); // unused
623623

624624
let gvar = ti.tydesc;
625625
llvm::LLVMSetInitializer(gvar, tydesc);
@@ -703,8 +703,8 @@ fn make_free_glue(bcx: block, v: ValueRef, t: ty::t) {
703703
}
704704
ty::ty_opaque_box {
705705
let v = PointerCast(bcx, v, type_of(ccx, t));
706-
let td = Load(bcx, GEPi(bcx, v, [0u, abi::box_field_tydesc]/~));
707-
let valptr = GEPi(bcx, v, [0u, abi::box_field_body]/~);
706+
let td = Load(bcx, GEPi(bcx, v, ~[0u, abi::box_field_tydesc]));
707+
let valptr = GEPi(bcx, v, ~[0u, abi::box_field_body]);
708708
// Generate code that, dynamically, indexes into the
709709
// tydesc and calls the drop glue that got set dynamically
710710
call_tydesc_glue_full(bcx, valptr, td, abi::tydesc_field_drop_glue,

src/rustc/middle/trans/type_use.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ fn type_needs_inner(cx: ctx, use: uint, ty: ty::t,
118118
if ty::type_has_params(ty) {
119119
alt ty::get(ty).struct {
120120
/*
121-
This previously included ty_box -- that was wrong
122-
because if we cast an @T to an iface (for example) and return
123-
it, we depend on the drop glue for T (we have to write the
124-
right tydesc into the result)
121+
This previously included ty_box -- that was wrong
122+
because if we cast an @T to an iface (for example) and return
123+
it, we depend on the drop glue for T (we have to write the
124+
right tydesc into the result)
125125
*/
126126
ty::ty_fn(_) | ty::ty_ptr(_) | ty::ty_rptr(_, _)
127127
| ty::ty_iface(_, _) { false }

0 commit comments

Comments
 (0)