Skip to content

Commit

Permalink
./x miri: fix sysroot build
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and gitbot committed Feb 20, 2025
1 parent e450fe4 commit ecd9b26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ use crate::ops::Index;
/// As explained above, `HashMap` is randomly seeded: each `HashMap` instance uses a different seed,
/// which means that `HashMap::new` cannot be used in const context. To construct a `HashMap` in the
/// initializer of a `const` or `static` item, you will have to use a different hasher that does not
/// involve a random seed, as demonstrated in the following example. **`HashMap` constructed this
/// way are not resistant against HashDoS!**
/// involve a random seed, as demonstrated in the following example. **A `HashMap` constructed this
/// way is not resistant against HashDoS!**
///
/// ```rust
/// use std::collections::HashMap;
Expand Down
4 changes: 2 additions & 2 deletions std/src/collections/hash/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ use crate::ops::{BitAnd, BitOr, BitXor, Sub};
/// Like `HashMap`, `HashSet` is randomly seeded: each `HashSet` instance uses a different seed,
/// which means that `HashSet::new` cannot be used in const context. To construct a `HashSet` in the
/// initializer of a `const` or `static` item, you will have to use a different hasher that does not
/// involve a random seed, as demonstrated in the following example. **`HashSet` constructed this
/// way are not resistant against HashDoS!**
/// involve a random seed, as demonstrated in the following example. **A `HashSet` constructed this
/// way is not resistant against HashDoS!**
///
/// ```rust
/// use std::collections::HashSet;
Expand Down

0 comments on commit ecd9b26

Please sign in to comment.