rust/compiler/rustc_ty_utils/src
Lukas Markeffsky 20d2414925 get rid of an old hack
For structs that cannot be unsized, the layout algorithm sometimes moves
unsized fields to the end of the struct, which circumvented the error
for unexpected unsized fields and returned an unsized layout anyway.

This commit makes it so that the unexpected unsized error is always
returned for structs that cannot be unsized, allowing us to remove an
old hack and fixing some old ICE.
2024-09-17 00:09:21 +02:00
..
abi.rs layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
assoc.rs address review comments 2024-06-28 15:44:20 +00:00
common_traits.rs Start implementing needs_async_drop and related 2024-05-29 12:50:44 +03:00
consts.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
errors.rs Add `warn(unreachable_pub)` to `rustc_ty_utils`. 2024-09-03 08:50:33 +10:00
implied_bounds.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
instance.rs document & impl the transmutation modeled by `BikeshedIntrinsicFrom` 2024-08-23 14:37:36 +00:00
layout.rs get rid of an old hack 2024-09-17 00:09:21 +02:00
layout_sanity_check.rs layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
lib.rs Add `warn(unreachable_pub)` to `rustc_ty_utils`. 2024-09-03 08:50:33 +10:00
needs_drop.rs Fix `elided_named_lifetimes` in code 2024-08-24 19:21:32 +03:00
opaque_types.rs Simplify some nested if statements 2024-09-11 13:45:23 -04:00
representability.rs Remove `extern crate rustc_middle` from `rustc_ty_utils`. 2024-05-13 08:20:18 +10:00
sig_types.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
structural_match.rs Reformat `use` declarations. 2024-07-29 08:26:52 +10:00
ty.rs Reformat `use` declarations. 2024-07-29 08:26:52 +10:00