Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo clippy causes an ICE #19

Open
plumenator opened this issue Apr 16, 2016 · 2 comments
Open

cargo clippy causes an ICE #19

plumenator opened this issue Apr 16, 2016 · 2 comments

Comments

@plumenator
Copy link

plumenator commented Apr 16, 2016

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
@txus
Copy link

txus commented Apr 19, 2016

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

@arcnmx
Copy link
Owner

arcnmx commented Apr 19, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants