Skip to content

Commit

Permalink
uncomment drop access kind panic
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed Jan 2, 2023
1 parent f1a2104 commit 60b4fdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2369,10 +2369,10 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
ProjectionElem::Deref => match kind {
StorageDeadOrDrop::LocalStorageDead
| StorageDeadOrDrop::BoxedStorageDead => {
// assert!(
// place_ty.ty.is_box(),
// "Drop of value behind a reference or raw pointer"
// );
assert!(
place_ty.ty.is_box(),
"Drop of value behind a reference or raw pointer"
);
StorageDeadOrDrop::BoxedStorageDead
}
StorageDeadOrDrop::Destructor(_) => kind,
Expand Down

0 comments on commit 60b4fdc

Please sign in to comment.