[INFO] fetching crate cain 0.1.2... [INFO] checking cain-0.1.2 against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] extracting crate cain 0.1.2 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate cain 0.1.2 on toolchain 8424f8e8cdf07010967a57584fd647b30e930d4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cain 0.1.2 [INFO] finished tweaking crates.io crate cain 0.1.2 [INFO] tweaked toml for crates.io crate cain 0.1.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ae50d2475a6bd8be4391683a390fd17416397e8583d077882e09e45ce44c216 [INFO] running `Command { std: "docker" "start" "-a" "4ae50d2475a6bd8be4391683a390fd17416397e8583d077882e09e45ce44c216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ae50d2475a6bd8be4391683a390fd17416397e8583d077882e09e45ce44c216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ae50d2475a6bd8be4391683a390fd17416397e8583d077882e09e45ce44c216", kill_on_drop: false }` [INFO] [stdout] 4ae50d2475a6bd8be4391683a390fd17416397e8583d077882e09e45ce44c216 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b93351729fdfbed46a672ff78ae5255ec37210e08909dc3aa2c40de3d37a6ec [INFO] running `Command { std: "docker" "start" "-a" "2b93351729fdfbed46a672ff78ae5255ec37210e08909dc3aa2c40de3d37a6ec", kill_on_drop: false }` [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking cain v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> tests/diverging_branches.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let x = match n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | Some(mut v) => { v.pop(); }, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> tests/diverging_branches.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let y = match n % 2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> tests/diverging_branches.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | let x = match n % 3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | Some(ref mut b) => inc(b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | let _ = if let Some(ref mut b) = &mut a { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> tests/no_behavior_change.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | if let None = a { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.86s [INFO] running `Command { std: "docker" "inspect" "2b93351729fdfbed46a672ff78ae5255ec37210e08909dc3aa2c40de3d37a6ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b93351729fdfbed46a672ff78ae5255ec37210e08909dc3aa2c40de3d37a6ec", kill_on_drop: false }` [INFO] [stdout] 2b93351729fdfbed46a672ff78ae5255ec37210e08909dc3aa2c40de3d37a6ec [INFO] checking cain-0.1.2 against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] extracting crate cain 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate cain 0.1.2 on toolchain 047472f299946caf090d1b5608ae4bd9f0416256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cain 0.1.2 [INFO] finished tweaking crates.io crate cain 0.1.2 [INFO] tweaked toml for crates.io crate cain 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a78bde13bc7e1dea4c275f54649e611b1408d8d324a658aaf4bacb62e4ede62 [INFO] running `Command { std: "docker" "start" "-a" "6a78bde13bc7e1dea4c275f54649e611b1408d8d324a658aaf4bacb62e4ede62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a78bde13bc7e1dea4c275f54649e611b1408d8d324a658aaf4bacb62e4ede62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a78bde13bc7e1dea4c275f54649e611b1408d8d324a658aaf4bacb62e4ede62", kill_on_drop: false }` [INFO] [stdout] 6a78bde13bc7e1dea4c275f54649e611b1408d8d324a658aaf4bacb62e4ede62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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 -Ddereferencing_mut_binding" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 982028867a41086afefc84b4ebda281ece4dfb39c960395c52abbbd7ddef3622 [INFO] running `Command { std: "docker" "start" "-a" "982028867a41086afefc84b4ebda281ece4dfb39c960395c52abbbd7ddef3622", kill_on_drop: false }` [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking cain v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> tests/diverging_branches.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | _ => panic!() as &str, [INFO] [stdout] | --------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> tests/diverging_branches.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let x = match n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> tests/no_behavior_change.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> tests/no_behavior_change.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> tests/diverging_branches.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let y = match n % 2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> tests/no_behavior_change.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | let _ = if let Some(mut b) = &mut a { [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> tests/no_behavior_change.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | let _ = if let Some(mut b) = &mut a { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> tests/diverging_branches.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | let x = match n % 3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | Some(mut v) => { v.pop(); }, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | Some(mut b) => inc(&mut b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | Some(ref mut b) => inc(b), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/no_behavior_change.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | let _ = if let Some(ref mut b) = &mut a { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> tests/no_behavior_change.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | if let None = a { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cain` (test "no_behavior_change") due to 3 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "982028867a41086afefc84b4ebda281ece4dfb39c960395c52abbbd7ddef3622", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "982028867a41086afefc84b4ebda281ece4dfb39c960395c52abbbd7ddef3622", kill_on_drop: false }` [INFO] [stdout] 982028867a41086afefc84b4ebda281ece4dfb39c960395c52abbbd7ddef3622