Skip to content

Can't build github_graphql when using cargo clippy #15671

Description

@ada4a

Summary

I've been trying to run Clippy on https://github.com/rust-lang/triagebot, but it looks like cargo clippy gets stuck trying to build one of its internal crates, github_graphql. cargo build works just fine though.

Here are some of the things I've tried:

  • cargo clean, a lot
  • cargo clippy --exclude=github_graphql --workspace
  • extract github_graphql to a separate Cargo project -- again, build works, clippy doesn't

Maybe it chokes on the build script? It is a bit involved: it generates queries based on a GraphQL schema, which could mean a lot of macro-derived code.

Also, my laptop isn't the most powerful out there, so maybe that's the actual bottleneck. Though it is usually able to compile even larger projects, eventually.

Reproducer

I tried this:

git clone git@github.com:rust-lang/triagebot.git
cd triagebot
cargo clippy

I expected to see this happen:
Lints from all the packages or the workspace

Instead, this happened:
Lints only from parser, and then just this:

    Building [=======================> ] 375/383: github-graphql

Version

rustc 1.89.0 (29483883e 2025-08-04) (built from a source tarball)
binary: rustc
commit-hash: 29483883eed69d5fb4db01964cdf2af4d86e9cb2
commit-date: 2025-08-04
host: x86_64-unknown-linux-gnu
release: 1.89.0
LLVM version: 20.1.8

Additional Labels

No response

Activity

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

    C-bugCategory: Clippy is not doing the correct thingG-performance-projectGoal: For issues and PRs related to the Clippy Performance Project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions