Skip to content

Commit c513c3b

Browse files
committed
Remove outdated comments
1 parent e91364b commit c513c3b

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

library/alloc/src/collections/btree/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub mod set;
1313
mod set_val;
1414
mod split;
1515

16-
#[doc(hidden)]
1716
trait Recover<Q: ?Sized> {
1817
type Key;
1918

library/alloc/src/collections/btree/set.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// This is pretty much entirely stolen from TreeSet, since BTreeMap has an identical interface
2-
// to TreeMap
3-
41
use crate::vec::Vec;
52
use core::borrow::Borrow;
63
use core::cmp::Ordering::{self, Equal, Greater, Less};
@@ -18,8 +15,6 @@ use super::Recover;
1815

1916
use crate::alloc::{Allocator, Global};
2017

21-
// FIXME(conventions): implement bounded iterators
22-
2318
/// An ordered set based on a B-Tree.
2419
///
2520
/// See [`BTreeMap`]'s documentation for a detailed discussion of this collection's performance

library/std/src/collections/hash/set.rs

-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ use crate::ops::{BitAnd, BitOr, BitXor, Sub};
1212

1313
use super::map::{map_try_reserve_error, RandomState};
1414

15-
// Future Optimization (FIXME!)
16-
// ============================
17-
//
18-
// Iteration over zero sized values is a noop. There is no need
19-
// for `bucket.val` in the case of HashSet. I suppose we would need HKT
20-
// to get rid of it properly.
21-
2215
/// A [hash set] implemented as a `HashMap` where the value is `()`.
2316
///
2417
/// As with the [`HashMap`] type, a `HashSet` requires that the elements

0 commit comments

Comments
 (0)