]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_index/src/lib.rs
Use `allow_internal_unstable` and add unstable reason
[rust.git] / compiler / rustc_index / src / lib.rs
1 #![deny(rustc::untranslatable_diagnostic)]
2 #![deny(rustc::diagnostic_outside_of_impl)]
3 #![feature(allow_internal_unstable)]
4 #![feature(extend_one)]
5 #![feature(min_specialization)]
6 #![feature(new_uninit)]
7 #![feature(step_trait)]
8 #![feature(stmt_expr_attributes)]
9 #![feature(test)]
10
11 pub mod bit_set;
12 pub mod interval;
13 pub mod vec;
14
15 pub use rustc_macros::newtype_index;
16
17 /// Type size assertion. The first argument is a type and the second argument is its expected size.
18 #[macro_export]
19 macro_rules! static_assert_size {
20     ($ty:ty, $size:expr) => {
21         const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];
22     };
23 }