kennytm / cov

LLVM-GCOV Source coverage for Rust
MIT License
122 stars 10 forks source link

Assertion `GlobalList.second.size() == 1 && "Expected module's index to have one summary per GUID"' failed #17

Closed bbigras- closed 6 years ago

bbigras- commented 6 years ago

Maybe because I don't have any doc-tests.

rustc 1.23.0-nightly (02004ef78 2017-11-08) cargo-cov 0.0.2 clang version 5.0.0 (tags/RELEASE_500/final) arch linux

cargo new test-cov
cd test-cov
cargo cov clean
cargo cov test --doc
    Delegate "/home/bbigras/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "test" "--manifest-path" "/home/bbigras/dev/rust/test-cov/Cargo.toml" "--doc"
   Compiling test-cov v0.1.0 (file:///home/bbigras/dev/rust/test-cov)
rustc: /checkout/src/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:363: llvm::ModuleSummaryIndex llvm::buildModuleSummaryIndex(const llvm::Module&, std::function<llvm::BlockFrequencyInfo*(const llvm::Function&)>, llvm::ProfileSummaryInfo*): Assertion `GlobalList.second.size() == 1 && "Expected module's index to have one summary per GUID"' failed.
error: rustc exited with signal: 6
error: Could not compile `test-cov`.

To learn more, run the command again with --verbose.
error: cargo exited with exit code: 101
kennytm commented 6 years ago

The error comes from rustc, so I think you should report to https://github.com/rust-lang/rust/issues/ instead :(