Skip to content

Commit 880246b

Browse files
committed
---
yaml --- r: 16283 b: refs/heads/try c: e56a6e8 h: refs/heads/master i: 16281: 99b501a 16279: 1a10d06 v: v3
1 parent 452c5e1 commit 880246b

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
@@ -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: c6e16c5668a86245259a4f542a62199b2023b89b
5+
refs/heads/try: e56a6e8cb0ca2be26bb71918447459865803a630
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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
}

branches/try/src/test/compile-fail/issue-2509-a.rs

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

0 commit comments

Comments
 (0)