Skip to content

Commit 591e740

Browse files
0xVolosnikovperekopskiy
authored andcommitted
Bump the toolchain to nightly-2026-01-22
1 parent 214d957 commit 591e740

File tree

30 files changed

+94
-325
lines changed

30 files changed

+94
-325
lines changed

basic_bootloader/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![feature(allocator_api)]
33
#![allow(incomplete_features)]
44
#![feature(generic_const_exprs)]
5-
#![feature(array_chunks)]
65
#![feature(get_mut_unchecked)]
76
#![feature(const_type_id)]
87
#![feature(vec_push_within_capacity)]

basic_system/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![allow(incomplete_features)]
33
#![feature(generic_const_exprs)]
44
#![feature(allocator_api)]
5-
#![feature(array_chunks)]
65
#![feature(get_mut_unchecked)]
76
#![feature(const_type_id)]
87
#![feature(vec_push_within_capacity)]

basic_system/src/system_functions/bn254_ecmul.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn bn254_ecmul_as_system_function_inner<
5454
*dst = *src;
5555
}
5656

57-
let mut it = buffer.array_chunks::<32>();
57+
let mut it = buffer.as_chunks::<32>().0.iter();
5858
let serialized_result = unsafe {
5959
let x0 = it.next().unwrap_unchecked();
6060
let y0 = it.next().unwrap_unchecked();

basic_system/src/system_functions/bn254_pairing_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn bn254_pairing_check_inner<A: Allocator>(
8585
for (dst, src) in buffer.iter_mut().zip(&mut src_iter) {
8686
*dst = *src;
8787
}
88-
let mut it = buffer.array_chunks::<32>();
88+
let mut it = buffer.as_chunks::<32>().0.iter();
8989
unsafe {
9090
let mut g1_x = *it.next().unwrap_unchecked();
9191
let mut g1_y = *it.next().unwrap_unchecked();

basic_system/src/system_functions/ecrecover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn ecrecover_as_system_function_inner<
5252

5353
// follow https://github.com/ethereum/go-ethereum/blob/aadcb886753079d419f966a3bc990f708f8d1c3b/core/vm/contracts.go#L188
5454

55-
let mut it = buffer.array_chunks::<32>();
55+
let mut it = buffer.as_chunks::<32>().0.iter();
5656
let recovered_pubkey_bytes = unsafe {
5757
let digest = it.next().unwrap_unchecked();
5858
let v = it.next().unwrap_unchecked();

basic_system/src/system_functions/p256_verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn p256_verify_as_system_function_inner<
7070
*dst = *src;
7171
}
7272

73-
let mut it = buffer.array_chunks::<32>();
73+
let mut it = buffer.as_chunks::<32>().0.iter();
7474
let is_valid = unsafe {
7575
let digest = it.next().unwrap_unchecked();
7676
let r = it.next().unwrap_unchecked();

basic_system/src/system_implementation/system/da_commitment_generator/blob_commitment_generator/commitment_and_proof_advice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ impl UsizeSerializable for KZGCommitmentAndProof {
2121
} else {
2222
#[allow(clippy::needless_return)]
2323
return ExactSizeChain::new(
24-
self.commitment.array_chunks::<{ core::mem::size_of::<usize>() }>().map(|chunk| usize::from_le_bytes(*chunk)),
25-
self.proof.array_chunks::<{ core::mem::size_of::<usize>() }>().map(|chunk| usize::from_le_bytes(*chunk)),
24+
self.commitment.as_chunks::<{ core::mem::size_of::<usize>() }>().0.iter().map(|chunk| usize::from_le_bytes(*chunk)),
25+
self.proof.as_chunks::<{ core::mem::size_of::<usize>() }>().0.iter().map(|chunk| usize::from_le_bytes(*chunk)),
2626
);
2727
}
2828
);

basic_system/src/system_implementation/system/da_commitment_generator/blob_commitment_generator/polynomial_evaluation.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ pub fn evaluate_blob_polynomial(data: &[u8], x: &crypto::bls12_381::Fr) -> crypt
1616
[MaybeUninit::uninit(); ELEMENTS_PER_4844_BLOB];
1717
let mut poly_iter = poly.iter_mut();
1818

19-
let chunks = data.array_chunks::<BLOB_CHUNK_SIZE>();
20-
let remainder = chunks.remainder();
19+
let (chunks, remainder) = data.as_chunks::<BLOB_CHUNK_SIZE>();
2120
for chunk in chunks {
2221
poly_iter
2322
.next()

callable_oracles/src/hash_to_prime/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub fn create_entropy(source: &[u8]) -> [u8; 64] {
203203
use crypto::blake2s::Blake2s256;
204204
assert!(MAX_ENTROPY_BYTES <= 64);
205205
let mut entropy = [0u8; 64];
206-
for (idx, dst) in entropy.array_chunks_mut::<32>().enumerate() {
206+
for (idx, dst) in entropy.as_chunks_mut::<32>().0.iter_mut().enumerate() {
207207
let mut hasher = Blake2s256::new();
208208
hasher.update(&(idx as u32).to_le_bytes());
209209
hasher.update(&source);

callable_oracles/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![cfg_attr(all(not(feature = "evaluate"), not(test)), no_std)]
22
#![allow(incomplete_features)]
33
#![feature(generic_const_exprs)]
4-
#![feature(array_chunks)]
5-
#![feature(iter_array_chunks)]
64
#![allow(clippy::new_without_default)]
75
#![allow(clippy::needless_lifetimes)]
86
#![allow(clippy::needless_borrow)]

0 commit comments

Comments
 (0)