about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-04-04 15:11:16 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-05-12 12:54:21 +0400
commita908eec4389137bcaefb2bad6eb1efb34cb1be2d (patch)
tree4b289c06aad1af59371a2f73acbe7c650762d189 /compiler/rustc_mir_transform/src/coverage/debug.rs
parentc8c91f757ab82b4ccb5bed42927163cca6fbf90a (diff)
downloadrust-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/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions