Skip to content

v1.0.52 update causing constant recompilation #270

Closed

Description

@Turbo87

After merging rust-lang/crates.io#7808 I noticed that some dependencies started to recompile for every build. I just ran a git bisect session and could reproduce the issue:

Bildschirmfoto 2023-12-28 um 11 59 54

I assume this is most likely related to:

Activity

  1. Turbo87 commented on Dec 28, 2023

    @Turbo87
    Author

    It looks like anyhow v1.0.77 is causing similar issues

  2. dtolnay commented on Dec 28, 2023

    @dtolnay
    Owner

    How can I reproduce this? I ran cargo check --workspace in rust-lang/crates.io twice and nothing got recompiled, at rust-lang/crates.io@95236c5 which is before the 2 revert commits.

  3. Turbo87 commented on Dec 28, 2023

    @Turbo87
    Author

    hmm, I noticed it while running tests from within IntelliJ. I'll try and reproduce it on the command line once I'm back on the computer tomorrow.

  4. Turbo87 commented on Dec 29, 2023

    @Turbo87
    Author

    looks like IntelliJ is more or less at fault here... when running the test suite inside of IntelliJ it is first compiling the test code via:

    cargo test --color=always --no-run --package crates_io --lib rate_limiter::tests
    

    and then running the tests with:

    cargo test --color=always --package crates_io --lib rate_limiter::tests --no-fail-fast -- --format=json -Z unstable-options --show-output
    

    if I try to run the latter on the CLI outside of IntelliJ I get:

    error: the option `Z` is only accepted on the nightly compiler
    error: test failed, to rerun pass `-p crates_io --lib`
    error: 1 target failed:
        `-p crates_io --lib`
    

    so I guess IntelliJ might be using RUSTC_BOOTSTRAP to enable usage of -Z unstable-options on the stable compiler 🙈

  5. Turbo87 commented on Dec 29, 2023

    @Turbo87
    Author
  6. dtolnay commented on Dec 29, 2023

    @dtolnay
    Owner

    Good catch. I commented on the RustRover issue tracker with my suggested fix.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions