Add Layout::LIST_U8

This commit is contained in:
Ayaz Hafiz 2023-06-13 15:02:57 -05:00
parent e3e01b6040
commit 90533bc014
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -77,8 +77,9 @@ cache_interned_layouts! {
17, OPAQUE_PTR, pub, nosema!(LayoutRepr::OPAQUE_PTR)
18, NAKED_RECURSIVE_PTR, pub(super), nosema!(LayoutRepr::RecursivePointer(Layout::VOID))
19, STR_PTR, pub, nosema!(LayoutRepr::Boxed(Layout::STR))
20, LIST_U8, pub, nosema!(LayoutRepr::Builtin(crate::layout::Builtin::List(Layout::U8)))
; 20
; 21
}
macro_rules! impl_to_from_int_width {
@ -468,6 +469,7 @@ impl std::fmt::Debug for InLayout<'_> {
Layout::OPAQUE_PTR => f.write_str("InLayout(OPAQUE_PTR)"),
Layout::NAKED_RECURSIVE_PTR => f.write_str("InLayout(NAKED_RECURSIVE_PTR)"),
Layout::STR_PTR => f.write_str("InLayout(STR_PTR)"),
Layout::LIST_U8 => f.write_str("InLayout(LIST_U8)"),
_ => f.debug_tuple("InLayout").field(&self.0).finish(),
}
}