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)]
7 #![feature(min_specialization)]
8 #![feature(new_uninit)]
9 #![feature(step_trait)]
10 #![feature(stmt_expr_attributes)]
17 pub use rustc_macros::newtype_index;
19 /// Type size assertion. The first argument is a type and the second argument is its expected size.
21 macro_rules! static_assert_size {
22 ($ty:ty, $size:expr) => {
23 const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];