Skip to content

Commit

Permalink
Rust 1.80.1: Update references to Rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
weekday-grandine-io committed Sep 5, 2024
1 parent 67d03f9 commit 796a068
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benches/benches/hashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn main() {
criterion.final_summary();
}

// Arrays of arbitrary length do not implement `Default` as of Rust 1.78.0.
// Arrays of arbitrary length do not implement `Default` as of Rust 1.80.1.
// See <https://github.com/rust-lang/rust/issues/61415>.
// We work around that by using `PublicKeyBytes` and `SignatureBytes` instead.

Expand Down
4 changes: 2 additions & 2 deletions fork_choice_control/src/mutator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ where

let mut gossip_ids = vec![];

// Use `drain_filter_polyfill` because `Vec::extract_if` is not stable as of Rust 1.78.0.
// Use `drain_filter_polyfill` because `Vec::extract_if` is not stable as of Rust 1.80.1.
self.delayed_until_block.retain(|_, delayed| {
let Delayed {
blocks,
Expand Down Expand Up @@ -2105,7 +2105,7 @@ where

let mut gossip_ids = vec![];

// Use `HashMap::retain` because `HashMap::extract_if` is not stable as of Rust 1.78.0.
// Use `HashMap::retain` because `HashMap::extract_if` is not stable as of Rust 1.80.1.
self.waiting_for_checkpoint_states
.retain(|target, waiting| {
let prune = target.epoch < finalized_epoch;
Expand Down
2 changes: 1 addition & 1 deletion http_api_utils/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ pub trait ApiError {
self.sources().format(": ")
}

// `StdError::sources` is not stable as of Rust 1.78.0.
// `StdError::sources` is not stable as of Rust 1.80.1.
fn sources(&self) -> impl Iterator<Item = &dyn StdError>;
}
2 changes: 1 addition & 1 deletion ssz/src/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl<D: ArrayLength<H256>> MerkleTree<D> {
// ```
// See <https://oeis.org/A003817>.
//
// `usize::saturating_shr` does not exist as of Rust 1.78.0.
// `usize::saturating_shr` does not exist as of Rust 1.80.1.
let filled_left_subtree = usize::MAX
.checked_shr(chunk_indices.start.leading_ones())
.unwrap_or_default();
Expand Down

0 comments on commit 796a068

Please sign in to comment.