We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64c23f commit 172fb17Copy full SHA for 172fb17
src/rustc/middle/trans/base.rs
@@ -619,7 +619,7 @@ fn emit_tydescs(ccx: @crate_ctxt) {
619
C_shape(ccx, shape), // shape
620
shape_tables, // shape_tables
621
C_int(ccx, 0), // unused
622
- C_int(ccx, 0)]/~); // unused
+ C_int(ccx, 0)]); // unused
623
624
let gvar = ti.tydesc;
625
llvm::LLVMSetInitializer(gvar, tydesc);
@@ -703,8 +703,8 @@ fn make_free_glue(bcx: block, v: ValueRef, t: ty::t) {
703
}
704
ty::ty_opaque_box {
705
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]/~);
+ let td = Load(bcx, GEPi(bcx, v, ~[0u, abi::box_field_tydesc]));
+ let valptr = GEPi(bcx, v, ~[0u, abi::box_field_body]);
708
// Generate code that, dynamically, indexes into the
709
// tydesc and calls the drop glue that got set dynamically
710
call_tydesc_glue_full(bcx, valptr, td, abi::tydesc_field_drop_glue,
src/rustc/middle/trans/type_use.rs
@@ -118,10 +118,10 @@ fn type_needs_inner(cx: ctx, use: uint, ty: ty::t,
118
if ty::type_has_params(ty) {
119
alt ty::get(ty).struct {
120
/*
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)
+ This previously included ty_box -- that was wrong
+ because if we cast an @T to an iface (for example) and return
+ it, we depend on the drop glue for T (we have to write the
+ right tydesc into the result)
125
*/
126
ty::ty_fn(_) | ty::ty_ptr(_) | ty::ty_rptr(_, _)
127
| ty::ty_iface(_, _) { false }
0 commit comments