File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,7 @@ impl Type {
189
189
None => ( )
190
190
}
191
191
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 ( ) ;
194
193
cx. tn . associate_type ( "glue_fn" , & ty) ;
195
194
196
195
return ty;
@@ -269,10 +268,6 @@ impl Type {
269
268
cx. int_type
270
269
}
271
270
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
-
276
271
pub fn opaque_trait ( ctx : & CrateContext , store : ty:: TraitStore ) -> Type {
277
272
let tydesc_ptr = ctx. tydesc_type . ptr_to ( ) ;
278
273
match store {
Original file line number Diff line number Diff line change @@ -4453,8 +4453,8 @@ pub fn get_tydesc_ty(tcx: ctxt) -> t {
4453
4453
}
4454
4454
4455
4455
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 )
4458
4458
. expect( "Failed to resolve Opaque" )
4459
4459
}
4460
4460
You can’t perform that action at this time.
0 commit comments