diff options
| author | David Wood <david.wood2@arm.com> | 2025-02-27 21:19:51 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-06-16 23:04:33 +0000 |
| commit | 86ab2b60cd22f6190eb586c889f8a2504f0d926b (patch) | |
| tree | c379a930de63e5cb21b83110dccd82c1c3874a25 /tests/codegen/patchable-function-entry | |
| parent | f0b84b8dcfc15c3936256ccb438b1d050620ff3c (diff) | |
| download | rust-86ab2b60cd22f6190eb586c889f8a2504f0d926b.tar.gz rust-86ab2b60cd22f6190eb586c889f8a2504f0d926b.zip | |
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.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
