Only immediately specialize anonymous closures

This commit is contained in:
Richard Feldman 2020-06-21 14:21:16 -04:00
parent 0d6d30e5df
commit 7c98e2e9f8
2 changed files with 9 additions and 29 deletions

View file

@ -39,7 +39,6 @@ pub fn build(
let home = loaded.module_id;
let src_lines: Vec<&str> = src.split('\n').collect();
let palette = DEFAULT_PALETTE;
let mut layout_cache = LayoutCache::default();
// Report parsing and canonicalization problems
let alloc = RocDocAllocator::new(&src_lines, home, &loaded.interns);
@ -197,7 +196,6 @@ pub fn build(
loc_args,
loc_body,
ret_var,
&mut layout_cache,
);
}
body => {