Skip to content

Commit 2448a23

Browse files
authored
Rollup merge of #70769 - RalfJung:fixed, r=Dylan-DPC
Miri: remove an outdated FIXME We even [have a test ](https://github.com/rust-lang/rust/blob/49dc2f9f091748beb1a8a9d5b3eb3bbe7362c3bd/src/test/ui/consts/miri_unleashed/drop.rs) making sure that we detect dropping with a non-const implementation. r? @oli-obk
2 parents 6f595e8 + e901b2f commit 2448a23

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_mir/interpret/terminator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
7575
}
7676

7777
Drop { location, target, unwind } => {
78-
// FIXME(CTFE): forbid drop in const eval
7978
let place = self.eval_place(location)?;
8079
let ty = place.layout.ty;
8180
trace!("TerminatorKind::drop: {:?}, type {}", location, ty);

0 commit comments

Comments
 (0)