diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-20 16:39:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 16:39:59 +0200 |
| commit | c1cad7028293095053a278583ad594e4a5bfeacf (patch) | |
| tree | ad5f5d5b801e0d7984db4c81e688ffb140c22452 /src/liballoc/tests | |
| parent | 96b86ea1a8989352798e6145fbb7c150470bc5c0 (diff) | |
| parent | 1e6e082039a52c03a2ca93c0483e86b3c7f67af4 (diff) | |
| download | rust-c1cad7028293095053a278583ad594e4a5bfeacf.tar.gz rust-c1cad7028293095053a278583ad594e4a5bfeacf.zip | |
Rollup merge of #73539 - LukasKalbertodt:deprecate-vec-remove-item, r=Mark-Simulacrum
Deprecate `Vec::remove_item` In #40062 we decided to remove that method. In #71834 it was said that we want to deprecate it for a few cycles before removing it. That's what this PR does.
Diffstat (limited to 'src/liballoc/tests')
| -rw-r--r-- | src/liballoc/tests/lib.rs | 1 | ||||
| -rw-r--r-- | src/liballoc/tests/vec.rs | 15 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index f3da46bd0cc..e2dc816b015 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -12,7 +12,6 @@ #![feature(associated_type_bounds)] #![feature(binary_heap_into_iter_sorted)] #![feature(binary_heap_drain_sorted)] -#![feature(vec_remove_item)] #![feature(split_inclusive)] #![feature(binary_heap_retain)] diff --git a/src/liballoc/tests/vec.rs b/src/liballoc/tests/vec.rs index a9813a8704f..baa02b8997f 100644 --- a/src/liballoc/tests/vec.rs +++ b/src/liballoc/tests/vec.rs @@ -132,21 +132,6 @@ fn test_extend_ref() { } #[test] -fn test_remove_item() { - let mut v = vec![1, 2, 3]; - v.remove_item(&1); - - assert_eq!(v.len(), 2); - assert_eq!(v, [2, 3]); - - let mut w = vec![1, 2, 3]; - w.remove_item(&4); - - assert_eq!(w.len(), 3); - w.remove_item(&4); -} - -#[test] fn test_slice_from_mut() { let mut values = vec![1, 2, 3, 4, 5]; { |
