Auto merge of #142817 - matthiaskrgr:rollup-mrobovy, r=matthiaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#142502 (rustdoc_json: improve handling of generic args)
 - rust-lang/rust#142597 (error on calls to ABIs that cannot be called)
 - rust-lang/rust#142785 (fix(linkcheck): Build using the lockfile)
 - rust-lang/rust#142787 (Add diagnostic items for Clippy)
 - rust-lang/rust#142788 (add doc(alias("AsciiChar")) to core::ascii::Char)
 - rust-lang/rust#142801 (Use gen blocks in the compiler instead of `from_coroutine`)
 - rust-lang/rust#142804 (Rename `LayoutS` to `LayoutData` in comments)

r? `@ghost`
`@rustbot` modify labels: rollup
This commit is contained in:
bors 2025-06-21 10:03:08 +00:00
commit 3bf5a844c1

View File

@ -268,7 +268,7 @@ pub fn layout_of_ty_query(
// let pointee = tcx.normalize_erasing_regions(param_env, pointee);
// if pointee.is_sized(tcx.at(DUMMY_SP), param_env) {
// return Ok(tcx.mk_layout(LayoutS::scalar(cx, data_ptr)));
// return Ok(tcx.mk_layout(LayoutData::scalar(cx, data_ptr)));
// }
let mut unsized_part = struct_tail_erasing_lifetimes(db, pointee.clone());