Skip to content

regression: crate compiles much slower with 1.82 #132064

@Nutomic

Description

@Nutomic

Our project takes much longer to compile with Rust 1.82 compared to previous versions. To reproduce, git clone https://github.com/LemmyNet/lemmy.git and run cargo check (also happens with build or lint). The problem happens specifically with the crate lemmy_db_views.

cargo check with 1.82: 6m 19s

cargo check with 1.81: 1m 22s

Version it worked on

It most recently worked on:1.81

Version with regression

rustc --version --verbose:

cargo 1.82.0 (8f40fc59f 2024-08-21)
release: 1.82.0
commit-hash: 8f40fc59fb0c8df91c97405785197f3c630304ea
commit-date: 2024-08-21
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Manjaro 24.1.1 (Xahea) [64-bit]

@rustbot modify labels: +regression-from-stable-to-1.82 -regression-untriaged

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions