diff options
| author | Patrick Walton <[email protected]> | 2010-10-28 15:04:48 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-28 15:04:48 -0700 |
| commit | b914e0e74cd2e32f063cc5f90c066d55eaf88619 (patch) | |
| tree | 6315b0e2de71df510087f7b840467dd2fb4ee6c0 /src/lib | |
| parent | rustboot: Emit an error instead of asserting in trans when a T is passed by v... (diff) | |
| download | rust-b914e0e74cd2e32f063cc5f90c066d55eaf88619.tar.xz rust-b914e0e74cd2e32f063cc5f90c066d55eaf88619.zip | |
Revert "rustboot: Emit an error instead of asserting in trans when a T is passed by value" due to test failures
This reverts commit ee901858a27bf00c7dd66e7cfecb9dd97029dba8.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/list.rs b/src/lib/list.rs index da8d3c0a..7b861315 100644 --- a/src/lib/list.rs +++ b/src/lib/list.rs @@ -12,7 +12,7 @@ tag list[T] { nil; } -fn foldl[T,U](&list[T] ls, &U u, fn(&T t, U u) -> U f) -> U { +fn foldl[T,U](&list[T] ls, U u, fn(&T t, U u) -> U f) -> U { alt(ls) { case (cons[T](?hd, ?tl)) { auto u_ = f(hd, u); |