X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_mir_build%2Fsrc%2Fbuild%2Fexpr%2Fas_rvalue.rs;h=343a90b81849de8c2905bc44ae82324deb056699;hb=f713b5017c7ded572933605c08233b5d429d121d;hp=1dc49256a6a9f6430039a43211e94f14a8c70572;hpb=4de99e187c0e389449d96db847d5d9ad68259954;p=rust.git diff --git a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs index 1dc49256a6a..343a90b8184 100644 --- a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs +++ b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs @@ -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 { .. }