Skip to content

Commit 1788cfd

Browse files
committed
Remove NullOp::Box
1 parent 30cc96e commit 1788cfd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ fn check_rvalue(tcx: TyCtxt<'tcx>, body: &Body<'tcx>, def_id: DefId, rvalue: &Rv
193193
}
194194
},
195195
Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf, _) | Rvalue::ShallowInitBox(_, _) => Ok(()),
196-
Rvalue::NullaryOp(NullOp::Box, _) => Err((span, "heap allocations are not allowed in const fn".into())),
197196
Rvalue::UnaryOp(_, operand) => {
198197
let ty = operand.ty(body, tcx);
199198
if ty.is_integral() || ty.is_bool() {

0 commit comments

Comments
 (0)