mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-19 01:59:48 +00:00
fix bugs
This commit is contained in:
parent
0247237fe8
commit
9c85fb90d3
44 changed files with 2585 additions and 2505 deletions
|
@ -2792,7 +2792,11 @@ impl<'a> LayoutRepr<'a> {
|
|||
.contains_refcounted(interner),
|
||||
RecursivePointer(_) => true,
|
||||
Boxed(_) => true,
|
||||
Ptr(inner) => interner.get_repr(*inner).contains_refcounted(interner),
|
||||
Ptr(_) => {
|
||||
// we never consider pointers for refcounting. Ptr is not user-facing. The compiler
|
||||
// author must make sure that invariants are upheld
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue