Make pattern_vars be a slice

This commit is contained in:
Richard Feldman 2020-08-12 23:07:48 -04:00
parent a4f4da7f5a
commit 8751e4bd00
2 changed files with 6 additions and 6 deletions

View file

@ -133,7 +133,7 @@ pub fn gen(
procs.insert_exposed(
symbol,
layout,
pattern_vars, //: Vec<'a, Variable>,
pattern_vars.into_bump_slice(),
annotation,
ret_var,
);
@ -177,7 +177,7 @@ pub fn gen(
procs.insert_exposed(
symbol,
layout,
pattern_vars,
pattern_vars.into_bump_slice(),
// It seems brittle that we're passing
// annotation twice - especially since
// in both cases we're giving the