@@ -6899,13 +6899,13 @@ fn create_backwarding_vtbl(cx: @local_ctxt, sp: &span, inner_obj_ty: ty::t,
6899
6899
// outer object. All we know about either one are their types.
6900
6900
6901
6901
let llmethods: ValueRef [ ] = ~[ ] ;
6902
- let meths: vtbl_mthd [ ] = ~[ ] ;
6902
+ let meths: ty :: method [ ] = ~[ ] ;
6903
6903
6904
6904
// Gather up methods on the inner object.
6905
6905
alt ty:: struct ( cx. ccx . tcx , inner_obj_ty) {
6906
6906
ty:: ty_obj ( inner_obj_methods) {
6907
6907
for m: ty:: method in inner_obj_methods {
6908
- meths += ~[ fwding_mthd ( @m ) ] ;
6908
+ meths += ~[ m ] ;
6909
6909
}
6910
6910
}
6911
6911
_ {
@@ -6916,22 +6916,11 @@ fn create_backwarding_vtbl(cx: @local_ctxt, sp: &span, inner_obj_ty: ty::t,
6916
6916
}
6917
6917
6918
6918
// Methods should have already been sorted, so no need to do so again.
6919
-
6920
- for m: vtbl_mthd in meths {
6921
- alt m {
6922
- normal_mthd( nm) {
6923
- cx. ccx . sess . bug ( "backwarding vtables shouldn't contain \
6924
- normal methods") ;
6925
- }
6926
- fwding_mthd ( fm) {
6927
- // We pass outer_obj_ty to process_fwding_mthd() because it's
6928
- // the one being forwarded to.
6929
- llmethods += ~[ process_fwding_mthd (
6930
- cx, sp, fm, ~[ ] , outer_obj_ty,
6931
- none,
6932
- ~[ ] ) ] ;
6933
- }
6934
- }
6919
+ for m: ty:: method in meths {
6920
+ // We pass outer_obj_ty to process_fwding_mthd() because it's
6921
+ // the one being forwarded to.
6922
+ llmethods += ~[ process_fwding_mthd (
6923
+ cx, sp, @m, ~[ ] , outer_obj_ty, none, ~[ ] ) ] ;
6935
6924
}
6936
6925
6937
6926
let vtbl = C_struct ( llmethods) ;
0 commit comments