Skip to content

build failure #5859

@matthiaskrgr

Description

@matthiaskrgr
Member

cargo check --features generic-simd

error: expected one of `!` or `::`, found keyword `mod`
   --> /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.7/src/lib.rs:347:7
    |
347 | crate mod llvm {
    |       ^^^ expected one of `!` or `::`

error: could not compile `packed_simd_2` (lib) due to previous error

Activity

calebcartwright

calebcartwright commented on Jul 25, 2023

@calebcartwright
Member

Could you add a little more context please? It's unclear how this relates to rustfmt from the initial issue description

matthiaskrgr

matthiaskrgr commented on Jul 25, 2023

@matthiaskrgr
MemberAuthor

sorry, rustfmt has a feature "generic-simd" that fails the rustfmt build when it is enabled.

This was found because we run clippy on rustfmt in our CI with --all-targets --all-features.

repro:

git clone https://github.com/rust-lang/rustfmt/
cd rustfmt
cargo check   --features generic-simd
added a commit that references this issue on Jul 26, 2023
ytmimi

ytmimi commented on Aug 2, 2023

@ytmimi
Contributor

Confirming I'm able to reproduce this. I'm also pretty sure it's related to llogiq/bytecount#64. I think Bumping the version of bytecount would solve the problem 🤞🏼

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @matthiaskrgr@calebcartwright@ytmimi

      Issue actions

        build failure · Issue #5859 · rust-lang/rustfmt