]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir_build/build/expr/category.rs
Change MIR building to fill in the resume place
[rust.git] / src / librustc_mir_build / build / expr / category.rs
index c4d340953c92586eeb30de4e072349550f4dabc9..cc139dee63f92b86100045d40fd406db2764d37c 100644 (file)
@@ -50,6 +50,7 @@ impl Category {
             | ExprKind::Adt { .. }
             | ExprKind::Borrow { .. }
             | ExprKind::AddressOf { .. }
+            | ExprKind::Yield { .. }
             | ExprKind::Call { .. } => Some(Category::Rvalue(RvalueFunc::Into)),
 
             ExprKind::Array { .. }
@@ -63,7 +64,6 @@ impl Category {
             | ExprKind::Repeat { .. }
             | ExprKind::Assign { .. }
             | ExprKind::AssignOp { .. }
-            | ExprKind::Yield { .. }
             | ExprKind::InlineAsm { .. } => Some(Category::Rvalue(RvalueFunc::AsRvalue)),
 
             ExprKind::Literal { .. } | ExprKind::StaticRef { .. } => Some(Category::Constant),