Update type-coercions.md

This commit is contained in:
Joshua Liebow-Feeser 2023-10-11 09:08:09 -07:00 committed by GitHub
parent b6089dda0e
commit 6dc7d633c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -156,16 +156,6 @@ Coercion is allowed between the following types:
* `!` to any `T`
#### Slice DST raw pointer conversions
When `T` and `U` are both "slice DSTs" - ie, slice types or types whose trailing field
is a slice type - the raw pointer types `*const T`, `*mut T`, `*const U`, and `*mut U`
encode the number of elements in this slice. Coercions between these raw pointer types
preserve the number of elements. Note that, as a consequence, such coercions do *not*
necessarily preserve the size of the pointer's referent (e.g., coercing `*const [u16]`
to `*const [u8]` will result in a raw pointer which refers to an object of half the size
of the original).
### Unsized Coercions
The following coercions are called `unsized coercions`, since they