-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove outdated comments #109406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "\u{1F95B}"
Remove outdated comments #109406
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ pub mod set; | |
mod set_val; | ||
mod split; | ||
|
||
#[doc(hidden)] | ||
trait Recover<Q: ?Sized> { | ||
type Key; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// This is pretty much entirely stolen from TreeSet, since BTreeMap has an identical interface | ||
// to TreeMap | ||
|
||
use crate::vec::Vec; | ||
use core::borrow::Borrow; | ||
use core::cmp::Ordering::{self, Equal, Greater, Less}; | ||
|
@@ -18,8 +15,6 @@ use super::Recover; | |
|
||
use crate::alloc::{Allocator, Global}; | ||
|
||
// FIXME(conventions): implement bounded iterators | ||
|
||
Comment on lines
-21
to
-22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this refers |
||
/// An ordered set based on a B-Tree. | ||
/// | ||
/// See [`BTreeMap`]'s documentation for a detailed discussion of this collection's performance | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,6 @@ use crate::ops::{BitAnd, BitOr, BitXor, Sub}; | |
|
||
use super::map::{map_try_reserve_error, RandomState}; | ||
|
||
// Future Optimization (FIXME!) | ||
// ============================ | ||
// | ||
// Iteration over zero sized values is a noop. There is no need | ||
// for `bucket.val` in the case of HashSet. I suppose we would need HKT | ||
// to get rid of it properly. | ||
|
||
Comment on lines
-15
to
-21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was added way before hashbrown. Now this doesn't make any sense. |
||
/// A [hash set] implemented as a `HashMap` where the value is `()`. | ||
/// | ||
/// As with the [`HashMap`] type, a `HashSet` requires that the elements | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was written while we still had
TreeSet
apparently, not it's just confusing.