Skip to content

Commit 1aa6c4f

Browse files
committed
---
yaml --- r: 13277 b: refs/heads/master c: e56a6e8 h: refs/heads/master i: 13275: b149372 v: v3
1 parent a44dcf3 commit 1aa6c4f

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
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: c6e16c5668a86245259a4f542a62199b2023b89b
2+
refs/heads/master: e56a6e8cb0ca2be26bb71918447459865803a630
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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,6 @@ fn check_item(ccx: @crate_ctxt, it: @ast::item) {
387387
};
388388
// typecheck the members
389389
for members.each {|m| check_class_member(class_ccx, class_t, m); }
390-
// Check that there's at least one field
391-
let (fields,_) = split_class_items(members);
392-
if fields.len() < 1u {
393-
ccx.tcx.sess.span_err(it.span, "A class must have at least one \
394-
field");
395-
}
396390
// Check that the class is instantiable
397391
check_instantiable(ccx.tcx, it.span, it.id);
398392
}

trunk/src/test/compile-fail/issue-2509-a.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)