diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-02-09 01:36:22 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-02-09 01:36:22 +0900 |
| commit | 3e2b5a4b08d9647f7438f4e945d4c8b37c36a58c (patch) | |
| tree | 72ebf2fe2dd1821c3775916565ab37aee21b019d /src/librustc_data_structures/bit_set.rs | |
| parent | 43e04fb5522642b6b5230592934e9ee100f2fd56 (diff) | |
| download | rust-3e2b5a4b08d9647f7438f4e945d4c8b37c36a58c.tar.gz rust-3e2b5a4b08d9647f7438f4e945d4c8b37c36a58c.zip | |
librustc_data_structures => 2018
Diffstat (limited to 'src/librustc_data_structures/bit_set.rs')
| -rw-r--r-- | src/librustc_data_structures/bit_set.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_data_structures/bit_set.rs b/src/librustc_data_structures/bit_set.rs index 8adfe3749af..05d2185ae69 100644 --- a/src/librustc_data_structures/bit_set.rs +++ b/src/librustc_data_structures/bit_set.rs @@ -1,4 +1,4 @@ -use indexed_vec::{Idx, IndexVec}; +use crate::indexed_vec::{Idx, IndexVec}; use smallvec::SmallVec; use std::fmt; use std::iter; @@ -208,7 +208,7 @@ impl<T: Idx> SubtractFromBitSet<T> for BitSet<T> { } impl<T: Idx> fmt::Debug for BitSet<T> { - fn fmt(&self, w: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, w: &mut fmt::Formatter<'_>) -> fmt::Result { w.debug_list() .entries(self.iter()) .finish() @@ -366,7 +366,7 @@ impl<T: Idx> SparseBitSet<T> { dense } - fn iter(&self) -> slice::Iter<T> { + fn iter(&self) -> slice::Iter<'_, T> { self.elems.iter() } } @@ -536,7 +536,7 @@ impl<T: Idx> HybridBitSet<T> { } } - pub fn iter(&self) -> HybridIter<T> { + pub fn iter(&self) -> HybridIter<'_, T> { match self { HybridBitSet::Sparse(sparse) => HybridIter::Sparse(sparse.iter()), HybridBitSet::Dense(dense) => HybridIter::Dense(dense.iter()), |
