Revert "Cache whether a body has inline consts"
This reverts commit eae5031ecb.
This commit is contained in:
@@ -74,10 +74,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
||||
|
||||
let kind = match &e.kind {
|
||||
ExprKind::Array(exprs) => hir::ExprKind::Array(self.lower_exprs(exprs)),
|
||||
ExprKind::ConstBlock(c) => {
|
||||
self.has_inline_consts = true;
|
||||
hir::ExprKind::ConstBlock(self.lower_expr(c))
|
||||
}
|
||||
ExprKind::ConstBlock(c) => hir::ExprKind::ConstBlock(self.lower_expr(c)),
|
||||
ExprKind::Repeat(expr, count) => {
|
||||
let expr = self.lower_expr(expr);
|
||||
let count = self.lower_array_length(count);
|
||||
|
||||
Reference in New Issue
Block a user