Make generate_glue_procs take a trait

This commit is contained in:
Richard Feldman 2022-11-13 18:13:50 -05:00
parent 56f33c4e1c
commit f24275c28f
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -10812,11 +10812,11 @@ pub struct GlueProcs<'a> {
pub layouts: Vec<'a, Layout<'a>>, pub layouts: Vec<'a, Layout<'a>>,
} }
pub fn generate_glue_procs<'a>( pub fn generate_glue_procs<'a, I: Interner<'a, Layout<'a>>>(
home: ModuleId, home: ModuleId,
ident_ids: &mut IdentIds, ident_ids: &mut IdentIds,
arena: &'a Bump, arena: &'a Bump,
layout_interner: &mut STLayoutInterner<'a>, layout_interner: &mut I,
layout: Layout<'a>, layout: Layout<'a>,
) -> GlueProcs<'a> { ) -> GlueProcs<'a> {
let mut stack = Vec::new_in(arena); let mut stack = Vec::new_in(arena);