Skip to content

[toolchain, host] Update rust toolchain for host to nightly/2025-02-01 - #30939

Merged
timothytrippel merged 1 commit into
lowRISC:earlgrey_1.0.0from
xorptr:perso_mldsa_ft_provisioning
Aug 24, 2026
Merged

[toolchain, host] Update rust toolchain for host to nightly/2025-02-01#30939
timothytrippel merged 1 commit into
lowRISC:earlgrey_1.0.0from
xorptr:perso_mldsa_ft_provisioning

Conversation

@xorptr

@xorptr xorptr commented Aug 5, 2026

Copy link
Copy Markdown

I am planning on using ml-dsa = "0.1.1" library in host tooling for benchtop provisioning tests (ft provisioning). The current rust toolchain errors out with the following message:

error[E0405]: cannot find trait `AsyncFn` in this scope
   --> external/rules_rust++crate+crate_index__signature-3.0.0/src/verifier.rs:114:37
    |
114 |     async fn verify_digest_async<F: AsyncFn(&mut D) -> Result<(), Error>>(
    |                                     ^^^^^^^ not found in this scope
    |
help: consider importing this trait
    |
3   + use core::ops::AsyncFn;
    |

To address this issue, I am updating the toolchain to nightly version 2025-02-01. AsyncFn was
merged on 2025-01-30. By trial and error, I found that the compiler stops running into that error starting with nightly 2025-02-01

I also fixed clippy warnings (raised as errors by -Dwarnings that occurred after updating the compiler toolchain

I verified the new hashes manually from rust CDN

@xorptr
xorptr requested a review from a team as a code owner August 5, 2026 22:08
@xorptr
xorptr requested review from timothytrippel and removed request for a team August 5, 2026 22:08
I am planning on using [`ml-dsa = "0.1.1"`](https://crates.io/crates/ml-dsa)
library in host tooling for benchtop provisioning tests (ft provisioning). The
current rust toolchain errors out with the following message:

```
error[E0405]: cannot find trait `AsyncFn` in this scope
   --> external/rules_rust++crate+crate_index__signature-3.0.0/src/verifier.rs:114:37
    |
114 |     async fn verify_digest_async<F: AsyncFn(&mut D) -> Result<(), Error>>(
    |                                     ^^^^^^^ not found in this scope
    |
help: consider importing this trait
    |
3   + use core::ops::AsyncFn;
    |
```

To address this issue, I am updating the toolchain to nightly version
2025-02-01. `AsyncFn` was
[merged on 2025-01-30](rust-lang/rust#135852). By trial
and error, I found that the compiler stops running into that error starting
with nightly 2025-02-01

I also fixed clippy warnings (raised as errors by `-Dwarnings` that occurred
after updating the compiler toolchain

I verified the new hashes manually from [rust
CDN](https://static.rust-lang.org/dist/2025-02-01/channel-rust-nightly.toml)

Signed-off-by: Lovepreet Singh <lpsingh@google.com>
@xorptr
xorptr force-pushed the perso_mldsa_ft_provisioning branch from 1a67557 to 4661489 Compare August 6, 2026 21:14
@xorptr
xorptr requested a review from a team as a code owner August 6, 2026 21:14
@xorptr
xorptr force-pushed the perso_mldsa_ft_provisioning branch from 4661489 to bd52ebe Compare August 6, 2026 21:20
@cfrantz

cfrantz commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The test failure //sw/device/tests/penetrationtests:sca_sha3_python_test_fpga_cw340_sival_rom_ext is not related to the content of this change.

@timothytrippel
timothytrippel merged commit a50a7fe into lowRISC:earlgrey_1.0.0 Aug 24, 2026
63 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants