#[deprecated(since = "0.3.4", note = "please use `assert_impl_all!` instead")]
#[macro_export(local_inner_macros)]
macro_rules! assert_impl {
($($xs:tt)+) => { _assert_impl_all!($($xs)+); };
}
#[cfg_attr(feature = "nightly", doc = "```ignore")]
#[cfg_attr(not(feature = "nightly"), doc = "```")]
#[cfg_attr(feature = "nightly", doc = "```")]
#[cfg_attr(not(feature = "nightly"), doc = "```ignore")]
#[macro_export(local_inner_macros)]
macro_rules! assert_impl_all {
($($xs:tt)+) => { _assert_impl_all!($($xs)+); };
}
#[doc(hidden)]
#[cfg(feature = "nightly")]
#[macro_export(local_inner_macros)]
macro_rules! _assert_impl_all {
($x:ty, $($t:path),+ $(,)*) => {
const _: fn() -> () = || {
fn assert_impl_all<T>() where T: ?Sized $(+ $t)+ {}
assert_impl_all::<$x>();
};
};
}
#[doc(hidden)]
#[cfg(not(feature = "nightly"))]
#[macro_export(local_inner_macros)]
macro_rules! _assert_impl_all {
($x:ty, $($t:path),+ $(,)*) => {
{
fn assert_impl_all<T>() where T: ?Sized $(+ $t)+ {}
assert_impl_all::<$x>();
}
};
($label:ident; $($xs:tt)+) => {
#[allow(dead_code, non_snake_case)]
fn $label() { assert_impl_all!($($xs)+); }
};
}