Skip to content

Commit d4f8a5a

Browse files
committed
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.
1 parent aa20e2f commit d4f8a5a

File tree

1 file changed

+2
-2
lines changed
  • src/libcollections/btree

1 file changed

+2
-2
lines changed

src/libcollections/btree/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ mod test {
762762
expected: &'b [int],
763763
}
764764

765-
impl<'a, 'b> FnMut(&int) -> bool for Counter<'a, 'b> {
766-
extern "rust-call" fn call_mut(&mut self, (&x,): (&int,)) -> bool {
765+
impl<'a, 'b, 'c> FnMut(&'c int) -> bool for Counter<'a, 'b> {
766+
extern "rust-call" fn call_mut(&mut self, (&x,): (&'c int,)) -> bool {
767767
assert_eq!(x, self.expected[*self.i]);
768768
*self.i += 1;
769769
true

0 commit comments

Comments
 (0)