mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Merge branch 'trunk' into int_a_float_a
This commit is contained in:
commit
b34436e5cb
93 changed files with 2982 additions and 1575 deletions
|
@ -547,13 +547,7 @@ impl<'a> Layout<'a> {
|
|||
}
|
||||
|
||||
pub fn is_refcounted(&self) -> bool {
|
||||
match self {
|
||||
Layout::Builtin(Builtin::List(MemoryMode::Refcounted, _)) => true,
|
||||
Layout::Builtin(Builtin::Str) => true,
|
||||
Layout::RecursiveUnion(_) => true,
|
||||
Layout::RecursivePointer => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Layout::Builtin(Builtin::List(MemoryMode::Refcounted, _)) | Layout::Builtin(Builtin::Str) | Layout::RecursiveUnion(_) | Layout::RecursivePointer)
|
||||
}
|
||||
|
||||
/// Even if a value (say, a record) is not itself reference counted,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue