Skip to content

Commit d4bf7d4

Browse files
authored
Merge pull request #2382 from Zalathar/no-tuple-unsize
2 parents eadf6dc + 8ebe467 commit d4bf7d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/traits/unsize.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ Built-in implementations are provided for:
3232

3333
## Structural implementations
3434

35-
There are two implementations of `Unsize` which can be thought of as
35+
There is one implementation of `Unsize` which can be thought of as
3636
structural:
37-
* `(A1, A2, .., An): Unsize<(A1, A2, .., U)>` given `An: Unsize<U>`, which
38-
allows the tail field of a tuple to be unsized. This is gated behind the
39-
[`unsized_tuple_coercion`] feature.
4037
* `Struct<.., Pi, .., Pj, ..>: Unsize<Struct<.., Ui, .., Uj, ..>>` given
4138
`TailField<Pi, .., Pj>: Unsize<Ui, .. Uj>`, which allows the tail field of a
4239
struct to be unsized if it is the only field that mentions generic parameters
4340
`Pi`, .., `Pj` (which don't need to be contiguous).
4441

45-
The rules for the latter implementation are slightly complicated, since they
42+
The rules for struct unsizing are slightly complicated, since they
4643
may allow more than one parameter to be changed (not necessarily unsized) and
4744
are best stated in terms of the tail field of the struct.
4845

49-
[`unsized_tuple_coercion`]: https://doc.rust-lang.org/beta/unstable-book/language-features/unsized-tuple-coercion.html
46+
(Tuple unsizing was previously implemented behind the feature gate
47+
`unsized_tuple_coercion`, but the implementation was removed by [#137728].)
48+
49+
[#137728]: https://github.com/rust-lang/rust/pull/137728
5050

5151
## Upcasting implementations
5252

0 commit comments

Comments
 (0)