From 04305c05d361feebbc133196f1f5eb43a01270e9 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 2 Jun 2022 13:12:15 +0400 Subject: [PATCH] Remove `[]` <-> `()` `From` convertions ... with this convertions some tests fail :( --- library/core/src/tuple.rs | 14 -------------- 1 file changed, 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 From<()> for [T; 0] { - fn from((): ()) -> Self { - [] - } -} - -#[stable(feature = "array_tuple_conv", since = "1.63.0")] -impl From<[T; 0]> for () { - fn from([]: [T; 0]) -> Self { - () - } -}