pub fn compile<'data>(
        &self,
        translation: &mut ModuleTranslation,
        types: &TypeTables,
    ) -> Result<Compilation, SetupError> {
        let functions = mem::take(&mut translation.function_body_inputs);
        let functions = functions.into_iter().collect::<Vec<_>>();

        let funcs = self
            .run_maybe_parallel(functions, |(index, func)| {
                self.compiler
                    .compile_function(translation, index, func, &self.tunables, types)
            })?
            .into_iter()
            .collect();

        let (obj, funcs) = self.compiler.emit_obj(
            &translation,
            types,
            funcs,
            self.tunables.generate_native_debuginfo,
        )?;

        Ok(Compilation { obj, funcs })
    }
/// Compile the given function bodies.
Compile the given function bodies.
Compile the given function bodies .
pub fn compile<'data>(
        &self,
        translation: &mut ModuleTranslation,
        types: &TypeTables,
    ) -> Result<Compilation, SetupError> {
        let functions = mem::take(&mut translation.function_body_inputs);
        let functions = functions.into_iter().collect::<Vec<_>>();
        let funcs = self
            .run_maybe_parallel(functions, |(index, func)| {
                self.compiler
                    .compile_function(translation, index, func, &self.tunables, types)
            })?
            .into_iter()
            .collect();
        let (obj, funcs) = self.compiler.emit_obj(
            &translation,
            types,
            funcs,
            self.tunables.generate_native_debuginfo,
        )?;
        Ok(Compilation { obj, funcs })
    }
pub fn compile < ' data > ( & self , translation : & mut ModuleTranslation , types : & TypeTables , ) -> Result < Compilation , SetupError > { let functions = mem :: take ( & mut translation . function_body_inputs ) ; let functions = functions . into_iter ( ) . collect :: < Vec < _ > > ( ) ; let funcs = self . run_maybe_parallel ( functions , | ( index , func ) | { self . compiler . compile_function ( translation , index , func , & self . tunables , types ) } ) ? . into_iter ( ) . collect ( ) ; let ( obj , funcs ) = self . compiler . emit_obj ( & translation , types , funcs , self . tunables . generate_native_debuginfo , ) ? ; Ok ( Compilation { obj , funcs } ) }
Compile the given function bodies.
Compile the given function bodies .
&self
translation
&mut ModuleTranslation
types
&TypeTables
&self
translation
&mut ModuleTranslation
types
&TypeTables