rust/compiler/rustc_middle/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
..
dep_graph Ensure query keys are printed with reduced queries 2025-06-03 20:56:52 +00:00
hir collect delayed lints in hir_crate_items 2025-06-13 14:03:01 +02:00
hooks Move naked fn checks to hir_typeck 2025-05-30 16:08:44 +00:00
infer yeet CanonicalVarInfo 2025-05-23 12:10:53 +00:00
middle Tracking the old name of renamed unstable library attribute 2025-06-12 19:24:11 +08:00
mir Unimplement unsized_locals 2025-06-13 01:16:36 +02:00
query trait_sel: {Meta,Pointee}Sized on ?Sized types 2025-06-16 15:00:22 +00:00
thir Improve some Visitor comments. 2025-06-04 16:40:00 +10:00
traits Don't fold ExternalConstraintsData when it's empty 2025-06-13 17:57:25 +00:00
ty hir_analysis: add {Meta,Pointee}Sized bounds 2025-06-16 23:04:33 +00:00
util Remove attribute #[rustc_error] 2025-03-30 01:32:21 +03:00
arena.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
error.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
lib.rs library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00
lint.rs decouple "reporting in deps" from future incompatibility reason 2025-06-03 10:49:22 +02:00
macros.rs Fold visit into ty 2025-03-15 06:34:36 +00:00
metadata.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Add useful comments on ExprKind::If variants. 2025-05-02 15:53:39 +10:00
values.rs Use search_for_cycle_permutation to look for variances_of 2025-04-27 09:38:18 +02:00