[INFO] cloning repository https://github.com/TransientWang/rust_demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TransientWang/rust_demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTransientWang%2Frust_demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTransientWang%2Frust_demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58e1b392dda71735317f2ad4e8e0d760d8913253 [INFO] checking TransientWang/rust_demo against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTransientWang%2Frust_demo" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TransientWang/rust_demo on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TransientWang/rust_demo [INFO] finished tweaking git repo https://github.com/TransientWang/rust_demo [INFO] tweaked toml for git repo https://github.com/TransientWang/rust_demo written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/TransientWang/rust_demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef5a17e3377cb6cbb478b86462a2424fcff71e0f75f3ee0e3abd464e44e3f8dc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef5a17e3377cb6cbb478b86462a2424fcff71e0f75f3ee0e3abd464e44e3f8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef5a17e3377cb6cbb478b86462a2424fcff71e0f75f3ee0e3abd464e44e3f8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef5a17e3377cb6cbb478b86462a2424fcff71e0f75f3ee0e3abd464e44e3f8dc", kill_on_drop: false }` [INFO] [stdout] ef5a17e3377cb6cbb478b86462a2424fcff71e0f75f3ee0e3abd464e44e3f8dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02b899f44c55e722aacae44cce58da69ccff29473c06fd9d12c1e26927da4122 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "02b899f44c55e722aacae44cce58da69ccff29473c06fd9d12c1e26927da4122", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rust_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `test` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use test::Concurrent::No; [INFO] [stdout] | ^^^^ use of undeclared crate or module `test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/main.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | Write(string), [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `coin` in this scope [INFO] [stdout] --> src/main.rs:189:35 [INFO] [stdout] | [INFO] [stdout] 189 | if let Coin::Quarter(state) = coin { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `test` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use test::Concurrent::No; [INFO] [stdout] | ^^^^ use of undeclared crate or module `test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/main.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | Write(string), [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `coin` in this scope [INFO] [stdout] --> src/main.rs:189:35 [INFO] [stdout] | [INFO] [stdout] 189 | if let Coin::Quarter(state) = coin { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `UsState` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:163:50 [INFO] [stdout] | [INFO] [stdout] 163 | println!("State quarter from {:?}!", state); [INFO] [stdout] | ^^^^^ `UsState` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `UsState` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required by `std::fmt::Debug::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `UsState` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:190:46 [INFO] [stdout] | [INFO] [stdout] 190 | println!("State quarter from {:?}!", state); [INFO] [stdout] | ^^^^^ `UsState` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `UsState` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required by `std::fmt::Debug::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `UsState` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:163:50 [INFO] [stdout] | [INFO] [stdout] 163 | println!("State quarter from {:?}!", state); [INFO] [stdout] | ^^^^^ `UsState` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `UsState` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required by `std::fmt::Debug::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `UsState` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:190:46 [INFO] [stdout] | [INFO] [stdout] 190 | println!("State quarter from {:?}!", state); [INFO] [stdout] | ^^^^^ `UsState` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `UsState` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required by `std::fmt::Debug::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 197 | / match x { [INFO] [stdout] 198 | | None => None, [INFO] [stdout] | | ---- this is found to be of type `Option` [INFO] [stdout] 199 | | Some(i) => Some(i + 1), [INFO] [stdout] | | ----------- this is found to be of type `Option` [INFO] [stdout] 200 | | _ => (), [INFO] [stdout] | | ^^ expected enum `Option`, found `()` [INFO] [stdout] 201 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 197 | / match x { [INFO] [stdout] 198 | | None => None, [INFO] [stdout] | | ---- this is found to be of type `Option` [INFO] [stdout] 199 | | Some(i) => Some(i + 1), [INFO] [stdout] | | ----------- this is found to be of type `Option` [INFO] [stdout] 200 | | _ => (), [INFO] [stdout] | | ^^ expected enum `Option`, found `()` [INFO] [stdout] 201 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_demo` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "02b899f44c55e722aacae44cce58da69ccff29473c06fd9d12c1e26927da4122", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02b899f44c55e722aacae44cce58da69ccff29473c06fd9d12c1e26927da4122", kill_on_drop: false }` [INFO] [stdout] 02b899f44c55e722aacae44cce58da69ccff29473c06fd9d12c1e26927da4122