Skip to content

Commit

Permalink
We caught a rustc ICE here!
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Nov 11, 2023
1 parent 9b8b27d commit 4cf08fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mfio/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl PollingFlags {
}
}

pub trait IoBackend {
pub trait IoBackend<Handle = DefaultHandle> {
type Backend: Future<Output = ()> + Send + ?Sized;

/// Gets handle to the backing event system.
Expand Down Expand Up @@ -355,7 +355,7 @@ pub trait IoBackend {
fn block_on<F: Future>(&self, fut: F) -> F::Output {
let backend = self.get_backend();
let polling = self.polling_handle();
block_on::<F, Self>(fut, backend, polling)
block_on::<Handle, F, Self>(fut, backend, polling)
}
}

Expand Down Expand Up @@ -385,7 +385,7 @@ impl<'a, T: IoBackend + ?Sized> LinksIoBackend for RefLink<'a, T> {
}
}

pub fn block_on<F: Future, B: IoBackend + ?Sized>(
pub fn block_on<H, F: Future, B: IoBackend<H> + ?Sized>(
future: F,
backend: BackendHandle<B::Backend>,
polling: Option<PollingHandle>,
Expand Down

0 comments on commit 4cf08fa

Please sign in to comment.