Skip to content

Commit 7117fa9

Browse files
committed
Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors
Rename interner funcs This PR cleans up some inconsistencies in interner naming. Best reviewed one commit at a time. r? `@compiler-errors`
2 parents 4675477 + 69bf27d commit 7117fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty, krate: CrateId) -> Result<Lay
173173

174174
// let pointee = tcx.normalize_erasing_regions(param_env, pointee);
175175
// if pointee.is_sized(tcx.at(DUMMY_SP), param_env) {
176-
// return Ok(tcx.intern_layout(LayoutS::scalar(cx, data_ptr)));
176+
// return Ok(tcx.mk_layout(LayoutS::scalar(cx, data_ptr)));
177177
// }
178178

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

0 commit comments

Comments
 (0)