[INFO] cloning repository https://github.com/Cristiandi/course-rust-in-motion [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Cristiandi/course-rust-in-motion" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCristiandi%2Fcourse-rust-in-motion", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCristiandi%2Fcourse-rust-in-motion'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 812eadf4584a270a9207a8e3797e5afc88d2993b [INFO] checking Cristiandi/course-rust-in-motion against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCristiandi%2Fcourse-rust-in-motion" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Cristiandi/course-rust-in-motion on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Cristiandi/course-rust-in-motion [INFO] finished tweaking git repo https://github.com/Cristiandi/course-rust-in-motion [INFO] tweaked toml for git repo https://github.com/Cristiandi/course-rust-in-motion written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Cristiandi/course-rust-in-motion 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded backtrace v0.3.18 [INFO] [stderr] Downloaded backtrace-sys v0.1.37 [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" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24d91457199758bf2bdf6e60cf25f862b5b31dc47a1afca0efbd7eb84a7873d4 [INFO] running `Command { std: "docker" "start" "-a" "24d91457199758bf2bdf6e60cf25f862b5b31dc47a1afca0efbd7eb84a7873d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24d91457199758bf2bdf6e60cf25f862b5b31dc47a1afca0efbd7eb84a7873d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24d91457199758bf2bdf6e60cf25f862b5b31dc47a1afca0efbd7eb84a7873d4", kill_on_drop: false }` [INFO] [stdout] 24d91457199758bf2bdf6e60cf25f862b5b31dc47a1afca0efbd7eb84a7873d4 [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" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 906511d1dcc04745c80304d739b54e4a7ff6186d781b8f31d4c99da79d39c776 [INFO] running `Command { std: "docker" "start" "-a" "906511d1dcc04745c80304d739b54e4a7ff6186d781b8f31d4c99da79d39c776", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Compiling backtrace v0.3.18 [INFO] [stderr] Compiling backtrace-sys v0.1.37 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking error-chain v0.12.0 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking myproject v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/unit-3/04_2_use_q_mark_main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/unit-3/04_2_use_q_mark_main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/09_methods.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 2 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 3 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Wing, [INFO] [stdout] 5 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `number` is never read [INFO] [stdout] --> src/unit-1/09_methods.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] 11 | number: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Version { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Version` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `login` are never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 16 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | login: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/unit-3/07_2_failure.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/unit-1/08_structs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 2 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Wing, [INFO] [stdout] 4 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/unit-1/08_structs.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | position: HockeyPosition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hours`, `minutes`, and `seconds` are never read [INFO] [stdout] --> src/unit-1/08_structs.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | Analog { hours: u8, minutes: u8, seconds: u8 }, [INFO] [stdout] | ------ ^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sundial` and `Digital` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | enum Clock { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 17 | Sundial { hours: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Digital { hours: u8, minutes: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/unit-1/08_structs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 2 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Wing, [INFO] [stdout] 4 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/unit-1/08_structs.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | position: HockeyPosition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hours`, `minutes`, and `seconds` are never read [INFO] [stdout] --> src/unit-1/08_structs.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | Analog { hours: u8, minutes: u8, seconds: u8 }, [INFO] [stdout] | ------ ^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sundial` and `Digital` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | enum Clock { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 17 | Sundial { hours: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Digital { hours: u8, minutes: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/09_methods.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 2 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 3 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Wing, [INFO] [stdout] 5 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `number` is never read [INFO] [stdout] --> src/unit-1/09_methods.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] 11 | number: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Version { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Version` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `login` are never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 16 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | login: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/unit-3/07_2_failure.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.74s [INFO] running `Command { std: "docker" "inspect" "906511d1dcc04745c80304d739b54e4a7ff6186d781b8f31d4c99da79d39c776", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "906511d1dcc04745c80304d739b54e4a7ff6186d781b8f31d4c99da79d39c776", kill_on_drop: false }` [INFO] [stdout] 906511d1dcc04745c80304d739b54e4a7ff6186d781b8f31d4c99da79d39c776 [INFO] checking Cristiandi/course-rust-in-motion against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCristiandi%2Fcourse-rust-in-motion" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Cristiandi/course-rust-in-motion on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Cristiandi/course-rust-in-motion [INFO] finished tweaking git repo https://github.com/Cristiandi/course-rust-in-motion [INFO] tweaked toml for git repo https://github.com/Cristiandi/course-rust-in-motion written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Cristiandi/course-rust-in-motion 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "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" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3016974bf7a377c2d9af9a2901780b9fa08f2d3f23581c98796cacdc60869ead [INFO] running `Command { std: "docker" "start" "-a" "3016974bf7a377c2d9af9a2901780b9fa08f2d3f23581c98796cacdc60869ead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3016974bf7a377c2d9af9a2901780b9fa08f2d3f23581c98796cacdc60869ead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3016974bf7a377c2d9af9a2901780b9fa08f2d3f23581c98796cacdc60869ead", kill_on_drop: false }` [INFO] [stdout] 3016974bf7a377c2d9af9a2901780b9fa08f2d3f23581c98796cacdc60869ead [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 -Dnon_local_definitions" "-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" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f4268f8b02969288f0fe11f474fc383c22e0f718aac49c5c02ea683d14f4abb [INFO] running `Command { std: "docker" "start" "-a" "2f4268f8b02969288f0fe11f474fc383c22e0f718aac49c5c02ea683d14f4abb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Compiling backtrace v0.3.18 [INFO] [stderr] Compiling backtrace-sys v0.1.37 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking error-chain v0.12.0 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking myproject v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/unit-3/04_2_use_q_mark_main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/unit-3/07_2_failure.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/unit-3/07_2_failure.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_Fail_FOR_DocumentServiceError` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/unit-3/07_2_failure.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_core_fmt_Display_FOR_DocumentServiceError` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `myproject` (bin "error-handling-crates" test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/unit-1/08_structs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 2 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Wing, [INFO] [stdout] 4 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/unit-1/08_structs.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | position: HockeyPosition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hours`, `minutes`, and `seconds` are never read [INFO] [stdout] --> src/unit-1/08_structs.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | Analog { hours: u8, minutes: u8, seconds: u8 }, [INFO] [stdout] | ------ ^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sundial` and `Digital` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | enum Clock { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 17 | Sundial { hours: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Digital { hours: u8, minutes: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/unit-3/04_2_use_q_mark_main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Version { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Version` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `login` are never read [INFO] [stdout] --> src/unit-3/08_3_map_trans_ok_or_some.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 16 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | login: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/unit-3/07_2_failure.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/unit-1/08_structs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Center`, `Defense`, and `Goalie` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | enum HockeyPosition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 2 | Center, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Wing, [INFO] [stdout] 4 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | Goalie, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/unit-1/08_structs.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct HockeyPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | position: HockeyPosition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hours`, `minutes`, and `seconds` are never read [INFO] [stdout] --> src/unit-1/08_structs.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | Analog { hours: u8, minutes: u8, seconds: u8 }, [INFO] [stdout] | ------ ^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sundial` and `Digital` are never constructed [INFO] [stdout] --> src/unit-1/08_structs.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | enum Clock { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 17 | Sundial { hours: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Digital { hours: u8, minutes: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/unit-3/07_2_failure.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_Fail_FOR_DocumentServiceError` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/unit-3/07_2_failure.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_core_fmt_Display_FOR_DocumentServiceError` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `myproject` (bin "error-handling-crates") due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "2f4268f8b02969288f0fe11f474fc383c22e0f718aac49c5c02ea683d14f4abb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f4268f8b02969288f0fe11f474fc383c22e0f718aac49c5c02ea683d14f4abb", kill_on_drop: false }` [INFO] [stdout] 2f4268f8b02969288f0fe11f474fc383c22e0f718aac49c5c02ea683d14f4abb