We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385683d commit 9efe439Copy full SHA for 9efe439
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 9edaa7dba3181ae68c60204e1e47a2d20e86236e
+refs/heads/master: 106f783b33f64cfc364b7aa2e5f57bcd07e9bfb8
trunk/src/comp/middle/ty.rs
@@ -1877,6 +1877,9 @@ mod Unify {
1877
// TODO: occurs check, to make sure we don't loop forever when
1878
// unifying e.g. 'a and option['a]
1879
1880
+ // Fast path.
1881
+ if (eq_ty(expected, actual)) { ret ures_ok(expected); }
1882
+
1883
alt (actual.struct) {
1884
// If the RHS is a variable type, then just do the appropriate
1885
// binding.
0 commit comments