Skip to content

Commit c5e2cf2

Browse files
committed
Repair long lines
1 parent ee4ba44 commit c5e2cf2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/rustc/middle/typeck/check.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ fn do_autoderef(fcx: @fn_ctxt, sp: span, t: ty::t) -> ty::t {
749749

750750
// Some extra checks to detect weird cycles and so forth:
751751
match sty {
752-
ty::ty_box(inner) | ty::ty_uniq(inner) | ty::ty_rptr(_, inner) => {
752+
ty::ty_box(inner) | ty::ty_uniq(inner) |
753+
ty::ty_rptr(_, inner) => {
753754
match ty::get(t1).struct {
754755
ty::ty_infer(ty::TyVar(v1)) => {
755756
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 {
759760
}
760761
}
761762
ty::ty_enum(did, _) => {
762-
// Watch out for a type like `enum t = @t`. Such a type would
763-
// otherwise infinitely auto-deref. This is the only autoderef
764-
// loop that needs to be concerned with this, as an error will be
765-
// reported on the enum definition as well because the enum is not
766-
// instantiable.
763+
// Watch out for a type like `enum t = @t`. Such a
764+
// type would otherwise infinitely auto-deref. This
765+
// is the only autoderef loop that needs to be
766+
// concerned with this, as an error will be reported
767+
// on the enum definition as well because the enum is
768+
// not instantiable.
767769
if vec::contains(enum_dids, did) {
768770
return t1;
769771
}

0 commit comments

Comments
 (0)