We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 285fc7d commit c2dad1cCopy full SHA for c2dad1c
compiler/rustc_data_structures/src/macros.rs
@@ -1,15 +1,3 @@
1
-/// A simple static assertion macro.
2
-#[macro_export]
3
-#[allow_internal_unstable(type_ascription)]
4
-macro_rules! static_assert {
5
- ($test:expr) => {
6
- // Use the bool to access an array such that if the bool is false, the access
7
- // is out-of-bounds.
8
- #[allow(dead_code)]
9
- const _: () = [()][!($test: bool) as usize];
10
- };
11
-}
12
-
13
/// Type size assertion. The first argument is a type and the second argument is its expected size.
14
#[macro_export]
15
macro_rules! static_assert_size {
0 commit comments