-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
clippy-driver
crashes without arguments (index out of bounds)
#4716
Comments
Could you try running the command with |
@phansch it crashes without any code. It's not a lint but rather |
It must be this line: Line 302 in 1d0f625
|
clippy-driver
crashes without arguments (index out of bounds)
What @mati865 says, just running it in an empty directory without any arguments. I can get you a full backtrace tomorrow morning, as needed. |
Yeah, we should probably check if there is any arg in |
Full backtrace: % RUST_BACKTRACE=full clippy-driver
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/slice/mod.rs:2715:10
stack backtrace:
0: 0x10b3f5c92 - std::panicking::default_hook::{{closure}}::h3f994bbc901f9889
1: 0x10b3f595d - std::panicking::default_hook::h6c261b7dad1af707
2: 0x10b3f6470 - std::panicking::rust_panic_with_hook::hd3c20890ac648923
3: 0x10b3f5fad - std::panicking::continue_panic_fmt::hf444d349a369432b
4: 0x10b3f5e99 - rust_begin_unwind
5: 0x10b421c12 - core::panicking::panic_fmt::h7bf9e431fd27d405
6: 0x10b421bc9 - core::panicking::panic_bounds_check::h945cc15e7a0d27ba
7: 0x10ad9f3b3 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hd67d0aeef970b729
8: 0x10ad8f15e - std::panicking::try::do_call::h11c6ee48236c5b67
9: 0x10b4057cf - __rust_maybe_catch_panic
10: 0x10ad88e12 - rustc_driver::report_ices_to_stderr_if_any::h67c06ffbfebe6f4c
11: 0x10ad9ca9e - clippy_driver::main::h2220a55246cb76db
12: 0x10ad8f146 - std::rt::lang_start::{{closure}}::h61b9bee55274c3f2
13: 0x10b3f5e18 - std::panicking::try::do_call::h8ffcb2a43dbb732c
14: 0x10b4057cf - __rust_maybe_catch_panic
15: 0x10b3f68ee - std::rt::lang_start_internal::ha688fd553625ef6f
16: 0x10ad9cad9 - main
error: internal compiler error: unexpected panic |
Ran
clippy-driver
without parameters and got an ICE.I tried this code:
I expected to see this happen: See some help output
Instead, this happened: received an ICE
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: