about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2012-07-31 18:12:58 -0700
committerLindsey Kuper <lindsey@rockstargirl.org>2012-08-01 11:08:46 -0700
commit91bd2910090aa5f80fd3ff401e891aa19286a474 (patch)
tree8987abac83141a6d01ec695e10f9512ef399c37d /src
parentac4e57c6400bdd500a1918238fc76abc3b7def3d (diff)
downloadrust-91bd2910090aa5f80fd3ff401e891aa19286a474.tar.gz
rust-91bd2910090aa5f80fd3ff401e891aa19286a474.zip
Fix bad indentation.
Diffstat (limited to 'src')
-rw-r--r--src/rustc/middle/typeck/check.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/rustc/middle/typeck/check.rs b/src/rustc/middle/typeck/check.rs
index 98f0eed7296..a9578d688c4 100644
--- a/src/rustc/middle/typeck/check.rs
+++ b/src/rustc/middle/typeck/check.rs
@@ -436,23 +436,23 @@ fn check_item(ccx: @crate_ctxt, it: @ast::item) {
         do option::iter(m_dtor) |dtor| {
             // typecheck the dtor
             check_bare_fn(ccx, ast_util::dtor_dec(),
-                         dtor.node.body, dtor.node.id,
-                         some(class_t));
+                          dtor.node.body, dtor.node.id,
+                          some(class_t));
             // Write the dtor's self's type
             write_ty_to_tcx(tcx, dtor.node.self_id, class_t.self_ty);
         };
 
         // typecheck the members
         for members.each |m| { check_class_member(ccx, class_t, m); }
-          // Check that there's at least one field
-          let (fields,_) = split_class_items(members);
-          if fields.len() < 1u {
-              ccx.tcx.sess.span_err(
-                  it.span,
-                  ~"a class must have at least one field");
-          }
-          // Check that the class is instantiable
-          check_instantiable(ccx.tcx, it.span, it.id);
+        // Check that there's at least one field
+        let (fields,_) = split_class_items(members);
+        if fields.len() < 1u {
+            ccx.tcx.sess.span_err(
+                it.span,
+                ~"a class must have at least one field");
+        }
+        // Check that the class is instantiable
+        check_instantiable(ccx.tcx, it.span, it.id);
       }
       ast::item_ty(t, tps) {
         let tpt_ty = ty::node_id_to_type(ccx.tcx, it.id);