Skip to content

Commit c84ede6

Browse files
committed
Auto merge of rust-lang#2803 - RalfJung:rustup, r=RalfJung
Rustup
2 parents 4452710 + 38a58bd commit c84ede6

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)