Skip to content

Commit 9efe439

Browse files
committed
---
yaml --- r: 2198 b: refs/heads/master c: 106f783 h: refs/heads/master v: v3
1 parent 385683d commit 9efe439

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9edaa7dba3181ae68c60204e1e47a2d20e86236e
2+
refs/heads/master: 106f783b33f64cfc364b7aa2e5f57bcd07e9bfb8

trunk/src/comp/middle/ty.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,6 +1877,9 @@ mod Unify {
18771877
// TODO: occurs check, to make sure we don't loop forever when
18781878
// unifying e.g. 'a and option['a]
18791879

1880+
// Fast path.
1881+
if (eq_ty(expected, actual)) { ret ures_ok(expected); }
1882+
18801883
alt (actual.struct) {
18811884
// If the RHS is a variable type, then just do the appropriate
18821885
// binding.

0 commit comments

Comments
 (0)