[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#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTransientWang%2Frust_demo" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TransientWang/rust_demo on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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-7/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8902d4c098f89dc1e5c16a82f18b00b4ee1c0cc0dd2912061423227b92d24343 [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" "8902d4c098f89dc1e5c16a82f18b00b4ee1c0cc0dd2912061423227b92d24343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8902d4c098f89dc1e5c16a82f18b00b4ee1c0cc0dd2912061423227b92d24343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8902d4c098f89dc1e5c16a82f18b00b4ee1c0cc0dd2912061423227b92d24343", kill_on_drop: false }` [INFO] [stdout] 8902d4c098f89dc1e5c16a82f18b00b4ee1c0cc0dd2912061423227b92d24343 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 876b29260aff1cb6f9864bc4eab3321e787c4239cdbffbf5aa62fad521a727ba [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" "876b29260aff1cb6f9864bc4eab3321e787c4239cdbffbf5aa62fad521a727ba", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [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[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[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[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[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] [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] [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: build failed [INFO] running `Command { std: "docker" "inspect" "876b29260aff1cb6f9864bc4eab3321e787c4239cdbffbf5aa62fad521a727ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "876b29260aff1cb6f9864bc4eab3321e787c4239cdbffbf5aa62fad521a727ba", kill_on_drop: false }` [INFO] [stdout] 876b29260aff1cb6f9864bc4eab3321e787c4239cdbffbf5aa62fad521a727ba