From 43fe30b2da62fdff73502677efae9249a36cb2f3 Mon Sep 17 00:00:00 2001 From: Will Papper Date: Fri, 22 Nov 2024 16:03:20 +0100 Subject: [PATCH] chore: Update toolchain to nightly-2024-09-30 This aligns the toolchain with Binius: https://gitlab.com/IrreducibleOSS/binius/-/blob/main/rust-toolchain.toml?ref_type=heads By updating the toolchain, we solve the following error: ``` cargo run --release Compiling ark-bn254 v0.4.0 Compiling binius_field v0.1.0 (https://gitlab.com/UlvetannaOSS/binius#33eab8c9) error[E0658]: use of unstable library feature 'iter_repeat_n' --> /Users/user/.cargo/git/checkouts/binius-073c6a8ffd019076/33eab8c/crates/field/src/packed.rs:225:76 | 225 | self.iter().skip(block_idx * block_len).take(block_len).flat_map(|elem| iter::repeat_n(elem, repeat)) | ^^^^^^^^^^^^^^ | = note: see issue #104434 for more information = help: add `#![feature(iter_repeat_n)]` to the crate attributes to enable = note: this compiler was built on 2024-07-31; consider upgrading it if it is out of date For more information about this error, try `rustc --explain E0658`. error: could not compile `binius_field` (lib) due to 1 previous error ``` It solves an issue with the nightly compiler version and the use of `iter::repeat_n` that was introduced three days ago: https://gitlab.com/IrreducibleOSS/binius/-/commit/0c8c49b5cf7145949d5cbd4a237cda736c0dd1d3 --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 76734e57c..2f9685f56 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-08-01" +channel = "nightly-2024-09-30" targets = ["riscv32im-unknown-none-elf"]