code with build configurations available here https://github.com/tetrus-ai/tetrus/tree/eeaa20adb5de375b5546a987cdec5f745ab0f3dd
I don’t understand what’s going wrong - not sure where to report this either but I’ve been told you guys like to be made aware of compiler panics - it seems to be very early in the clippy run
Prerequisites
- IntelliJ IDEA
- Rust plugin for IntelliJ
- rustc v1.23.0-nightly
- clippy crate
Reproduction steps:
git clone git@github.com:tetrus-ai/tetrus.git tetrus
cd tetrus
git checkout eeaa20adb5de375b5546a987cdec5f745ab0f3dd
- open project in IntelliJ
- make sure IntelliJ recognises the cargo.toml
- run the
clippy
build configuration
My environment:
- rustc v1.23.0-nightly
- IntelliJ IDEA 2017.2.6 - Build #IU-172.4574.11
- Mac OS X 10.13.1
- clippy v0.0.174
The Output:
/Users/dancohen/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo clippy --color=always
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `/Users/dancohen/.cargo/bin/clippy-driver /Users/dancohen/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/rustc - --crate-name ___ --print=file-names --target x86_64-apple-darwin --crate-type bin --crate-type rlib` (exit code: 101)
--- stderr
error: multiple input filenames provided
thread 'rustc' panicked at 'Box<Any>', src/librustc/session/mod.rs:937:4
stack backtrace:
0: 0x110ce4cf3 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::h31f3b1463e4cac65
1: 0x110ce057c - std::sys_common::backtrace::_print::h4eaf0d8f54e16537
2: 0x110cf2d80 - std::panicking::default_hook::{{closure}}::hb9924682395150c4
3: 0x110cf2a16 - std::panicking::default_hook::ha500ef53542569df
4: 0x110cf3206 - std::panicking::rust_panic_with_hook::had0bd5a2afe1e642
5: 0x10ca1768a - std::panicking::begin_panic::ha3d783c114fd6caf
6: 0x10c6050f6 - rustc::session::early_error::h9759d66beb80d8db
7: 0x10ab92d8f - <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::no_input::h7edb6f26c62ea5ce
8: 0x10a6ebc33 - <clippy_driver::ClippyCompilerCalls as rustc_driver::CompilerCalls<'a>>::no_input::hb73f431100fdb908
9: 0x10ab8f85f - rustc_driver::run_compiler::h191fd9e677cf9716
10: 0x10a6e5775 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0b6b324d86d7394e
11: 0x10a6e5e27 - std::panicking::try::do_call::h44ebaa05464fea68
12: 0x110d00cce - __rust_maybe_catch_panic
13: 0x10a6eb740 - <F as alloc::boxed::FnBox<A>>::call_box::hb7771a61c988619b
14: 0x110cf1dcb - std::sys::imp::thread::Thread::new::thread_start::h6774aae010e52aa5
15: 0x7fff587266c0 - _pthread_body
16: 0x7fff5872656c - _pthread_start
thread 'main' panicked at 'rustc_thread failed: Any', src/libcore/result.rs:906:4
stack backtrace:
0: 0x110ce4cf3 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::h31f3b1463e4cac65
1: 0x110ce057c - std::sys_common::backtrace::_print::h4eaf0d8f54e16537
2: 0x110cf2d80 - std::panicking::default_hook::{{closure}}::hb9924682395150c4
3: 0x110cf2a16 - std::panicking::default_hook::ha500ef53542569df
4: 0x110cf3206 - std::panicking::rust_panic_with_hook::had0bd5a2afe1e642
5: 0x110cf30de - std::panicking::begin_panic::hf9382bfae32737b5
6: 0x110cf2fb2 - std::panicking::begin_panic_fmt::h385a1eb4714bf119
7: 0x110cf2f12 - rust_begin_unwind
8: 0x110d407a3 - core::panicking::panic_fmt::hbd0d8f951da7043e
9: 0x10a6eb66f - core::result::unwrap_failed::hcb6e7759c0d0f75a
10: 0x10a6ed34f - clippy_driver::main::h6576f3ac82c7caa7
11: 0x110d00cce - __rust_maybe_catch_panic
12: 0x110cf3508 - std::rt::lang_start::heb958183eb860cc9
Process finished with exit code 101