Skip to content

Commit 47342cf

Browse files
committed
alloc: remove test of unsound specialization behaviour
1 parent e4e765b commit 47342cf

File tree

1 file changed

+0
-14
lines changed
  • library/alloctests/tests

1 file changed

+0
-14
lines changed

library/alloctests/tests/vec.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,20 +2299,6 @@ fn test_vec_swap() {
22992299
assert_eq!(n, 0);
23002300
}
23012301

2302-
#[test]
2303-
fn test_extend_from_within_spec() {
2304-
#[derive(Copy)]
2305-
struct CopyOnly;
2306-
2307-
impl Clone for CopyOnly {
2308-
fn clone(&self) -> Self {
2309-
panic!("extend_from_within must use specialization on copy");
2310-
}
2311-
}
2312-
2313-
vec![CopyOnly, CopyOnly].extend_from_within(..);
2314-
}
2315-
23162302
#[test]
23172303
fn test_extend_from_within_clone() {
23182304
let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];

0 commit comments

Comments
 (0)