fuse RC operations on records/closures

This commit is contained in:
Folkert 2021-02-13 02:03:36 +01:00
parent 84d5cbc4f1
commit bacc7a9c6b
3 changed files with 90 additions and 20 deletions

View file

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