From f46faef961934478bcfa73d5873a6e51b01d6703 Mon Sep 17 00:00:00 2001 From: weekday Date: Thu, 5 Sep 2024 01:30:00 +0000 Subject: [PATCH] Rust 1.80.1: Update references to Rust version --- benches/benches/hashing.rs | 2 +- fork_choice_control/src/mutator.rs | 4 ++-- http_api_utils/src/traits.rs | 2 +- ssz/src/merkle_tree.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benches/benches/hashing.rs b/benches/benches/hashing.rs index ca362690..8114228f 100644 --- a/benches/benches/hashing.rs +++ b/benches/benches/hashing.rs @@ -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 . // We work around that by using `PublicKeyBytes` and `SignatureBytes` instead. diff --git a/fork_choice_control/src/mutator.rs b/fork_choice_control/src/mutator.rs index ea781c8d..d3b22770 100644 --- a/fork_choice_control/src/mutator.rs +++ b/fork_choice_control/src/mutator.rs @@ -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, @@ -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; diff --git a/http_api_utils/src/traits.rs b/http_api_utils/src/traits.rs index 809484e9..349f0b6a 100644 --- a/http_api_utils/src/traits.rs +++ b/http_api_utils/src/traits.rs @@ -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; } diff --git a/ssz/src/merkle_tree.rs b/ssz/src/merkle_tree.rs index d5b79e8c..e6fd8694 100644 --- a/ssz/src/merkle_tree.rs +++ b/ssz/src/merkle_tree.rs @@ -238,7 +238,7 @@ impl> MerkleTree { // ``` // See . // - // `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();