aboutsummaryrefslogtreecommitdiff
path: root/vendor/rustix/src/static_assertions.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rustix/src/static_assertions.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/rustix/src/static_assertions.rs')
-rw-r--r--vendor/rustix/src/static_assertions.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/rustix/src/static_assertions.rs b/vendor/rustix/src/static_assertions.rs
deleted file mode 100644
index 3d07118..0000000
--- a/vendor/rustix/src/static_assertions.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-//! Workarounds for Rust 1.63 where some things in the `static_assertions`
-//! crate do things that don't work in const contexts. We want to call them in
-//! const contexts in Rust versions where that's supported so that problems are
-//! caught at compile time, and fall back to dynamic asserts in Rust 1.63.
-
-#![allow(unused_macros)]
-
-macro_rules! assert_eq_size {
- ($x:ty, $y:ty) => {
- assert_eq!(core::mem::size_of::<$x>(), core::mem::size_of::<$y>());
- };
-}
-
-macro_rules! assert_eq_align {
- ($x:ty, $y:ty) => {
- assert_eq!(core::mem::align_of::<$x>(), core::mem::align_of::<$y>());
- };
-}
-
-macro_rules! const_assert_eq {
- ($x:expr, $y:expr) => {
- assert_eq!($x, $y);
- };
-}
-
-macro_rules! const_assert_ne {
- ($x:expr, $y:expr) => {
- assert_ne!($x, $y);
- };
-}
-
-macro_rules! const_assert {
- ($x:expr) => {
- assert!($x);
- };
-}