Skip to content

Binaries in syntax/fuzz fail to build #21730

@hackhaslam

Description

@hackhaslam

Running cargo check in that directory fails with:

error: failed to parse manifest at `/path/to/rust-analyzer/crates/syntax/fuzz/Cargo.toml`

Caused by:
  error inheriting `lints` from workspace root manifest's `workspace.lints`

Caused by:
  `workspace.lints` was not defined

It looks like it's meant to be its own workspace, but tries to inherit from the root workspace. I guess what happened was that the commit that added the lint logic didn't notice that this manifest is its own workspace and can't inherit lint rules.

FWIW, I'm not actually interested in the fuzz binaries. This just showed up in a rust-analyzer-based static analysis tool that panics with a similar error message on these files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions