]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/build/expr/into.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc_mir / build / expr / into.rs
index d2913872fca4589f7949600e12493539b0498133..0e7305e076edeb3f39f3de319b5b8c3787aaa99d 100644 (file)
@@ -351,7 +351,7 @@ pub fn into_expr(
             | ExprKind::Break { .. }
             | ExprKind::InlineAsm { .. }
             | ExprKind::Return { .. } => {
-                unpack!(block = this.stmt_expr(block, expr));
+                unpack!(block = this.stmt_expr(block, expr, None));
                 this.cfg.push_assign_unit(block, source_info, destination);
                 block.unit()
             }
@@ -414,7 +414,7 @@ pub fn into_expr(
 
                     // must be handled above or else we get an
                     // infinite loop in the builder; see
-                    // e.g. `ExprKind::VarRef` above
+                    // e.g., `ExprKind::VarRef` above
                     Category::Place => false,
 
                     _ => true,