cargo-clippy
cargo-clippy copied to clipboard
cargo clippy causes an ICE
cargo clippy causes an ICE: Probably rust-lang/rust#32797
I tried this:
cargo clippy
I expected to see this happen: Compilation succeeds and clippy reports issues
Instead, this happened:
Compilation started at Sat Apr 16 11:17:44
cargo clippy && cargo test
Compiling xxx v0.1.0 (file:///home/xxx/xxx/xxx/xxx)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'RefCell<T> already borrowed', ../src/libcore/cell.rs:444
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Could not compile `xxx`.
To learn more, run the command again with --verbose.
error: third party subcommand `cargo-clippy` exited unsuccessfully
To learn more, run the command again with --verbose.
Compilation exited abnormally with code 101 at Sat Apr 16 11:17:44
Meta
rustc --version --verbose:
rustc 1.9.0-nightly (2b6020723 2016-04-13)
binary: rustc
commit-hash: 2b6020723115e77ebe94f228c0c9b977b9199c6e
commit-date: 2016-04-13
host: x86_64-unknown-linux-gnu
release: 1.9.0-nightly
Same here, with:
rustc 1.10.0-nightly (ed7c56796 2016-04-17)
binary: rustc
commit-hash: ed7c56796ef17f13227a50dc1a72a018b1d5e33f
commit-date: 2016-04-17
host: x86_64-apple-darwin
release: 1.10.0-nightly
Cannot reproduce with
rustc 1.10.0-nightly (2174bd97c 2016-04-14)
binary: rustc
commit-hash: 2174bd97c1458d89a87eb2b614135d7ad68d6f18
commit-date: 2016-04-14
host: x86_64-unknown-linux-gnu
release: 1.10.0-nightly
nor
rustc 1.10.0-nightly (ed7c56796 2016-04-17)
binary: rustc
commit-hash: ed7c56796ef17f13227a50dc1a72a018b1d5e33f
commit-date: 2016-04-17
host: x86_64-unknown-linux-gnu
release: 1.10.0-nightly
I'm just doing cargo build && PATH="$PATH:$PWD/target/debug" cargo clippy -- -Wclippy_pedantic, is there something I'm missing here? cargo test also works fine though there are no tests to run.