summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-06 15:40:11 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-06 15:40:11 -0700
commitc5e2cf2ee5b47a526b2eeebf26312fb184fcf7a6 (patch)
tree2210d87a6153b2b7dd4d785149100d78daea5f28 /src
parentee4ba4490d1f49c8aef12a5194a4e9b50dfc87fa (diff)
downloadrust-c5e2cf2ee5b47a526b2eeebf26312fb184fcf7a6.tar.gz
rust-c5e2cf2ee5b47a526b2eeebf26312fb184fcf7a6.zip
Repair long lines
Diffstat (limited to 'src')
-rw-r--r--src/rustc/middle/typeck/check.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/rustc/middle/typeck/check.rs b/src/rustc/middle/typeck/check.rs
index 52970baa547..7bdc1dd4adb 100644
--- a/src/rustc/middle/typeck/check.rs
+++ b/src/rustc/middle/typeck/check.rs
@@ -749,7 +749,8 @@ fn do_autoderef(fcx: @fn_ctxt, sp: span, t: ty::t) -> ty::t {
 
         // Some extra checks to detect weird cycles and so forth:
         match sty {
-            ty::ty_box(inner) | ty::ty_uniq(inner) | ty::ty_rptr(_, inner) => {
+            ty::ty_box(inner) | ty::ty_uniq(inner) |
+            ty::ty_rptr(_, inner) => {
                 match ty::get(t1).struct {
                     ty::ty_infer(ty::TyVar(v1)) => {
                         ty::occurs_check(fcx.ccx.tcx, sp, v1,
@@ -759,11 +760,12 @@ fn do_autoderef(fcx: @fn_ctxt, sp: span, t: ty::t) -> ty::t {
                 }
             }
             ty::ty_enum(did, _) => {
-                // Watch out for a type like `enum t = @t`.  Such a type would
-                // otherwise infinitely auto-deref.  This is the only autoderef
-                // loop that needs to be concerned with this, as an error will be
-                // reported on the enum definition as well because the enum is not
-                // instantiable.
+                // Watch out for a type like `enum t = @t`.  Such a
+                // type would otherwise infinitely auto-deref.  This
+                // is the only autoderef loop that needs to be
+                // concerned with this, as an error will be reported
+                // on the enum definition as well because the enum is
+                // not instantiable.
                 if vec::contains(enum_dids, did) {
                     return t1;
                 }