diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
commit | 837b550238aa671a591ccf282dddeab29cadb206 (patch) | |
tree | 914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/litemap/tests | |
parent | Adding debian version 1.70.0+dfsg2-1. (diff) | |
download | rustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz rustc-837b550238aa671a591ccf282dddeab29cadb206.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/litemap/tests')
-rw-r--r-- | vendor/litemap/tests/store.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/litemap/tests/store.rs b/vendor/litemap/tests/store.rs index 0cc8792f8..bd28bee96 100644 --- a/vendor/litemap/tests/store.rs +++ b/vendor/litemap/tests/store.rs @@ -52,6 +52,13 @@ impl<K, V> Store<K, V> for VecWithDefaults<(K, V)> { } } +impl<K: Ord, V> StoreFromIterable<K, V> for VecWithDefaults<(K, V)> { + fn lm_sort_from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self { + let v: Vec<_> = Vec::lm_sort_from_iter(iter); + Self(v) + } +} + impl<K, V> StoreMut<K, V> for VecWithDefaults<(K, V)> { #[inline] fn lm_with_capacity(capacity: usize) -> Self { |