Skip to content

Commit c8b2e7b

Browse files
committed
WIP -- FILE ISSUE -- Rewrite 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 a13804f commit c8b2e7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcollections/btree/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ mod test {
738738
expected: &'b [int],
739739
}
740740

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

src/libcollections/tree/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,8 @@ mod test {
10371037
expected: &'b [int],
10381038
}
10391039

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

0 commit comments

Comments
 (0)