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 c13f087 commit a62bd9aCopy full SHA for a62bd9a
src/comp/middle/typeck.rs
@@ -430,9 +430,6 @@ fn ty_of_item(tcx: ty::ctxt, mode: mode, it: @ast::item)
430
@it.ident);
431
let tpt = {bounds: bounds, ty: t};
432
tcx.tcache.insert(local_def(it.id), tpt);
433
- ty::store_iface_methods(tcx, it.id, @vec::map(ms, {|m|
434
- ty_of_ty_method(tcx, m_collect, m)
435
- }));
436
ret tpt;
437
}
438
ast::item_impl(_, _, _, _) | ast::item_mod(_) |
@@ -818,6 +815,13 @@ mod collect {
818
815
{bounds: bounds, ty: t_ctor});
819
816
write::ty_only(cx.tcx, dtor_id, t_dtor);
820
817
+ ast::item_iface(_, ms) {
+ let tpt = ty_of_item(cx.tcx, m_collect, it);
+ write::ty_only(cx.tcx, it.id, tpt.ty);
821
+ ty::store_iface_methods(cx.tcx, it.id, @vec::map(ms, {|m|
822
+ ty_of_ty_method(cx.tcx, m_collect, m)
823
+ }));
824
+ }
825
_ {
826
// This call populates the type cache with the converted type
827
// of the item in passing. All we have to do here is to write
0 commit comments