Skip to content

Commit

Permalink
Revert "Auto merge of rust-lang#113166 - moulins:ref-niches-initial, …
Browse files Browse the repository at this point in the history
…r=oli-obk"

This reverts commit 557359f, reversing
changes made to 1e6c09a.
  • Loading branch information
dtolnay committed Jul 22, 2023
1 parent e865542 commit e2a8474
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/type_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
return pointee;
}

let assume_valid_ptr = true;
let result = Ty::ty_and_layout_pointee_info_at(*self, cx, offset, assume_valid_ptr);
let result = Ty::ty_and_layout_pointee_info_at(*self, cx, offset);

cx.pointee_infos.borrow_mut().insert((self.ty, offset), result);
result
Expand Down

0 comments on commit e2a8474

Please sign in to comment.