diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-02 13:12:15 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-05-02 14:37:40 +0000 |
| commit | 04305c05d361feebbc133196f1f5eb43a01270e9 (patch) | |
| tree | 5d8637e0753d021afb8413db9f857a9ca656642e /library/core/src | |
| parent | 4d04a062c8660d0fbbceae27a78dba201b9477a1 (diff) | |
| download | rust-04305c05d361feebbc133196f1f5eb43a01270e9.tar.gz rust-04305c05d361feebbc133196f1f5eb43a01270e9.zip | |
Remove `[]` <-> `()` `From` convertions
... with this convertions some tests fail :(
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/tuple.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/library/core/src/tuple.rs b/library/core/src/tuple.rs index ea52a1131fd..c46c49547f6 100644 --- a/library/core/src/tuple.rs +++ b/library/core/src/tuple.rs @@ -199,17 +199,3 @@ macro_rules! last_type { } tuple_impls!(E D C B A Z Y X W V U T); - -#[stable(feature = "array_tuple_conv", since = "1.63.0")] -impl<T> From<()> for [T; 0] { - fn from((): ()) -> Self { - [] - } -} - -#[stable(feature = "array_tuple_conv", since = "1.63.0")] -impl<T> From<[T; 0]> for () { - fn from([]: [T; 0]) -> Self { - () - } -} |
