File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1952,7 +1952,6 @@ mod unify {
1952
1952
option:: t < ast:: mutability > {
1953
1953
if expected == actual { ret some ( expected) ; }
1954
1954
if expected == ast:: maybe_mut { ret some ( actual) ; }
1955
- if actual == ast:: maybe_mut { ret some ( expected) ; }
1956
1955
ret none;
1957
1956
}
1958
1957
tag fn_common_res {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import uint::next_power_of_two;
5
5
import ptr:: addr_of;
6
6
7
7
native "rust-intrinsic" mod rusti {
8
- fn vec_len < T > ( & & v: [ T ] ) -> uint ;
8
+ fn vec_len < T > ( & & v: [ mutable? T ] ) -> uint ;
9
9
}
10
10
11
11
native "rust" mod rustrt {
@@ -86,7 +86,7 @@ pure fn is_not_empty<T>(v: [mutable? T]) -> bool { ret !is_empty(v); }
86
86
fn head < @T > ( v : [ mutable? T ] ) : is_not_empty( v ) -> T { ret v[ 0 ] ; }
87
87
88
88
/// Returns all but the first element of a vector
89
- fn tail < @T > ( v : [ mutable? T ] ) : is_not_empty( v ) -> [ mutable? T ] {
89
+ fn tail < @T > ( v : [ mutable? T ] ) : is_not_empty( v ) -> [ T ] {
90
90
ret slice ( v, 1 u, len ( v) ) ;
91
91
}
92
92
You can’t perform that action at this time.
0 commit comments