Skip to content

Commit c2dad1c

Browse files
committed
Remove unused static_assert macro
1 parent 285fc7d commit c2dad1c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compiler/rustc_data_structures/src/macros.rs

-12
Original file line numberDiff line numberDiff line change
@@ -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-
131
/// Type size assertion. The first argument is a type and the second argument is its expected size.
142
#[macro_export]
153
macro_rules! static_assert_size {

0 commit comments

Comments
 (0)