Skip to content

Commit 431ee82

Browse files
committed
alloc: remove test of unsound specialization behaviour
1 parent e7af76c commit 431ee82

File tree

1 file changed

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

1 file changed

+0
-14
lines changed

library/alloctests/tests/vec.rs

-14
Original file line numberDiff line numberDiff line change
@@ -2345,20 +2345,6 @@ fn test_vec_swap() {
23452345
assert_eq!(n, 0);
23462346
}
23472347

2348-
#[test]
2349-
fn test_extend_from_within_spec() {
2350-
#[derive(Copy)]
2351-
struct CopyOnly;
2352-
2353-
impl Clone for CopyOnly {
2354-
fn clone(&self) -> Self {
2355-
panic!("extend_from_within must use specialization on copy");
2356-
}
2357-
}
2358-
2359-
vec![CopyOnly, CopyOnly].extend_from_within(..);
2360-
}
2361-
23622348
#[test]
23632349
fn test_extend_from_within_clone() {
23642350
let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];

0 commit comments

Comments
 (0)