[INFO] crate libtls 0.0.1 is already in cache [INFO] extracting crate libtls 0.0.1 into work/ex/clippy-test-run/sources/stable/reg/libtls/0.0.1 [INFO] extracting crate libtls 0.0.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/libtls/0.0.1 [INFO] validating manifest of libtls-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 libtls-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 libtls-0.0.1 [INFO] removed path dependency libtls-sys from libtls-0.0.1 [INFO] finished frobbing libtls-0.0.1 [INFO] frobbed toml for libtls-0.0.1 written to work/ex/clippy-test-run/sources/stable/reg/libtls/0.0.1/Cargo.toml [INFO] started frobbing libtls-0.0.1 [INFO] removed path dependency libtls-sys from libtls-0.0.1 [INFO] finished frobbing libtls-0.0.1 [INFO] frobbed toml for libtls-0.0.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/libtls/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 libtls-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-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/libtls/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] 90d2cd3c5a1ffc648a8e38cf5a61ed248cb7a41016535b75cbfa5c78a84bab9f [INFO] running `"docker" "start" "-a" "90d2cd3c5a1ffc648a8e38cf5a61ed248cb7a41016535b75cbfa5c78a84bab9f"` [INFO] [stderr] Compiling libtls-sys v0.0.1 [INFO] [stderr] Checking libtls v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/lib.rs:353:13 [INFO] [stderr] | [INFO] [stderr] 353 | context: context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `context` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/lib.rs:353:13 [INFO] [stderr] | [INFO] [stderr] 353 | context: context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `context` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/lib.rs:276:5 [INFO] [stderr] | [INFO] [stderr] 276 | / pub fn from_str(protocols: &str) -> Result { [INFO] [stderr] 277 | | Init::init(); [INFO] [stderr] 278 | | let mut ret_val = Protocols(0); [INFO] [stderr] 279 | | let protocols = try!(CString::new(protocols).map_err(|_| ())); [INFO] [stderr] ... | [INFO] [stderr] 286 | | Ok(ret_val) [INFO] [stderr] 287 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/lib.rs:312:5 [INFO] [stderr] | [INFO] [stderr] 312 | / pub fn from_str(ciphers: &str) -> Result { [INFO] [stderr] 313 | | Ok(Ciphers(try!(CString::new(ciphers)))) [INFO] [stderr] 314 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::prelude::*` [INFO] [stderr] --> src/test.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/lib.rs:276:5 [INFO] [stderr] | [INFO] [stderr] 276 | / pub fn from_str(protocols: &str) -> Result { [INFO] [stderr] 277 | | Init::init(); [INFO] [stderr] 278 | | let mut ret_val = Protocols(0); [INFO] [stderr] 279 | | let protocols = try!(CString::new(protocols).map_err(|_| ())); [INFO] [stderr] ... | [INFO] [stderr] 286 | | Ok(ret_val) [INFO] [stderr] 287 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/lib.rs:312:5 [INFO] [stderr] | [INFO] [stderr] 312 | / pub fn from_str(ciphers: &str) -> Result { [INFO] [stderr] 313 | | Ok(Ciphers(try!(CString::new(ciphers)))) [INFO] [stderr] 314 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/test.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | stream.write(session).expect("Failed to write"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::unused_io_amount)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount [INFO] [stderr] [INFO] [stderr] error: handle read amount returned or use `Read::read_exact` instead [INFO] [stderr] --> src/test.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | stream.read(&mut buf).expect("Failed to read"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `libtls`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "90d2cd3c5a1ffc648a8e38cf5a61ed248cb7a41016535b75cbfa5c78a84bab9f"` [INFO] running `"docker" "rm" "-f" "90d2cd3c5a1ffc648a8e38cf5a61ed248cb7a41016535b75cbfa5c78a84bab9f"` [INFO] [stdout] 90d2cd3c5a1ffc648a8e38cf5a61ed248cb7a41016535b75cbfa5c78a84bab9f