]>
Commit | Line | Data |
---|---|---|
f2b60f7d FG |
1 | #![deny(rustc::untranslatable_diagnostic)] |
2 | #![deny(rustc::diagnostic_outside_of_impl)] | |
487cf647 FG |
3 | #![cfg_attr( |
4 | feature = "nightly", | |
5 | feature( | |
6 | allow_internal_unstable, | |
7 | extend_one, | |
8 | min_specialization, | |
9 | new_uninit, | |
10 | step_trait, | |
11 | stmt_expr_attributes, | |
12 | test | |
13 | ) | |
14 | )] | |
e74abb32 | 15 | |
487cf647 | 16 | #[cfg(feature = "nightly")] |
e74abb32 | 17 | pub mod bit_set; |
487cf647 | 18 | #[cfg(feature = "nightly")] |
a2a8927a | 19 | pub mod interval; |
dfeec247 | 20 | pub mod vec; |
5e7ed085 | 21 | |
487cf647 | 22 | #[cfg(feature = "rustc_macros")] |
5e7ed085 FG |
23 | pub use rustc_macros::newtype_index; |
24 | ||
25 | /// Type size assertion. The first argument is a type and the second argument is its expected size. | |
26 | #[macro_export] | |
27 | macro_rules! static_assert_size { | |
28 | ($ty:ty, $size:expr) => { | |
29 | const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()]; | |
30 | }; | |
31 | } |