[INFO] cloning repository https://github.com/rmchen-12/rust_editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rmchen-12/rust_editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmchen-12%2Frust_editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmchen-12%2Frust_editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de5ad5f9a354fb38e6965baa7dfff6f9d3431c32 [INFO] checking rmchen-12/rust_editor against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmchen-12%2Frust_editor" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rmchen-12/rust_editor 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 git repo https://github.com/rmchen-12/rust_editor [INFO] finished tweaking git repo https://github.com/rmchen-12/rust_editor [INFO] tweaked toml for git repo https://github.com/rmchen-12/rust_editor written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rmchen-12/rust_editor 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" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 1450cf321b2f1ccc8eb43e694e5cf723c33bfbd4615061bbc12f418634db61fa [INFO] running `Command { std: "docker" "start" "-a" "1450cf321b2f1ccc8eb43e694e5cf723c33bfbd4615061bbc12f418634db61fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1450cf321b2f1ccc8eb43e694e5cf723c33bfbd4615061bbc12f418634db61fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1450cf321b2f1ccc8eb43e694e5cf723c33bfbd4615061bbc12f418634db61fa", kill_on_drop: false }` [INFO] [stdout] 1450cf321b2f1ccc8eb43e694e5cf723c33bfbd4615061bbc12f418634db61fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 202ef2036da38153d1601018296dea5e8b11b4254f8710d560ca4659191678e5 [INFO] running `Command { std: "docker" "start" "-a" "202ef2036da38153d1601018296dea5e8b11b4254f8710d560ca4659191678e5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking unicode-segmentation v1.9.0 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking hec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `slice::Windows` [INFO] [stdout] --> src/editor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | slice::Windows, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `document`, `row` [INFO] [stdout] --> src/editor.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{document, row, Document, Row, Terminal}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slice::Windows` [INFO] [stdout] --> src/editor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | slice::Windows, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `document`, `row` [INFO] [stdout] --> src/editor.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{document, row, Document, Row, Terminal}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/editor.rs:171:27 [INFO] [stdout] | [INFO] [stdout] 171 | } else if { y > 0 } { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 171 - } else if { y > 0 } { [INFO] [stdout] 171 + } else if y > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/editor.rs:171:27 [INFO] [stdout] | [INFO] [stdout] 171 | } else if { y > 0 } { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 171 - } else if { y > 0 } { [INFO] [stdout] 171 + } else if y > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut offset = &mut self.offset; [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] --> src/editor.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut offset = &mut self.offset; [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "202ef2036da38153d1601018296dea5e8b11b4254f8710d560ca4659191678e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "202ef2036da38153d1601018296dea5e8b11b4254f8710d560ca4659191678e5", kill_on_drop: false }` [INFO] [stdout] 202ef2036da38153d1601018296dea5e8b11b4254f8710d560ca4659191678e5 [INFO] checking rmchen-12/rust_editor against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmchen-12%2Frust_editor" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rmchen-12/rust_editor 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 git repo https://github.com/rmchen-12/rust_editor [INFO] finished tweaking git repo https://github.com/rmchen-12/rust_editor [INFO] tweaked toml for git repo https://github.com/rmchen-12/rust_editor written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rmchen-12/rust_editor 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" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 124e5497beab7bad0e0f993add1268802a914de8ec4eb1b5d8c16c2c4acdd1ed [INFO] running `Command { std: "docker" "start" "-a" "124e5497beab7bad0e0f993add1268802a914de8ec4eb1b5d8c16c2c4acdd1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "124e5497beab7bad0e0f993add1268802a914de8ec4eb1b5d8c16c2c4acdd1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "124e5497beab7bad0e0f993add1268802a914de8ec4eb1b5d8c16c2c4acdd1ed", kill_on_drop: false }` [INFO] [stdout] 124e5497beab7bad0e0f993add1268802a914de8ec4eb1b5d8c16c2c4acdd1ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 7d5af32a4aee9ed4411201fd4d4a838a90ac19df4f8b1a45f2ebb77e60bac214 [INFO] running `Command { std: "docker" "start" "-a" "7d5af32a4aee9ed4411201fd4d4a838a90ac19df4f8b1a45f2ebb77e60bac214", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking unicode-segmentation v1.9.0 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking hec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `slice::Windows` [INFO] [stdout] --> src/editor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | slice::Windows, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slice::Windows` [INFO] [stdout] --> src/editor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | slice::Windows, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `document`, `row` [INFO] [stdout] --> src/editor.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{document, row, Document, Row, Terminal}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `document`, `row` [INFO] [stdout] --> src/editor.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{document, row, Document, Row, Terminal}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/editor.rs:171:27 [INFO] [stdout] | [INFO] [stdout] 171 | } else if { y > 0 } { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 171 - } else if { y > 0 } { [INFO] [stdout] 171 + } else if y > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/editor.rs:171:27 [INFO] [stdout] | [INFO] [stdout] 171 | } else if { y > 0 } { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 171 - } else if { y > 0 } { [INFO] [stdout] 171 + } else if y > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | let Position { mut x, mut y } = position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut offset = &mut self.offset; [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] --> src/editor.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut offset = &mut self.offset; [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] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hec` (bin "hec" test) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hec` (bin "hec") due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7d5af32a4aee9ed4411201fd4d4a838a90ac19df4f8b1a45f2ebb77e60bac214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d5af32a4aee9ed4411201fd4d4a838a90ac19df4f8b1a45f2ebb77e60bac214", kill_on_drop: false }` [INFO] [stdout] 7d5af32a4aee9ed4411201fd4d4a838a90ac19df4f8b1a45f2ebb77e60bac214