clipping clippings

This commit is contained in:
Folkert 2020-07-31 00:05:47 +02:00
parent f15a50d3fa
commit 01f9539d8e
2 changed files with 4 additions and 12 deletions

View file

@ -37,7 +37,7 @@ pub struct Proc<'a> {
} }
impl<'a> Proc<'a> { impl<'a> Proc<'a> {
pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D, parens: bool) -> DocBuilder<'b, D, A> pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D, _parens: bool) -> DocBuilder<'b, D, A>
where where
D: DocAllocator<'b, A>, D: DocAllocator<'b, A>,
D::Doc: Clone, D::Doc: Clone,
@ -835,10 +835,7 @@ fn from_can<'a>(
} }
LetRec(defs, ret_expr, _, _) => from_can_defs(env, defs, *ret_expr, layout_cache, procs), LetRec(defs, ret_expr, _, _) => from_can_defs(env, defs, *ret_expr, layout_cache, procs),
LetNonRec(def, ret_expr, _, _) => { LetNonRec(def, ret_expr, _, _) => {
let symbols = roc_can::pattern::symbols_from_pattern(&def.loc_pattern.value); from_can_defs(env, vec![*def], *ret_expr, layout_cache, procs)
let mut result = from_can_defs(env, vec![*def], *ret_expr, layout_cache, procs);
result
} }
Closure(ann, name, _, loc_args, boxed_body) => { Closure(ann, name, _, loc_args, boxed_body) => {

View file

@ -1,15 +1,10 @@
use crate::expr::Env; use crate::expr::Env;
use crate::expr::Expr; use crate::expr::Expr;
use crate::layout::{Builtin, Layout};
use bumpalo::collections::Vec; use bumpalo::collections::Vec;
use bumpalo::Bump; use roc_collections::all::MutSet;
use roc_collections::all::{MutMap, MutSet}; use roc_module::symbol::Symbol;
use roc_module::ident::{Ident, Lowercase, TagName};
use roc_module::symbol::{IdentIds, ModuleId, Symbol};
use roc_region::all::{Located, Region};
use Expr::*;
/* /*
R : FnBodypure FnBodyRC R : FnBodypure FnBodyRC
R(let x = e; F ) = let x = e; R(F ) R(let x = e; F ) = let x = e; R(F )