From 10eae855bc5b9a9dd286f5a38c9faeb55ff96a3a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 27 Mar 2025 09:30:14 -0700 Subject: [PATCH] Test cleanup: remove old todo and duplicate test (#5198) The todo_fail_specialization_written_after_use_is_poisoned.carbon has a similar test in impl/lookup/min_prelude/specialization_poison.carbon now. --- .../lookup/min_prelude/specialization.carbon | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/toolchain/check/testdata/impl/lookup/min_prelude/specialization.carbon b/toolchain/check/testdata/impl/lookup/min_prelude/specialization.carbon index 1bffe6d77131..c7b743f2c71c 100644 --- a/toolchain/check/testdata/impl/lookup/min_prelude/specialization.carbon +++ b/toolchain/check/testdata/impl/lookup/min_prelude/specialization.carbon @@ -183,8 +183,6 @@ fn F() { // The specialization of `Z(C)` should match in preference to the blanket // impls of `Z(T)`. If a blanket impl is chosen, then `a` will have type `()` // which will fail to typecheck here when constructed from a `C` value. - // - // TODO: C(T) is C(()) so this should work? let a: C(()).(Z(()).X) = {} as C(()); } @@ -309,26 +307,6 @@ fn F() { let a: C(()).(Z.X) = {} as C(()); } -// --- todo_fail_specialization_written_after_use_is_poisoned.carbon -library "[[@TEST_NAME]]"; - -interface Z(T:! type) { - let X:! type; -} - -class C {} - -impl forall [T:! type] T as Z(T) where .X = () {} - -fn F() { - let a: C.(Z(C).X) = (); -} - -// TODO: This impl changes the result of a previous lookup. The previous lookup -// should have created a poison value that this trips and thus generates a -// diagnostic. -impl C as Z(C) where .X = C {} - // --- fail_todo_final_specialization_before_generic_use_of_type_constant.carbon library "[[@TEST_NAME]]";