mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Make pattern_symbols be a slice
This commit is contained in:
parent
4acb9fa325
commit
0f8906b6d3
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ use std::collections::HashMap;
|
|||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct PartialProc<'a> {
|
||||
pub annotation: Variable,
|
||||
pub pattern_symbols: Vec<'a, Symbol>,
|
||||
pub pattern_symbols: &'a [Symbol],
|
||||
pub body: roc_can::expr::Expr,
|
||||
}
|
||||
|
||||
|
@ -426,7 +426,7 @@ fn patterns_to_when<'a>(
|
|||
) -> Result<
|
||||
(
|
||||
Vec<'a, Variable>,
|
||||
Vec<'a, Symbol>,
|
||||
&'a [Symbol],
|
||||
Located<roc_can::expr::Expr>,
|
||||
),
|
||||
Located<RuntimeError>,
|
||||
|
@ -483,7 +483,7 @@ fn patterns_to_when<'a>(
|
|||
}
|
||||
|
||||
match body {
|
||||
Ok(body) => Ok((arg_vars, symbols, body)),
|
||||
Ok(body) => Ok((arg_vars, symbols.into_bump_slice(), body)),
|
||||
Err(loc_error) => Err(loc_error),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue