Merge remote-tracking branch 'origin/main' into run-264-upgrade-to-http-10

This commit is contained in:
Arshia Ghafoori
2024-07-16 08:51:35 +00:00
8 changed files with 86 additions and 59 deletions

View File

@ -129,9 +129,8 @@ impl Compiler for SinglepassCompiler {
target,
calling_convention,
)
.unwrap()
})
.collect::<Vec<_>>()
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect();
let (functions, fdes): (Vec<CompiledFunction>, Vec<_>) = function_body_inputs
@ -212,8 +211,8 @@ impl Compiler for SinglepassCompiler {
.values()
.collect::<Vec<_>>()
.into_par_iter_if_rayon()
.map(|func_type| gen_std_trampoline(func_type, target, calling_convention).unwrap())
.collect::<Vec<_>>()
.map(|func_type| gen_std_trampoline(func_type, target, calling_convention))
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect::<PrimaryMap<_, _>>();
@ -228,9 +227,8 @@ impl Compiler for SinglepassCompiler {
target,
calling_convention,
)
.unwrap()
})
.collect::<Vec<_>>()
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect::<PrimaryMap<FunctionIndex, FunctionBody>>();