Skip to content

Commit 7da8596

Browse files
committed
---
yaml --- r: 63583 b: refs/heads/snap-stage3 c: 273f905 h: refs/heads/master i: 63581: beb78a8 63579: bfe5041 63575: c2fadaf 63567: af8b7c3 63551: 4cf0159 v: v3
1 parent c4da618 commit 7da8596

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8bf00333455a572bc4c48f947777ed2e7b57af09
4+
refs/heads/snap-stage3: 273f90566c26309c13ebe10278f8745e978250b2
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/type_.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ impl Type {
189189
None => ()
190190
}
191191

192-
// Bit of a kludge: pick the fn typeref out of the tydesc..
193-
let ty = cx.tydesc_type.get_field(abi::tydesc_field_drop_glue);
192+
let ty = Type::glue_fn(cx.tydesc_type).ptr_to();
194193
cx.tn.associate_type("glue_fn", &ty);
195194

196195
return ty;
@@ -269,10 +268,6 @@ impl Type {
269268
cx.int_type
270269
}
271270

272-
pub fn captured_tydescs(ctx: &CrateContext, num: uint) -> Type {
273-
Type::struct_(vec::from_elem(num, ctx.tydesc_type.ptr_to()), false)
274-
}
275-
276271
pub fn opaque_trait(ctx: &CrateContext, store: ty::TraitStore) -> Type {
277272
let tydesc_ptr = ctx.tydesc_type.ptr_to();
278273
match store {

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,8 +4453,8 @@ pub fn get_tydesc_ty(tcx: ctxt) -> t {
44534453
}
44544454

44554455
pub fn get_opaque_ty(tcx: ctxt) -> t {
4456-
let tydesc_lang_item = tcx.lang_items.opaque();
4457-
tcx.intrinsic_defs.find_copy(&tydesc_lang_item)
4456+
let opaque_lang_item = tcx.lang_items.opaque();
4457+
tcx.intrinsic_defs.find_copy(&opaque_lang_item)
44584458
.expect("Failed to resolve Opaque")
44594459
}
44604460

0 commit comments

Comments
 (0)