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 |
Summary
Hi!
Between nightly-2026-08-21 and nightly-2026-08-22, the memory usage of
cargo clippyhas increased a lot. It consumes so much memory that Github Actions kills itself when runningcargo clippyon our relatively small project (https://github.com/matrix-org/matrix-rust-sdk/).Reproducer
If I put that in a table, in chronological order, with human numbers: