Skip to content

Commit 3b25e92

Browse files
committed
Debug
1 parent de4b242 commit 3b25e92

File tree

1 file changed

+5
-4
lines changed
  • compiler/rustc_const_eval/src/transform/check_consts

1 file changed

+5
-4
lines changed

compiler/rustc_const_eval/src/transform/check_consts/check.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1004,11 +1004,12 @@ impl Visitor<'tcx> for Checker<'mir, 'tcx> {
10041004
}
10051005

10061006
let mut err_span = self.span;
1007+
let ty_of_dropped_place = dropped_place.ty(self.body, self.tcx).ty;
10071008

1008-
let ty_needs_non_const_drop = qualifs::NeedsNonConstDrop::in_any_value_of_ty(
1009-
self.ccx,
1010-
dropped_place.ty(self.body, self.tcx).ty,
1011-
);
1009+
let ty_needs_non_const_drop =
1010+
qualifs::NeedsNonConstDrop::in_any_value_of_ty(self.ccx, ty_of_dropped_place);
1011+
1012+
debug!(?ty_of_dropped_place, ?ty_needs_non_const_drop);
10121013

10131014
if !ty_needs_non_const_drop {
10141015
return;

0 commit comments

Comments
 (0)