mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Fix "non-local impl definition" warning from recent nightlies.
This commit is contained in:
parent
05d36233fc
commit
0de204ccd7
@ -198,12 +198,21 @@ macro_rules! bind_interrupts {
|
|||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
||||||
|
|
||||||
|
)*
|
||||||
|
}
|
||||||
|
|
||||||
|
$(#[cfg($cond_irq)])?
|
||||||
|
$crate::bind_interrupts!(@inner
|
||||||
|
$(
|
||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
||||||
)*
|
)*
|
||||||
}
|
);
|
||||||
)*
|
)*
|
||||||
};
|
};
|
||||||
|
(@inner $($t:tt)*) => {
|
||||||
|
$($t)*
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reexports
|
// Reexports
|
||||||
|
@ -187,12 +187,21 @@ macro_rules! bind_interrupts {
|
|||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
||||||
|
|
||||||
|
)*
|
||||||
|
}
|
||||||
|
|
||||||
|
$(#[cfg($cond_irq)])?
|
||||||
|
$crate::bind_interrupts!(@inner
|
||||||
|
$(
|
||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
||||||
)*
|
)*
|
||||||
}
|
);
|
||||||
)*
|
)*
|
||||||
};
|
};
|
||||||
|
(@inner $($t:tt)*) => {
|
||||||
|
$($t)*
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "rp2040")]
|
#[cfg(feature = "rp2040")]
|
||||||
|
@ -186,12 +186,21 @@ macro_rules! bind_interrupts {
|
|||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
<$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
|
||||||
|
|
||||||
|
)*
|
||||||
|
}
|
||||||
|
|
||||||
|
$(#[cfg($cond_irq)])?
|
||||||
|
$crate::bind_interrupts!(@inner
|
||||||
|
$(
|
||||||
$(#[cfg($cond_handler)])?
|
$(#[cfg($cond_handler)])?
|
||||||
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
|
||||||
)*
|
)*
|
||||||
}
|
);
|
||||||
)*
|
)*
|
||||||
};
|
};
|
||||||
|
(@inner $($t:tt)*) => {
|
||||||
|
$($t)*
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reexports
|
// Reexports
|
||||||
|
Loading…
Reference in New Issue
Block a user