diff options
| author | bors <bors@rust-lang.org> | 2023-03-24 06:16:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-24 06:16:24 +0000 |
| commit | c763eceae349c1d827d9cfbf5df21ca40b21c861 (patch) | |
| tree | df8f56ba15d8be04f1ed1a37e30b8848b8b39b8f /library/std/src | |
| parent | 4c0f5008ce74563873cbd8574018dbe4906a5361 (diff) | |
| parent | 2cfcca629fe53f81ab312eeabb6d0efc5151a9bd (diff) | |
| download | rust-c763eceae349c1d827d9cfbf5df21ca40b21c861.tar.gz rust-c763eceae349c1d827d9cfbf5df21ca40b21c861.zip | |
Auto merge of #109552 - matthiaskrgr:rollup-03xwois, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #109406 (Remove outdated comments) - #109433 (Return equal for two identical projections) - #109495 (Implement non-const `Destruct` trait in new solver) - #109519 (Link against libc++ on AIX) - #109550 (Make helper functions private in fn_ctxt/adjust_fulfillment_errors) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/collections/hash/set.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs index b59f89d321c..837a18bff60 100644 --- a/library/std/src/collections/hash/set.rs +++ b/library/std/src/collections/hash/set.rs @@ -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. - /// A [hash set] implemented as a `HashMap` where the value is `()`. /// /// As with the [`HashMap`] type, a `HashSet` requires that the elements |
