Skip to content

Commit ae234d6

Browse files
committed
rustc: Remove some unneeded type annotations
1 parent d2b7ea8 commit ae234d6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/comp/middle/ty.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1885,25 +1885,25 @@ mod unify {
18851885
smallintmap::insert[t](cx.vb.types, root_c, t);
18861886
} (_, _, set_a, set_b);
18871887

1888-
alt (smallintmap::find[t](cx.vb.types, root_a)) {
1889-
case (none[t]) {
1890-
alt (smallintmap::find[t](cx.vb.types, root_b)) {
1891-
case (none[t]) {
1888+
alt (smallintmap::find(cx.vb.types, root_a)) {
1889+
case (none) {
1890+
alt (smallintmap::find(cx.vb.types, root_b)) {
1891+
case (none) {
18921892
ufind::union(cx.vb.sets, set_a, set_b);
18931893
ret unres_ok; }
1894-
case (some[t](?t_b)) {
1894+
case (some(?t_b)) {
18951895
replace_type(cx, t_b);
18961896
ret unres_ok;
18971897
}
18981898
}
18991899
}
1900-
case (some[t](?t_a)) {
1901-
alt (smallintmap::find[t](cx.vb.types, root_b)) {
1902-
case (none[t]) {
1900+
case (some(?t_a)) {
1901+
alt (smallintmap::find(cx.vb.types, root_b)) {
1902+
case (none) {
19031903
replace_type(cx, t_a);
19041904
ret unres_ok;
19051905
}
1906-
case (some[t](?t_b)) {
1906+
case (some(?t_b)) {
19071907
alt (unify_step(cx, t_a, t_b)) {
19081908
case (ures_ok(?t_c)) {
19091909
replace_type(cx, t_c);

0 commit comments

Comments
 (0)