Merge branch 'trunk' into int_a_float_a

This commit is contained in:
rvcas 2021-01-04 09:53:45 -05:00
commit b34436e5cb
93 changed files with 2982 additions and 1575 deletions

View file

@ -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,