mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Prime the cache with a default layer
This commit is contained in:
parent
c3064dad73
commit
8c68044c54
1 changed files with 4 additions and 2 deletions
|
@ -120,8 +120,10 @@ pub struct LayoutCache<'a> {
|
|||
|
||||
impl<'a> LayoutCache<'a> {
|
||||
pub fn new(interner: TLLayoutInterner<'a>, target_info: TargetInfo) -> Self {
|
||||
let cache = std::vec::Vec::with_capacity(4);
|
||||
let raw_cache = std::vec::Vec::with_capacity(4);
|
||||
let mut cache = std::vec::Vec::with_capacity(4);
|
||||
cache.push(Default::default());
|
||||
let mut raw_cache = std::vec::Vec::with_capacity(4);
|
||||
raw_cache.push(Default::default());
|
||||
Self {
|
||||
target_info,
|
||||
cache,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue