Skip to content

cargo test --release fails  #6809

Closed
@matthiaskrgr

Description

@matthiaskrgr

While cargo test seems to work, cargo test --release does not (anymore):

   Compiling clippy v0.1.52 (/home/matthias/vcs/github/rust-clippy)
    Finished release [optimized] target(s) in 6.91s
     Running target/release/deps/clippy_driver-2d16f1636e113d99

running 1 test
test test_arg_value ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running target/release/deps/compile_test-8a1f0a367797563f

running 1 test
test compile_test ... FAILED

failures:

---- compile_test stdout ----
thread 'compile_test' panicked at 'Found multiple rlibs for crate `quote`: `"/home/matthias/vcs/github/rust-clippy/target/release/deps/libquote-c35bc5b02ebcb91f.rlib"` and `"/home/matthias/vcs/github/rust-clippy/target/release/deps/libquote-fd45c4f9e010e7d6.rlib"', tests/compile-test.rs:51:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    compile_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass '--test compile-test

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