about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-01-10 11:54:15 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-01-28 05:15:23 -0500
commit07cdb853317697c247b41e61f7a429c3fb623524 (patch)
tree4b44f3fb2fa20220413aea7b6c844a5b99e9a196 /src/libcollections
parentc61d7889b4bb270102dafe54cdfffbd737d168ff (diff)
downloadrust-07cdb853317697c247b41e61f7a429c3fb623524.tar.gz
rust-07cdb853317697c247b41e61f7a429c3fb623524.zip
Move return type an associated type of the `Fn*` traits. Mostly this involves tweaking things in
the compiler that assumed two input types to assume two ouputs; we also have to teach `project.rs`
to project `Output` from the unboxed closure and fn traits.
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/btree/set.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs
index e95087fa846..a090e4f24ce 100644
--- a/src/libcollections/btree/set.rs
+++ b/src/libcollections/btree/set.rs
@@ -758,7 +758,9 @@ mod test {
         expected: &'b [int],
     }
 
-    impl<'a, 'b, 'c> FnMut(&'c int) -> bool for Counter<'a, 'b> {
+    impl<'a, 'b, 'c> FnMut<(&'c int,)> for Counter<'a, 'b> {
+        type Output = bool;
+
         extern "rust-call" fn call_mut(&mut self, (&x,): (&'c int,)) -> bool {
             assert_eq!(x, self.expected[*self.i]);
             *self.i += 1;