Skip to content

new trait solver regression in amaru-pure-stage library #161658

Description

@rkuhn

Compiling amaru-pure-stage fails with the following error message on nightly-2026-08-22:

error[E0275]: overflow evaluating the requirement `impl futures_util::Future<Output = ()>: std::marker::Send`
   --> crates/amaru-pure-stage/src/tokio.rs:515:47
    |
515 |                     let handle = tokio::spawn(stage);
    |                                  ------------ ^^^^^
    |                                  |
    |                                  required by a bound introduced by this call
    |
note: required by a bound in `tokio::spawn`
   --> /Users/rkuhn/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.53.1/src/task/spawn.rs:176:21
    |
174 |     pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
    |            ----- required by a bound in this function
175 |     where
176 |         F: Future + Send + 'static,
    |                     ^^^^ required by this bound in `spawn`

It does not fail with RUSTFLAGS=-Znext-solver=coherence or on nightly-2026-08-21 (no matter which solver).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-typesRelevant to the types team, which will review and decide on the PR/issue.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions