diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-04-04 15:11:16 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-05-12 12:54:21 +0400 |
| commit | a908eec4389137bcaefb2bad6eb1efb34cb1be2d (patch) | |
| tree | 4b289c06aad1af59371a2f73acbe7c650762d189 /compiler/rustc_mir_transform/src | |
| parent | c8c91f757ab82b4ccb5bed42927163cca6fbf90a (diff) | |
| download | rust-a908eec4389137bcaefb2bad6eb1efb34cb1be2d.tar.gz rust-a908eec4389137bcaefb2bad6eb1efb34cb1be2d.zip | |
Lift the `Sized` requirement from convenience ptr fns
Since they work on byte pointers (by `.cast::<u8>()`ing them), there is no need to know the size of `T` and so there is no need for `T: Sized`. The `is_aligned_to` is similar, though it doesn't need the _alignment_ of `T`.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions
