Skip to content

future_not_send using excessive amounts of memory causing OOMs on matrix-sdk under the next trait solver #17812

Description

@Hywan

Summary

Hi!

Between nightly-2026-08-21 and nightly-2026-08-22, the memory usage of cargo clippy has increased a lot. It consumes so much memory that Github Actions kills itself when running cargo clippy on our relatively small project (https://github.com/matrix-org/matrix-rust-sdk/).

Reproducer

$ # last nightly (2026-09-28)
$ /usr/bin/time -l rustup run nightly cargo clippy --all-targets --features testing -- -D warnings
[snip]
          3980197888  maximum resident set size

$ # nightly 2026-09-07
$ /usr/bin/time -l rustup run nightly-2026-09-07 cargo clippy --all-targets --features testing -- -D warnings
[snip]
          4348116992  maximum resident set size

$ # nightly 2026-08-22
$ /usr/bin/time -l rustup run nightly-2026-08-22 cargo clippy --all-targets --features testing -- -D warnings
[snip]
          3875028992  maximum resident set size

$ # nightly 2026-08-21
$ /usr/bin/time -l rustup run nightly-2026-08-21 cargo clippy --all-targets --features testing -- -D warnings
[snip]
          1875853312  maximum resident set size

If I put that in a table, in chronological order, with human numbers:

nightly date maximum resident set size
08-21 1.87Gb
08-22 3.88Gb
09-07 4.34Gb
09-28 3.98Gb

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: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.I-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️L-nurseryLint: Currently in the nursery group

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions