mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
assert type sizes
This commit is contained in:
parent
d4896d3ed2
commit
f301de5576
9 changed files with 17 additions and 21 deletions
|
@ -59,6 +59,8 @@ pub enum TagName {
|
|||
Closure(Symbol),
|
||||
}
|
||||
|
||||
static_assertions::assert_eq_size!([u8; 24], TagName);
|
||||
|
||||
impl TagName {
|
||||
pub fn as_ident_str(&self, interns: &Interns, home: ModuleId) -> IdentStr {
|
||||
match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue