Skip to content

Commit 9549753

Browse files
committed
Auto merge of #14333 - lnicola:sync-from-rust, r=lnicola
minor: sync from downstream
2 parents f1e51af + bdbd2a5 commit 9549753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty, krate: CrateId) -> Result<Lay
165165

166166
// let pointee = tcx.normalize_erasing_regions(param_env, pointee);
167167
// if pointee.is_sized(tcx.at(DUMMY_SP), param_env) {
168-
// return Ok(tcx.intern_layout(LayoutS::scalar(cx, data_ptr)));
168+
// return Ok(tcx.mk_layout(LayoutS::scalar(cx, data_ptr)));
169169
// }
170170

171171
let unsized_part = struct_tail_erasing_lifetimes(db, pointee.clone());

0 commit comments

Comments
 (0)