Skip to content

Commit c56d53a

Browse files
author
arielb1
committed
ref-ptr-cast is actually a coercion-cast
1 parent 8f11141 commit c56d53a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

text/0401-coercions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,8 @@ following holds:
326326
* `e` has type `usize` and `U` is `*U_0`, while `U_0: Sized`; *addr-ptr-cast*
327327
* `e` has type `T` and `T` and `U` are any numeric types; *numeric-cast*
328328
* `e` is a C-like enum and `U` is an integer type or `bool`; *enum-cast*
329-
* `e` has type `bool` and `U` is an integer type or `bool`; *bool-cast*
330-
* `e` has type `u8` and `U` is `char`; *char-cast*
331-
* `e` has type `&.T` and `U` is `*T`, and `e` is a mutable reference
332-
if `U` is. *ref-ptr-cast*
329+
* `e` has type `bool` or `char` and `U` is an integer type; *prim-int-cast*
330+
* `e` has type `u8` and `U` is `char`; *u8-char-cast*
333331
* `e` has type `&.[T; n]` and `U` is `*T`, and `e` is a mutable
334332
reference if `U` is. *array-ptr-cast*
335333

0 commit comments

Comments
 (0)