Skip to content

-Zthreads causes cycle errors in previously passing code #122407

Open
@matthiaskrgr

Description

@matthiaskrgr
cargo new t
cd t
cargo add ppv-lite86
RUSTFLAGS="-Zthreads=16" ~/.cargo/bin/cargo +master build
   Compiling ppv-lite86 v0.2.17
error[E0391]: cycle detected when type-checking `x86_64::sse2::<impl at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.1>
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86_64/sse2.rs:290:9
    |
290 |         fn $name(self) -> Self {
    |         ^^^^^^^^^^^^^^^^^^^^^^
...
313 |     rotr_128!(rotate_each_word_right32, 32);
    |     --------------------------------------- in this macro invocation
    |
note: ...which requires evaluating type-level constant...
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86_64/sse2.rs:294:21
    |
294 |                     _mm_slli_si128(self.x, 128 - $i as i32),
    |                     ^^^^^^^^^^^^^^
...
313 |     rotr_128!(rotate_each_word_right32, 32);
    |     --------------------------------------- in this macro invocation
note: ...which requires const-evaluating + checking `x86_64::sse2::<impl at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0>
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86_64/sse2.rs:294:21
    |
294 |                     _mm_slli_si128(self.x, 128 - $i as i32),
    |                     ^^^^^^^^^^^^^^
...
313 |     rotr_128!(rotate_each_word_right32, 32);
    |     --------------------------------------- in this macro invocation
note: ...which requires caching mir of `x86_64::sse2::<impl at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86>
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86_64/sse2.rs:294:21
    |
294 |                     _mm_slli_si128(self.x, 128 - $i as i32),
    |                     ^^^^^^^^^^^^^^
...
313 |     rotr_128!(rotate_each_word_right32, 32);
    |     --------------------------------------- in this macro invocation
note: ...which requires elaborating drops for `x86_64::sse2::<impl at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/>
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ppv-lite86-0.2.17/src/x86_64/sse2.rs:294:21
    |
294 |                     _mm_slli_si128(self.x, 128 - $i as i32),
    |                     ^^^^^^^^^^^^^^
...
313 |     rotr_128!(rotate_each_word_right32, 32);
...
...
...
...
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parallel-compilerArea: parallel compilerC-bugCategory: This is a bug.I-cycleIssue: A query cycle occurred while none was expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions