Skip to content

Commit

Permalink
Work around #19982 by rewriting test impls to not use anonymous
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikomatsakis committed Dec 19, 2014
1 parent aa20e2f commit d4f8a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/btree/set.rs
Expand Up @@ -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
Expand Down

0 comments on commit d4f8a5a

Please sign in to comment.