Skip to content

Commit e2a8474

Browse files
committed
Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk"
This reverts commit 557359f92512ca88b62a602ebda291f17a953002, reversing changes made to 1e6c09a803fd543a98bfbe1624d697a55300a786.
1 parent e865542 commit e2a8474

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/type_of.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
339339
return pointee;
340340
}
341341

342-
let assume_valid_ptr = true;
343-
let result = Ty::ty_and_layout_pointee_info_at(*self, cx, offset, assume_valid_ptr);
342+
let result = Ty::ty_and_layout_pointee_info_at(*self, cx, offset);
344343

345344
cx.pointee_infos.borrow_mut().insert((self.ty, offset), result);
346345
result

0 commit comments

Comments
 (0)