[INFO] updating cached repository llambda/jwt-secret-finder [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/llambda/jwt-secret-finder [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/llambda/jwt-secret-finder" "work/ex/clippy-test-run/sources/stable/gh/llambda/jwt-secret-finder"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/llambda/jwt-secret-finder'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/llambda/jwt-secret-finder" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/llambda/jwt-secret-finder"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/llambda/jwt-secret-finder'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] b3ab039cdf9ae17ecb3901b069883d972d612b4d [INFO] sha for GitHub repo llambda/jwt-secret-finder: b3ab039cdf9ae17ecb3901b069883d972d612b4d [INFO] validating manifest of llambda/jwt-secret-finder on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of llambda/jwt-secret-finder on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing llambda/jwt-secret-finder [INFO] finished frobbing llambda/jwt-secret-finder [INFO] frobbed toml for llambda/jwt-secret-finder written to work/ex/clippy-test-run/sources/stable/gh/llambda/jwt-secret-finder/Cargo.toml [INFO] started frobbing llambda/jwt-secret-finder [INFO] finished frobbing llambda/jwt-secret-finder [INFO] frobbed toml for llambda/jwt-secret-finder written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/llambda/jwt-secret-finder/Cargo.toml [INFO] crate llambda/jwt-secret-finder has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting llambda/jwt-secret-finder against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/llambda/jwt-secret-finder:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] ac94c7cfa381ee94e209e2143657a8e182f1619ce17feee012fffd75a6d8ad6f [INFO] running `"docker" "start" "-a" "ac94c7cfa381ee94e209e2143657a8e182f1619ce17feee012fffd75a6d8ad6f"` [INFO] [stderr] Compiling ryu v0.2.5 [INFO] [stderr] Compiling serde v1.0.74 [INFO] [stderr] Compiling ring v0.13.2 [INFO] [stderr] Checking base64 v0.9.2 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking rust-crypto v0.2.36 [INFO] [stderr] Compiling structopt-derive v0.2.10 [INFO] [stderr] Compiling serde_derive v1.0.74 [INFO] [stderr] Checking structopt v0.2.10 [INFO] [stderr] Checking serde_json v1.0.26 [INFO] [stderr] Checking jsonwebtoken v5.0.0 [INFO] [stderr] Checking jwtc v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0425]: cannot find function `check` in this scope [INFO] [stderr] --> src/main.rs:159:20 [INFO] [stderr] | [INFO] [stderr] 159 | assert_eq!(check(&presented_signature, &message_to_encrypt, "Sn1f".to_string().as_bytes()), true); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/main.rs:137:9 [INFO] [stderr] | [INFO] [stderr] 137 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:45:40 [INFO] [stderr] | [INFO] [stderr] 45 | let parts: Vec<&str> = token.split(".").collect(); [INFO] [stderr] | ^^^ help: try using a char instead: `'.'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:75:74 [INFO] [stderr] | [INFO] [stderr] 75 | fn get_words(alphabet_str: &str, max_length: usize, presented_signature: &Vec, data_to_sign: &str) -> Vec> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] help: change this to [INFO] [stderr] | [INFO] [stderr] 75 | fn get_words(alphabet_str: &str, max_length: usize, presented_signature: &[u8], data_to_sign: &str) -> Vec> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: change `presented_signature.clone()` to [INFO] [stderr] | [INFO] [stderr] 108| let presented_signature = presented_signature.to_owned(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: slow zero-filling initialization [INFO] [stderr] --> src/main.rs:114:21 [INFO] [stderr] | [INFO] [stderr] 113 | let mut raw = Vec::with_capacity(32); [INFO] [stderr] | ---------------------- help: consider replace allocation with: `vec![0; 32]` [INFO] [stderr] 114 | raw.resize(32, 0); // sha256 produces 256bits, or 32 bytes. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::slow_vector_initialization)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0425`. [INFO] [stderr] error: Could not compile `jwtc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "ac94c7cfa381ee94e209e2143657a8e182f1619ce17feee012fffd75a6d8ad6f"` [INFO] running `"docker" "rm" "-f" "ac94c7cfa381ee94e209e2143657a8e182f1619ce17feee012fffd75a6d8ad6f"` [INFO] [stdout] ac94c7cfa381ee94e209e2143657a8e182f1619ce17feee012fffd75a6d8ad6f