Rollup merge of #142804 - zachs18:rename-layouts-to-layoutdata-in-comments, r=saethlin

Rename `LayoutS` to `LayoutData` in comments

`LayoutS` was renamed to `LayoutData`, but some comments in the compiler were not changed. This updates comments in the compiler (and one section of commented-out code in rust-analyzer) to refer to `LayoutData` instead of `LayoutS`.

cc <https://github.com/rust-lang/rust/pull/132252>, `@workingjubilee`
This commit is contained in:
Matthias Krüger
2025-06-21 10:53:28 +02:00
committed by GitHub

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());