Skip to content

Commit f1b180a

Browse files
authored
undo CopyForDeref assertion in const qualif
1 parent 3f2a592 commit f1b180a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/check_consts

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/check_consts/qualifs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ where
234234

235235
Rvalue::Discriminant(place) => in_place::<Q, _>(cx, in_local, place.as_ref()),
236236

237-
Rvalue::CopyForDeref(_) => bug!("`CopyForDeref` in runtime MIR"),
237+
Rvalue::CopyForDeref(place) => in_place::<Q, _>(cx, in_local, place.as_ref()),
238238

239239
Rvalue::Use(operand)
240240
| Rvalue::Repeat(operand, _)

0 commit comments

Comments
 (0)