[INFO] fetching crate expecto 0.0.1... [INFO] linting expecto-0.0.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate expecto 0.0.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate expecto 0.0.1 [INFO] finished tweaking crates.io crate expecto 0.0.1 [INFO] tweaked toml for crates.io crate expecto 0.0.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate expecto 0.0.1 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate expecto 0.0.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.71 [INFO] [stderr] Downloaded addr2line v0.16.0 [INFO] [stderr] Downloaded object v0.27.0 [INFO] [stderr] Downloaded backtrace v0.3.62 [INFO] [stderr] Downloaded gimli v0.25.0 [INFO] [stderr] Downloaded libc v0.2.104 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83ea09dc6e97c993a0f90ccc247339a199bfc67aef7fd5af3aaf8a56419d2d00 [INFO] running `Command { std: "docker" "start" "-a" "83ea09dc6e97c993a0f90ccc247339a199bfc67aef7fd5af3aaf8a56419d2d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83ea09dc6e97c993a0f90ccc247339a199bfc67aef7fd5af3aaf8a56419d2d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83ea09dc6e97c993a0f90ccc247339a199bfc67aef7fd5af3aaf8a56419d2d00", kill_on_drop: false }` [INFO] [stdout] 83ea09dc6e97c993a0f90ccc247339a199bfc67aef7fd5af3aaf8a56419d2d00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ead248eecbc8a3bea850fdcd5999f7478338c291e31e815f4eb8ae948d886578 [INFO] running `Command { std: "docker" "start" "-a" "ead248eecbc8a3bea850fdcd5999f7478338c291e31e815f4eb8ae948d886578", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.104 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Checking gimli v0.25.0 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking object v0.27.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Compiling backtrace v0.3.62 [INFO] [stderr] Checking addr2line v0.16.0 [INFO] [stderr] Checking expecto v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> src/base/matcher.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | static START_MARKER: &'static str = "<<<<<< src/base/matcher.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | static END_MARKER: &'static str = ">>>>>>>EXPECTO PATRONUM>>>>>>"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/code_locator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_be_around.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_be_around.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_eq.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_eq.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> src/base/matcher.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | static START_MARKER: &'static str = "<<<<<< src/base/matcher.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | static END_MARKER: &'static str = ">>>>>>>EXPECTO PATRONUM>>>>>>"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/code_locator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_be_around.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_be_around.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_eq.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/matchers/to_eq.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | rhs: rhs, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `rhs` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/matchers/to_panic.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | !result.is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/matchers/to_panic.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | format!("Expected to panic, but no panic occurred") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Expected to panic, but no panic occurred".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/matchers/to_panic.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | format!("Expected not to panic, but a panic occurred.") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Expected not to panic, but a panic occurred.".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/matchers/to_panic.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | !result.is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/matchers/to_panic.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | format!("Expected to panic, but no panic occurred") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Expected to panic, but no panic occurred".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/matchers/to_panic.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | format!("Expected not to panic, but a panic occurred.") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Expected not to panic, but a panic occurred.".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn square(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Age` is never constructed [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Age(u8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.50s [INFO] running `Command { std: "docker" "inspect" "ead248eecbc8a3bea850fdcd5999f7478338c291e31e815f4eb8ae948d886578", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ead248eecbc8a3bea850fdcd5999f7478338c291e31e815f4eb8ae948d886578", kill_on_drop: false }` [INFO] [stdout] ead248eecbc8a3bea850fdcd5999f7478338c291e31e815f4eb8ae948d886578