From b914e0e74cd2e32f063cc5f90c066d55eaf88619 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 28 Oct 2010 15:04:48 -0700 Subject: 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. --- src/lib/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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); -- cgit v1.2.3