Skip to content

Commit 50899d3

Browse files
committed
Merge branch 'rfc-401-fix' of ssh://github.com/arielb1/rfcs into rfc-401-fix
Conflicts: text/0401-coercions.md
2 parents 838d084 + c56d53a commit 50899d3

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

text/0401-coercions.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,20 +319,20 @@ descriptions are equivalent.
319319
Casting is indicated by the `as` keyword. A cast `e as U` is valid if one of the
320320
following holds:
321321

322-
* `e` has type `T` and `T` coerces to `U`; *coercion-cast*
323-
* `e` has type `*T`, `U` is `*U_0`, and either `U_0: Sized` or
324-
unsize_kind(`T`) = unsize_kind(`U_0`); *ptr-ptr-cast*
325-
* `e` has type `*T` and `U` is a numeric type, while `T: Sized`; *ptr-addr-cast*
326-
* `e` has type `usize` and `U` is `*U_0`, while `U_0: Sized`; *addr-ptr-cast*
327-
* `e` has type `T` and `T` and `U` are any numeric types; *numeric-cast*
328-
* `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; *bool-cast*
330-
* `e` has type `u8` and `U` is `char`; *u8-char-cast*
331-
* `e` has type `&.[T; n]` and `U` is `*T`, and `e` is a mutable
332-
reference if `U` is. *array-ptr-cast*
333-
* `e` is a function pointer type and `U` has type `*T`,
334-
while `T: Sized`; *fptr-ptr-cast*
335-
* `e` is a function pointer type and `U` is an integer; *fptr-addr-cast*
322+
* `e` has type `T` and `T` coerces to `U`; *coercion-cast*
323+
* `e` has type `*T`, `U` is `*U_0`, and either `U_0: Sized` or
324+
unsize_kind(`T`) = unsize_kind(`U_0`); *ptr-ptr-cast*
325+
* `e` has type `*T` and `U` is a numeric type, while `T: Sized`; *ptr-addr-cast*
326+
* `e` has type `usize` and `U` is `*U_0`, while `U_0: Sized`; *addr-ptr-cast*
327+
* `e` has type `T` and `T` and `U` are any numeric types; *numeric-cast*
328+
* `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; *bool-cast*
330+
* `e` has type `u8` and `U` is `char`; *u8-char-cast*
331+
* `e` has type `&.[T; n]` and `U` is `*T`, and `e` is a mutable
332+
reference if `U` is. *array-ptr-cast*
333+
* `e` is a function pointer type and `U` has type `*T`,
334+
while `T: Sized`; *fptr-ptr-cast*
335+
* `e` is a function pointer type and `U` is an integer; *fptr-addr-cast*
336336

337337
where `&.T` and `*T` are references of either mutability,
338338
and where unsize_kind(`T`) is the kind of the unsize info

0 commit comments

Comments
 (0)