mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Add a LayoutBuffer to store layouts aside and thread it through
This commit is contained in:
parent
a0af21becc
commit
3d73e33b49
4 changed files with 64 additions and 0 deletions
|
@ -5,6 +5,7 @@ use crate::layout::{
|
|||
LambdaName, LambdaSet, Layout, LayoutCache, LayoutInterner, LayoutProblem, RawFunctionLayout,
|
||||
STLayoutInterner, TagIdIntType, UnionLayout, WrappedVariant,
|
||||
};
|
||||
use crate::LayoutBuffer;
|
||||
use bumpalo::collections::{CollectIn, Vec};
|
||||
use bumpalo::Bump;
|
||||
use roc_builtins::bitcode::{FloatWidth, IntWidth};
|
||||
|
@ -1474,6 +1475,7 @@ pub struct Env<'a, 'i> {
|
|||
pub abilities: AbilitiesView<'i>,
|
||||
pub exposed_by_module: &'i ExposedByModule,
|
||||
pub derived_module: &'i SharedDerivedModule,
|
||||
pub layout_buffer: &'i mut LayoutBuffer<'a>,
|
||||
}
|
||||
|
||||
impl<'a, 'i> Env<'a, 'i> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue