Skip to content

rustc 1.37.0 panic #63783

New issue

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

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

Already on GitHub? # to your account

Closed
AxelNennker opened this issue Aug 21, 2019 · 1 comment
Closed

rustc 1.37.0 panic #63783

AxelNennker opened this issue Aug 21, 2019 · 1 comment

Comments

@AxelNennker
Copy link

While running clippy rustc panicked.

The code is here https://github.com/AxelNennker/indy-sdk/tree/vcx_clippy

To reproduce:

  • git clone https://github.com/AxelNennker/indy-sdk
  • git checkout vcx_clippy
  • cargo clippy --manifest-path vcx/libvcx/Cargo.toml -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf > /tmp/clippy.txt 2>&1

I get this output

ignisvulpis@namenlos:~/development/hyperledger/indy-sdk$ cat /tmp/clippy.txt 
    Checking libvcx v0.4.0 (/home/ignisvulpis/development/hyperledger/indy-sdk/vcx/libvcx)
warning: `...` range patterns are deprecated
  --> src/utils/libindy/error_codes.rs:19:13
   |
19 |         100 ... 111 => VcxError::from_msg(VcxErrorKind::InvalidLibindyParam, error.message),
   |             ^^^ help: use `..=` for an inclusive range
   |
   = note: #[warn(ellipsis_inclusive_range_patterns)] on by default

warning: `...` range patterns are deprecated
  --> src/utils/libindy/error_codes.rs:51:13
   |
51 |         100 ... 111 => error::INVALID_LIBINDY_PARAM.code_num,
   |             ^^^ help: use `..=` for an inclusive range

warning: returning the result of a let binding from a block
  --> src/api/wallet.rs:76:9
   |
76 |           seed
   |           ^^^^
   | 
  ::: src/utils/cstring.rs:55:9
   |
55 | /         let $x = match CStringUtils::c_str_to_string($x) {
56 | |             Ok(opt_val) => opt_val,
57 | |             Err(_) => VcxError::from_msg($e, "Invalid pointer has been passed").into()
58 | |         };
   | |__________- unnecessary let binding
   |
   = note: `-W clippy::let-and-return` implied by `-W clippy::style`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
thread 'rustc' panicked at 'byte index 8 is out of bounds of `}`', src/libcore/str/mod.rs:2017:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

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

note: rustc 1.37.0 (eae3437df 2019-08-13) running on x86_64-unknown-linux-gnu

note: compiler flags: -C debuginfo=2 -C incremental --crate-type staticlib --crate-type rlib --crate-type cdylib

note: some of the compiler flags provided by cargo are hidden

error: Could not compile `libvcx`.

To learn more, run the command again with --verbose.
@jonas-schievink
Copy link
Contributor

Duplicate of #62973, confirmed fixed on nightly

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

No branches or pull requests

2 participants