Home
last modified time | relevance | path

Searched refs:const_panic (Results 1 – 3 of 3) sorted by relevance

/linux/rust/zerocopy/src/util/
H A Dmacros.rs568 macro_rules! const_panic { macro
581 const_panic!(@non_panic $($arg)+)
597 let _: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e)));
608 …let _: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e), ": ", stringify!…
627 …let _: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e) $(, ": ", $msg)?)…
/linux/rust/zerocopy/src/
H A Dlayout.rs382 SizeInfo::SliceDst(..) => const_panic!("Cannot extend a DST with additional fields."), in extend()
403 None => const_panic!("Adding padding to `self`'s size overflows `usize`."), in extend()
423 … None => const_panic!("`field` cannot be appended without the total size overflowing `usize`"), in extend()
445 … None => const_panic!("`field` cannot be appended without the total size overflowing `usize`"), in extend()
502 None => const_panic!("Adding padding caused size to overflow `usize`."), in pad_to_align()
637 None => const_panic!("attempted to cast to slice type with zero-sized element"), in validate_cast_and_convert_metadata()
1077 None => const_panic!( in project()
H A Dlib.rs903 crate::SizeInfo::Sized { .. } => const_panic!("unreachable"), in trailing_slice_layout()
933 Err(_) => const_panic!("unreachable"), in maximum_trailing_slice_len()