Skip to content

Commit 90e083a

Browse files
committed
---
yaml --- r: 22893 b: refs/heads/master c: 91bd291 h: refs/heads/master i: 22891: be72246 v: v3
1 parent cd3c6ff commit 90e083a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
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: ac4e57c6400bdd500a1918238fc76abc3b7def3d
2+
refs/heads/master: 91bd2910090aa5f80fd3ff401e891aa19286a474
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -436,23 +436,23 @@ fn check_item(ccx: @crate_ctxt, it: @ast::item) {
436436
do option::iter(m_dtor) |dtor| {
437437
// typecheck the dtor
438438
check_bare_fn(ccx, ast_util::dtor_dec(),
439-
dtor.node.body, dtor.node.id,
440-
some(class_t));
439+
dtor.node.body, dtor.node.id,
440+
some(class_t));
441441
// Write the dtor's self's type
442442
write_ty_to_tcx(tcx, dtor.node.self_id, class_t.self_ty);
443443
};
444444

445445
// typecheck the members
446446
for members.each |m| { check_class_member(ccx, class_t, m); }
447-
// Check that there's at least one field
448-
let (fields,_) = split_class_items(members);
449-
if fields.len() < 1u {
450-
ccx.tcx.sess.span_err(
451-
it.span,
452-
~"a class must have at least one field");
453-
}
454-
// Check that the class is instantiable
455-
check_instantiable(ccx.tcx, it.span, it.id);
447+
// Check that there's at least one field
448+
let (fields,_) = split_class_items(members);
449+
if fields.len() < 1u {
450+
ccx.tcx.sess.span_err(
451+
it.span,
452+
~"a class must have at least one field");
453+
}
454+
// Check that the class is instantiable
455+
check_instantiable(ccx.tcx, it.span, it.id);
456456
}
457457
ast::item_ty(t, tps) {
458458
let tpt_ty = ty::node_id_to_type(ccx.tcx, it.id);

0 commit comments

Comments
 (0)