From c5e2cf2ee5b47a526b2eeebf26312fb184fcf7a6 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 6 Sep 2012 15:40:11 -0700 Subject: [PATCH] Repair long lines --- src/rustc/middle/typeck/check.rs | 14 ++++++++------ 1 file 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; }