Skip to content

Clippy fails at link time: Syntax error in VERSION script #1500

Closed
@ustulation

Description

@ustulation

If my crate Cargo.toml specifies:

[lib]
crate_type = ["cdylib"]

then running cargo clippy produces the above linker error. cargo clippy --profile=test , cargo build , cargo test etc. are all fine however.

You can even reproduce on an empty/minimal project. All it needs is the above lib type mentioned in the toml.

Using clippy version 0.0.99 with nightly from 17th Nov 2016 was fine. After updating to 19th Dec 2016 nightly and clippy 0.0.104 this was a problem and ever since continued to this date (with lates nightly and latest clippy - v0.0.112 at the time of writing this).

Is this known and is there any resolution planned on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions