rust/compiler/rustc_ty_utils/src
David Wood 86ab2b60cd
hir_analysis: add {Meta,Pointee}Sized bounds
Opting-out of `Sized` with `?Sized` is now equivalent to adding a
`MetaSized` bound, and adding a `MetaSized` or `PointeeSized` bound
is equivalent to removing the default `Sized` bound - this commit
implements this change in `rustc_hir_analysis::hir_ty_lowering`.

`MetaSized` is also added as a supertrait of all traits, as this is
necessary to preserve backwards compatibility.

Unfortunately, non-global where clauses being preferred over item bounds
(where `PointeeSized` bounds would be proven) - which can result in
errors when a `PointeeSized` supertrait/bound/predicate is added to some
items. Rather than `PointeeSized` being a bound on everything, it can
be the absence of a bound on everything, as `?Sized` was.
2025-06-16 23:04:33 +00:00
..
layout move expensive layout sanity check to debug assertions 2025-05-15 14:05:02 +00:00
abi.rs Remove all support for wasm's legacy ABI 2025-06-14 09:57:06 +00:00
assoc.rs Remove global next_disambiguator state and handle it with a DisambiguatorState type 2025-04-29 13:22:38 +02:00
common_traits.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
consts.rs Implement .use keyword as an alias of clone 2025-03-06 17:58:32 -03:00
errors.rs Implement .use keyword as an alias of clone 2025-03-06 17:58:32 -03:00
implied_bounds.rs Auto merge of #139552 - matthiaskrgr:rollup-b194mk8, r=matthiaskrgr 2025-04-09 05:39:18 +00:00
instance.rs Rename Instance::new to Instance::new_raw and add a note that it is raw 2025-05-05 13:17:35 +00:00
layout.rs Change tag_field to FieldIdx in Variants::Multiple 2025-06-03 23:42:21 -07:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
needs_drop.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
nested_bodies.rs borrowck nested items in dead code 2025-05-02 18:45:28 +00:00
opaque_types.rs Support opaque_types_defined_by for SyntheticCoroutineBody 2025-05-26 12:19:34 +00:00
representability.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00
sig_types.rs Restrict some queries by def-kind more 2025-04-07 18:10:28 +00:00
structural_match.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
ty.rs hir_analysis: add {Meta,Pointee}Sized bounds 2025-06-16 23:04:33 +00:00