]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_index/src/lib.rs
Rollup merge of #100789 - compiler-errors:issue-99662, r=spastorino
[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(bench_black_box)]
5 #![feature(extend_one)]
6 #![feature(let_else)]
7 #![feature(min_specialization)]
8 #![feature(new_uninit)]
9 #![feature(step_trait)]
10 #![feature(stmt_expr_attributes)]
11 #![feature(test)]
12
13 pub mod bit_set;
14 pub mod interval;
15 pub mod vec;
16
17 pub use rustc_macros::newtype_index;
18
19 /// Type size assertion. The first argument is a type and the second argument is its expected size.
20 #[macro_export]
21 macro_rules! static_assert_size {
22     ($ty:ty, $size:expr) => {
23         const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];
24     };
25 }