1 #![deny(rustc::untranslatable_diagnostic)]
2 #![deny(rustc::diagnostic_outside_of_impl)]
6 allow_internal_unstable,
16 #[cfg(feature = "nightly")]
18 #[cfg(feature = "nightly")]
22 #[cfg(feature = "rustc_macros")]
23 pub use rustc_macros::newtype_index;
25 /// Type size assertion. The first argument is a type and the second argument is its expected size.
27 macro_rules! static_assert_size {
28 ($ty:ty, $size:expr) => {
29 const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];