Skip to content

Commit f40842a

Browse files
committed
uncomment drop access kind panic
1 parent 1bffc9f commit f40842a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,10 +2364,10 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
23642364
ProjectionElem::Deref => match kind {
23652365
StorageDeadOrDrop::LocalStorageDead
23662366
| StorageDeadOrDrop::BoxedStorageDead => {
2367-
// assert!(
2368-
// place_ty.ty.is_box(),
2369-
// "Drop of value behind a reference or raw pointer"
2370-
// );
2367+
assert!(
2368+
place_ty.ty.is_box(),
2369+
"Drop of value behind a reference or raw pointer"
2370+
);
23712371
StorageDeadOrDrop::BoxedStorageDead
23722372
}
23732373
StorageDeadOrDrop::Destructor(_) => kind,

0 commit comments

Comments
 (0)