Skip to content

Commit a2b9284

Browse files
committed
---
yaml --- r: 32430 b: refs/heads/dist-snap c: c5e2cf2 h: refs/heads/master v: v3
1 parent dc5c758 commit a2b9284

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: ee4ba4490d1f49c8aef12a5194a4e9b50dfc87fa
10+
refs/heads/dist-snap: c5e2cf2ee5b47a526b2eeebf26312fb184fcf7a6
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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)