fn emit_stmt(&mut self, stmt_id: NodeId, env: ParamEnv) -> Result<()> {
        // If we attempt to emit additional statements after a terminator,
        // create a new block to emit into.
        if self.terminated {
            let block = self.mk_block(None);
            self.append_to(block);
        }

        self.mlir_builder
            .set_loc(span_to_loc(self.mcx, self.span(stmt_id)));
        self.flush_mir();
        match self.hir_of(stmt_id)? {
            HirNode::Stmt(x) => self.emit_stmt_regular(stmt_id, x, env),
            HirNode::VarDecl(x) => self.emit_stmt_var_decl(stmt_id, x, env),
            _ => unreachable!(),
        }
    }
/// Emit the code for a statement.
Emit the code for a statement.
Emit the code for a statement .
fn emit_stmt(&mut self, stmt_id: NodeId, env: ParamEnv) -> Result<()> {
        // If we attempt to emit additional statements after a terminator,
        // create a new block to emit into.
        if self.terminated {
            let block = self.mk_block(None);
            self.append_to(block);
        }
        self.mlir_builder
            .set_loc(span_to_loc(self.mcx, self.span(stmt_id)));
        self.flush_mir();
        match self.hir_of(stmt_id)? {
            HirNode::Stmt(x) => self.emit_stmt_regular(stmt_id, x, env),
            HirNode::VarDecl(x) => self.emit_stmt_var_decl(stmt_id, x, env),
            _ => unreachable!(),
        }
    }
fn emit_stmt ( & mut self , stmt_id : NodeId , env : ParamEnv ) -> Result < ( ) > { // If we attempt to emit additional statements after a terminator, // create a new block to emit into. if self . terminated { let block = self . mk_block ( None ) ; self . append_to ( block ) ; } self . mlir_builder . set_loc ( span_to_loc ( self . mcx , self . span ( stmt_id ) ) ) ; self . flush_mir ( ) ; match self . hir_of ( stmt_id ) ? { HirNode :: Stmt ( x ) => self . emit_stmt_regular ( stmt_id , x , env ) , HirNode :: VarDecl ( x ) => self . emit_stmt_var_decl ( stmt_id , x , env ) , _ => unreachable ! ( ) , } }
Emit the code for a statement.
Emit the code for a statement .
&mut self
stmt_id
NodeId
env
ParamEnv
&mut self
stmt_id
NodeId
env
ParamEnv