1 #![deny(rustc::untranslatable_diagnostic)]
2 #![deny(rustc::diagnostic_outside_of_impl)]
3 #![feature(allow_internal_unstable)]
4 #![feature(bench_black_box)]
5 #![feature(extend_one)]
6 #![feature(min_specialization)]
7 #![feature(new_uninit)]
8 #![feature(step_trait)]
9 #![feature(stmt_expr_attributes)]
16 pub use rustc_macros::newtype_index;
18 /// Type size assertion. The first argument is a type and the second argument is its expected size.
20 macro_rules! static_assert_size {
21 ($ty:ty, $size:expr) => {
22 const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];