Diffstat (limited to 'tests/common/protocol/hint.rs')
-rw-r--r--tests/common/protocol/hint.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/common/protocol/hint.rs b/tests/common/protocol/hint.rs
index e6e70b3..93a5a2d 100644
--- a/tests/common/protocol/hint.rs
+++ b/tests/common/protocol/hint.rs
@@ -23,7 +23,7 @@ pub type KnownFactory<P> = for<'a, 'ctx> fn(
mock! {
pub HintWalker<P: ?Sized + HintMeta> {
- pub fn hint<'a, 'b, 'c, 'ctx>(&'a mut self, visitor: DynVisitorWith<'b, 'ctx, P>, hint: WithLt<'c, P::Hint>) -> VisitResult;
+ pub fn hint<'a, 'b, 'c, 'lt, 'ctx>(&'a mut self, visitor: DynVisitorWith<'b, 'lt, 'ctx, P>, hint: WithLt<'c, P::Hint>) -> VisitResult;
pub fn known(&self) -> KnownFactory<P>;
}
@@ -31,13 +31,13 @@ mock! {
forward_send_sync!({} {} {P: (?Sized + HintMeta + Send)} MockHintWalker<P>);
-impl<'ctx, P: ?Sized + HintMeta + Send> AnyTrait<'ctx> for MockHintWalker<P> {
- fn upcast_by_id_mut<'a, 'lt: 'a>(
+impl<'lt, 'ctx: 'lt, P: ?Sized + HintMeta + Send> AnyTrait<'lt, 'ctx> for MockHintWalker<P> {
+ fn upcast_by_id_mut<'a>(
&'a mut self,
id: WithLtTypeId<'lt, 'ctx>,
) -> Option<MutAnyUnsized<'a, 'lt, 'ctx>>
where
- 'ctx: 'lt,
+ 'lt: 'a,
{
trait_by_id!(&mut self, id, {
type Impls = (dyn Hint<P>);
@@ -56,9 +56,9 @@ impl<'ctx, P: ?Sized + HintMeta + Send> AnyTrait<'ctx> for MockHintWalker<P> {
// }
impl<'ctx, P: ?Sized + HintMeta + Send> Hint<'ctx, P> for MockHintWalker<P> {
- fn hint<'this: 'e, 'visitor: 'e, 'hint: 'e, 'e>(
+ fn hint<'this: 'e, 'visitor: 'e, 'lt: 'e, 'hint: 'e, 'e>(
&'this mut self,
- visitor: DynVisitorWith<'visitor, 'ctx, P>,
+ visitor: DynVisitorWith<'visitor, 'lt, 'ctx, P>,
hint: WithLt<'hint, <P as HintMeta>::Hint>,
) -> Canonical<'e, VisitResult, <P>::Env>
where