Make Module object safe

This commit is contained in:
bjorn3
2021-02-22 16:00:37 +01:00
parent 584d6fbf0e
commit a710fc4425
3 changed files with 12 additions and 23 deletions

View File

@@ -243,15 +243,12 @@ impl Module for ObjectModule {
Ok(id)
}
fn define_function<TS>(
fn define_function(
&mut self,
func_id: FuncId,
ctx: &mut cranelift_codegen::Context,
trap_sink: &mut TS,
) -> ModuleResult<ModuleCompiledFunction>
where
TS: TrapSink,
{
trap_sink: &mut dyn TrapSink,
) -> ModuleResult<ModuleCompiledFunction> {
info!(
"defining function {}: {}",
func_id,