Skip to content

Commit 6dc7d63

Browse files
authored
Update type-coercions.md
1 parent b6089dd commit 6dc7d63

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/type-coercions.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,6 @@ Coercion is allowed between the following types:
156156

157157
* `!` to any `T`
158158

159-
#### Slice DST raw pointer conversions
160-
161-
When `T` and `U` are both "slice DSTs" - ie, slice types or types whose trailing field
162-
is a slice type - the raw pointer types `*const T`, `*mut T`, `*const U`, and `*mut U`
163-
encode the number of elements in this slice. Coercions between these raw pointer types
164-
preserve the number of elements. Note that, as a consequence, such coercions do *not*
165-
necessarily preserve the size of the pointer's referent (e.g., coercing `*const [u16]`
166-
to `*const [u8]` will result in a raw pointer which refers to an object of half the size
167-
of the original).
168-
169159
### Unsized Coercions
170160

171161
The following coercions are called `unsized coercions`, since they

0 commit comments

Comments
 (0)