mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Merge branch 'trunk' into NumBytesTo
This commit is contained in:
commit
0bebb64bae
16 changed files with 555 additions and 325 deletions
|
@ -10,10 +10,7 @@ pub const OWNED: bool = false;
|
|||
pub const BORROWED: bool = true;
|
||||
|
||||
fn should_borrow_layout(layout: &Layout) -> bool {
|
||||
match layout {
|
||||
Layout::Closure(_, _, _) => false,
|
||||
_ => layout.is_refcounted(),
|
||||
}
|
||||
layout.is_refcounted()
|
||||
}
|
||||
|
||||
pub fn infer_borrow<'a>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue