]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/expr/as_rvalue.rs
change thir to lazily create constants
[rust.git] / compiler / rustc_mir_build / src / build / expr / as_rvalue.rs
index 1dc49256a6a9f6430039a43211e94f14a8c70572..343a90b81849de8c2905bc44ae82324deb056699 100644 (file)
@@ -327,6 +327,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
             }
             ExprKind::Yield { .. }
             | ExprKind::Literal { .. }
+            | ExprKind::NamedConst { .. }
+            | ExprKind::ScalarLiteral { .. }
+            | ExprKind::ConstParam { .. }
             | ExprKind::ConstBlock { .. }
             | ExprKind::StaticRef { .. }
             | ExprKind::Block { .. }