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 325eacc commit b1daf80Copy full SHA for b1daf80
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: c13f0874542aa47361fa82cf280f6d8c3d46d84b
+refs/heads/master: a62bd9abeca0c99b59fc1621885402e267f10956
trunk/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