From 47342cf971186ca1017917779b5ec3cf46bcfeff Mon Sep 17 00:00:00 2001 From: joboet Date: Tue, 11 Feb 2025 11:16:45 +0100 Subject: [PATCH] alloc: remove test of unsound specialization behaviour --- library/alloctests/tests/vec.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/library/alloctests/tests/vec.rs b/library/alloctests/tests/vec.rs index ea334ab0f143..03b82fa82440 100644 --- a/library/alloctests/tests/vec.rs +++ b/library/alloctests/tests/vec.rs @@ -2299,20 +2299,6 @@ fn test_vec_swap() { assert_eq!(n, 0); } -#[test] -fn test_extend_from_within_spec() { - #[derive(Copy)] - struct CopyOnly; - - impl Clone for CopyOnly { - fn clone(&self) -> Self { - panic!("extend_from_within must use specialization on copy"); - } - } - - vec![CopyOnly, CopyOnly].extend_from_within(..); -} - #[test] fn test_extend_from_within_clone() { let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];