Skip to content

Commit 967eb82

Browse files
committed
---
yaml --- r: 16295 b: refs/heads/try c: 32e448e h: refs/heads/master i: 16293: c46491a 16291: f144ba6 16287: c9eab6a v: v3
1 parent 74353fb commit 967eb82

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: a5c9e8d59ed49725550ebd9e60871d51736393b4
5+
refs/heads/try: 32e448e0da9fd1e93c5bcce953d1ffbc4193565a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/ty.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,11 +1678,8 @@ fn is_instantiable(cx: ctxt, r_ty: t) -> bool {
16781678

16791679
ty_class(did, substs) {
16801680
vec::push(*seen, did);
1681-
let r = vec::any(lookup_class_fields(cx, did)) {|f|
1682-
let fty = ty::lookup_item_type(cx, f.id);
1683-
let sty = subst(cx, substs, fty.ty);
1684-
type_requires(cx, seen, r_ty, sty)
1685-
};
1681+
let r = vec::any(class_items_as_fields(cx, did, substs)) {|f|
1682+
type_requires(cx, seen, r_ty, f.mt.ty)};
16861683
vec::pop(*seen);
16871684
r
16881685
}

0 commit comments

Comments
 (0)