]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_index/src/lib.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / compiler / rustc_index / src / lib.rs
CommitLineData
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 17pub mod bit_set;
487cf647 18#[cfg(feature = "nightly")]
a2a8927a 19pub mod interval;
dfeec247 20pub mod vec;
5e7ed085 21
487cf647 22#[cfg(feature = "rustc_macros")]
5e7ed085
FG
23pub 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]
27macro_rules! static_assert_size {
28 ($ty:ty, $size:expr) => {
29 const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];
30 };
31}