Rollup merge of #76963 - est31:remove_static_assert, r=oli-obk
Remove unused static_assert macro
This commit is contained in:
commit
e177757a04
1 changed files with 0 additions and 12 deletions
|
@ -1,15 +1,3 @@
|
|||
/// A simple static assertion macro.
|
||||
#[macro_export]
|
||||
#[allow_internal_unstable(type_ascription)]
|
||||
macro_rules! static_assert {
|
||||
($test:expr) => {
|
||||
// Use the bool to access an array such that if the bool is false, the access
|
||||
// is out-of-bounds.
|
||||
#[allow(dead_code)]
|
||||
const _: () = [()][!($test: bool) as usize];
|
||||
};
|
||||
}
|
||||
|
||||
/// Type size assertion. The first argument is a type and the second argument is its expected size.
|
||||
#[macro_export]
|
||||
macro_rules! static_assert_size {
|
||||
|
|
Loading…
Add table
Reference in a new issue