[INFO] cloning repository https://github.com/sutetako/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sutetako/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69ae47d04f313d24b1b40ef9c7ea7c4f9920a3d0 [INFO] checking sutetako/rust_learning against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sutetako/rust_learning on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sutetako/rust_learning [INFO] finished tweaking git repo https://github.com/sutetako/rust_learning [INFO] tweaked toml for git repo https://github.com/sutetako/rust_learning written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sutetako/rust_learning 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8d23875271404ead1a3d1daad298981ec9ffab462ecc437e8bd7581794dd5be [INFO] running `Command { std: "docker" "start" "-a" "b8d23875271404ead1a3d1daad298981ec9ffab462ecc437e8bd7581794dd5be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8d23875271404ead1a3d1daad298981ec9ffab462ecc437e8bd7581794dd5be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8d23875271404ead1a3d1daad298981ec9ffab462ecc437e8bd7581794dd5be", kill_on_drop: false }` [INFO] [stdout] b8d23875271404ead1a3d1daad298981ec9ffab462ecc437e8bd7581794dd5be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c27cbdcafac41eec7d7f7d8f7a985a38ca1a0dd506d8cdb726c53447292c4d8 [INFO] running `Command { std: "docker" "start" "-a" "7c27cbdcafac41eec7d7f7d8f7a985a38ca1a0dd506d8cdb726c53447292c4d8", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.99 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:245:6 [INFO] [stdout] | [INFO] [stdout] 245 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:375:6 [INFO] [stdout] | [INFO] [stdout] 375 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:1814:32 [INFO] [stdout] | [INFO] [stdout] 1814 | fn say_hello(out: &mut Write) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 1814 | fn say_hello(out: &mut dyn Write) -> std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:1469:27 [INFO] [stdout] | [INFO] [stdout] 1469 | self.plural().trim_right_matches('s') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1469 | self.plural().trim_end_matches('s') [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:1840:26 [INFO] [stdout] | [INFO] [stdout] 1840 | let writer: &mut Write = &mut buf; // ok [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 1840 | let writer: &mut dyn Write = &mut buf; // ok [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0109]: type arguments are not allowed on local variable [INFO] [stdout] --> src/main.rs:1854:15 [INFO] [stdout] | [INFO] [stdout] 1854 | buf::.write_all(b"hello").expect("error"); [INFO] [stdout] | --- ^^^ type argument not allowed [INFO] [stdout] | | [INFO] [stdout] | not allowed on local variable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:1366:21 [INFO] [stdout] | [INFO] [stdout] 1366 | let mut file = self.log_file.borrow_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/main.rs:1365:27 [INFO] [stdout] | [INFO] [stdout] 1365 | pub fn log(&self, message: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1366:17 [INFO] [stdout] | [INFO] [stdout] 1366 | let mut file = self.log_file.borrow_mut(); [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: `three_hours_from_now` [INFO] [stdout] --> src/main.rs:1484:9 [INFO] [stdout] | [INFO] [stdout] 1484 | let three_hours_from_now = RoughTime::InTheFuture(TimeUnit::Hours, 3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_three_hours_from_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit_sphere` [INFO] [stdout] --> src/main.rs:1492:9 [INFO] [stdout] | [INFO] [stdout] 1492 | let unit_sphere = Shape::Sphere { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/main.rs:1551:9 [INFO] [stdout] | [INFO] [stdout] 1551 | let tree = BinaryTree::NonEmpty(Box::new(TreeNode { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `html` [INFO] [stdout] --> src/main.rs:1953:38 [INFO] [stdout] | [INFO] [stdout] 1953 | fn write_html(&mut self, html: &HtmlDocument) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_html` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0109`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (bin "rust_learning" test) due to 2 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7c27cbdcafac41eec7d7f7d8f7a985a38ca1a0dd506d8cdb726c53447292c4d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c27cbdcafac41eec7d7f7d8f7a985a38ca1a0dd506d8cdb726c53447292c4d8", kill_on_drop: false }` [INFO] [stdout] 7c27cbdcafac41eec7d7f7d8f7a985a38ca1a0dd506d8cdb726c53447292c4d8 [INFO] checking sutetako/rust_learning against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sutetako/rust_learning on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sutetako/rust_learning [INFO] finished tweaking git repo https://github.com/sutetako/rust_learning [INFO] tweaked toml for git repo https://github.com/sutetako/rust_learning written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sutetako/rust_learning 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 262bb430fdc765d97354f9a5a552879fee3a80fa74f1bd06214fca885a6f3874 [INFO] running `Command { std: "docker" "start" "-a" "262bb430fdc765d97354f9a5a552879fee3a80fa74f1bd06214fca885a6f3874", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "262bb430fdc765d97354f9a5a552879fee3a80fa74f1bd06214fca885a6f3874", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "262bb430fdc765d97354f9a5a552879fee3a80fa74f1bd06214fca885a6f3874", kill_on_drop: false }` [INFO] [stdout] 262bb430fdc765d97354f9a5a552879fee3a80fa74f1bd06214fca885a6f3874 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05cf2de306c61dc2d30c00c0ea69441d7425b134a62e6c3da9324d96f01c37dd [INFO] running `Command { std: "docker" "start" "-a" "05cf2de306c61dc2d30c00c0ea69441d7425b134a62e6c3da9324d96f01c37dd", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "05cf2de306c61dc2d30c00c0ea69441d7425b134a62e6c3da9324d96f01c37dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05cf2de306c61dc2d30c00c0ea69441d7425b134a62e6c3da9324d96f01c37dd", kill_on_drop: false }` [INFO] [stdout] 05cf2de306c61dc2d30c00c0ea69441d7425b134a62e6c3da9324d96f01c37dd