mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
fuse RC operations on records/closures
This commit is contained in:
parent
84d5cbc4f1
commit
bacc7a9c6b
3 changed files with 90 additions and 20 deletions
|
@ -70,7 +70,9 @@ pub struct ClosureLayout<'a> {
|
|||
/// the vec is likely to be small, so linear search is fine
|
||||
captured: &'a [(TagName, &'a [Layout<'a>])],
|
||||
|
||||
layout: &'a Layout<'a>,
|
||||
/// use with care; there is some stuff happening here re. unwrapping
|
||||
/// one-element records that might cause issues
|
||||
pub layout: &'a Layout<'a>,
|
||||
}
|
||||
|
||||
impl<'a> ClosureLayout<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue