about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-12-15 20:20:15 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-12-19 03:29:59 -0500
commitd4f8a5abc54d3f7493ab097fb60ed4eef6920912 (patch)
treec48c84eaf9ff14c67800a0f131e5a3312e4a8612 /src
parentaa20e2ff3609a72e400634027bcd3b9988a73757 (diff)
downloadrust-d4f8a5abc54d3f7493ab097fb60ed4eef6920912.tar.gz
rust-d4f8a5abc54d3f7493ab097fb60ed4eef6920912.zip
Work around #19982 by rewriting test impls to not use anonymous
lifetimes. This currently causes an ICE; it should (ideally) work, but
failing that at least give a structured error. For the purposes of
this PR, though, workaround is fine.
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/btree/set.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs
index 8f75113c01d..4ef2e681992 100644
--- a/src/libcollections/btree/set.rs
+++ b/src/libcollections/btree/set.rs
@@ -762,8 +762,8 @@ mod test {
         expected: &'b [int],
     }
 
-    impl<'a, 'b> FnMut(&int) -> bool for Counter<'a, 'b> {
-        extern "rust-call" fn call_mut(&mut self, (&x,): (&int,)) -> bool {
+    impl<'a, 'b, 'c> FnMut(&'c int) -> bool for Counter<'a, 'b> {
+        extern "rust-call" fn call_mut(&mut self, (&x,): (&'c int,)) -> bool {
             assert_eq!(x, self.expected[*self.i]);
             *self.i += 1;
             true