Skip to content

Commit

Permalink
Update type-coercions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf authored Oct 11, 2023
1 parent b6089dd commit 6dc7d63
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dc7d63

Please sign in to comment.