Skip to content

Commit 22a7683

Browse files
committed
---
yaml --- r: 13196 b: refs/heads/master c: 14e3fde h: refs/heads/master v: v3
1 parent c73dd10 commit 22a7683

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 79787833bbf1c705bb1fa877a88339260a90ec11
2+
refs/heads/master: 14e3fdea9c0a4e9669d4c918af84b6306aca0123
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/typeck/check.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ fn check_item(ccx: @crate_ctxt, it: @ast::item) {
386386
};
387387
// typecheck the members
388388
for members.each {|m| check_class_member(class_ccx, class_t, m); }
389+
// Check that the class is instantiable
390+
check_instantiable(ccx.tcx, it.span, it.id);
389391
}
390392
ast::item_ty(t, tps, rp) {
391393
let tpt_ty = ty::node_id_to_type(ccx.tcx, it.id);

0 commit comments

Comments
 (0)