[INFO] crate protocols 0.0.1 is already in cache [INFO] extracting crate protocols 0.0.1 into work/ex/clippy-test-run/sources/stable/reg/protocols/0.0.1 [INFO] extracting crate protocols 0.0.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/protocols/0.0.1 [INFO] validating manifest of protocols-0.0.1 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 protocols-0.0.1 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 protocols-0.0.1 [INFO] finished frobbing protocols-0.0.1 [INFO] frobbed toml for protocols-0.0.1 written to work/ex/clippy-test-run/sources/stable/reg/protocols/0.0.1/Cargo.toml [INFO] started frobbing protocols-0.0.1 [INFO] finished frobbing protocols-0.0.1 [INFO] frobbed toml for protocols-0.0.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/protocols/0.0.1/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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 protocols-0.0.1 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/protocols/0.0.1:/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] 7509f2755283e88ded4958e48a0ebfd8aa04ad4a6c3e24b156f9ba927a57a65d [INFO] running `"docker" "start" "-a" "7509f2755283e88ded4958e48a0ebfd8aa04ad4a6c3e24b156f9ba927a57a65d"` [INFO] [stderr] Checking signals v0.0.2 [INFO] [stderr] Checking protocols v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `pluginmanager::PluginManager` [INFO] [stderr] --> src/pluginmanager.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | / pub fn new() -> Self { [INFO] [stderr] 87 | | PluginManager { [INFO] [stderr] 88 | | map: Arc::new(Mutex::new(HashMap::new())), [INFO] [stderr] 89 | | } [INFO] [stderr] 90 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:102:28 [INFO] [stderr] | [INFO] [stderr] 102 | hash_map.get(hash).ok_or(format_err!("Hash {} does not exist!", hash))?.generate_message(template_name) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!("Hash {} does not exist!", hash))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:123:41 [INFO] [stderr] | [INFO] [stderr] 123 | let plugin = hash_map.get(hash).ok_or(format_err!("Hash {} does not exist!", hash))?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!("Hash {} does not exist!", hash))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:150:44 [INFO] [stderr] | [INFO] [stderr] 150 | match path.file_name().ok_or(format_err!(r#"Filename is "None""#)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!(r#"Filename is "None""#))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `pluginmanager::PluginManager` [INFO] [stderr] --> src/pluginmanager.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | / pub fn new() -> Self { [INFO] [stderr] 87 | | PluginManager { [INFO] [stderr] 88 | | map: Arc::new(Mutex::new(HashMap::new())), [INFO] [stderr] 89 | | } [INFO] [stderr] 90 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:102:28 [INFO] [stderr] | [INFO] [stderr] 102 | hash_map.get(hash).ok_or(format_err!("Hash {} does not exist!", hash))?.generate_message(template_name) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!("Hash {} does not exist!", hash))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:123:41 [INFO] [stderr] | [INFO] [stderr] 123 | let plugin = hash_map.get(hash).ok_or(format_err!("Hash {} does not exist!", hash))?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!("Hash {} does not exist!", hash))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `ok_or` followed by a function call [INFO] [stderr] --> src/pluginmanager.rs:150:44 [INFO] [stderr] | [INFO] [stderr] 150 | match path.file_name().ok_or(format_err!(r#"Filename is "None""#)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| format_err!(r#"Filename is "None""#))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] error: couldn't read examples/../libraries/root-message/hash.txt: No such file or directory (os error 2) [INFO] [stderr] --> examples/receiver.rs:20:29 [INFO] [stderr] | [INFO] [stderr] 20 | let root_message_hash = include_str!("../libraries/root-message/hash.txt").to_string(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `protocols`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: couldn't read examples/../libraries/root-message/hash.txt: No such file or directory (os error 2) [INFO] [stderr] --> examples/sender.rs:15:30 [INFO] [stderr] | [INFO] [stderr] 15 | let root_protocol_hash = include_str!("../libraries/root-message/hash.txt"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: couldn't read examples/../libraries/test-protocol/hash.txt: No such file or directory (os error 2) [INFO] [stderr] --> examples/sender.rs:16:30 [INFO] [stderr] | [INFO] [stderr] 16 | let test_protocol_hash = include_str!("../libraries/test-protocol/hash.txt"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `protocols`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "7509f2755283e88ded4958e48a0ebfd8aa04ad4a6c3e24b156f9ba927a57a65d"` [INFO] running `"docker" "rm" "-f" "7509f2755283e88ded4958e48a0ebfd8aa04ad4a6c3e24b156f9ba927a57a65d"` [INFO] [stdout] 7509f2755283e88ded4958e48a0ebfd8aa04ad4a6c3e24b156f9ba927a57a65d