[INFO] cloning repository https://github.com/rmc8/rustbook_chap4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rmc8/rustbook_chap4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmc8%2Frustbook_chap4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmc8%2Frustbook_chap4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82b26005646a693ef1d840f6dd11909017e2ba6d [INFO] checking rmc8/rustbook_chap4 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmc8%2Frustbook_chap4" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rmc8/rustbook_chap4 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rmc8/rustbook_chap4 [INFO] finished tweaking git repo https://github.com/rmc8/rustbook_chap4 [INFO] tweaked toml for git repo https://github.com/rmc8/rustbook_chap4 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/rmc8/rustbook_chap4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c86eb94739ae6f8600e1054ab8b1b1692f95542e5121a19bc2db7fc05d2c7c4 [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" "5c86eb94739ae6f8600e1054ab8b1b1692f95542e5121a19bc2db7fc05d2c7c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c86eb94739ae6f8600e1054ab8b1b1692f95542e5121a19bc2db7fc05d2c7c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c86eb94739ae6f8600e1054ab8b1b1692f95542e5121a19bc2db7fc05d2c7c4", kill_on_drop: false }` [INFO] [stdout] 5c86eb94739ae6f8600e1054ab8b1b1692f95542e5121a19bc2db7fc05d2c7c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1c6593d423e2f7657fa7652a2c9ef9672414c2702386a3c51ec0ca4bbf4993d [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" "a1c6593d423e2f7657fa7652a2c9ef9672414c2702386a3c51ec0ca4bbf4993d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.54 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling anyhow v1.0.37 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking Chap4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `hoge` [INFO] [stdout] | [INFO] [stdout] = note: consider adding a `main` function to `src/bin/hoge.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Chap4` [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: cannot find macro `bail` in this scope [INFO] [stdout] --> src/bin/err_anyhow.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | bail!("it may be too large numbler"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] anyhow::bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> src/bin/err_anyhow.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ensure!(num_str.starts_with("1"), "first digit is not 1"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] anyhow::ensure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Fs` in `std` [INFO] [stdout] --> src/bin/err_panic.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | let num_str = std::Fs::read_to_string(path).map_err(|e| MyError::Io(e))?; [INFO] [stdout] | ^^ could not find `Fs` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseInError` in module `std::num` [INFO] [stdout] --> src/bin/err_panic.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | Num(std::num::ParseInError), [INFO] [stdout] | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ParseIntError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> src/bin/err_anyhow.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | bail!("it may be too large numbler"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] anyhow::bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> src/bin/err_anyhow.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ensure!(num_str.starts_with("1"), "first digit is not 1"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] anyhow::ensure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Fs` in `std` [INFO] [stdout] --> src/bin/err_panic.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | let num_str = std::Fs::read_to_string(path).map_err(|e| MyError::Io(e))?; [INFO] [stdout] | ^^ could not find `Fs` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseInError` in module `std::num` [INFO] [stdout] --> src/bin/err_panic.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | Num(std::num::ParseInError), [INFO] [stdout] | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ParseIntError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Chap4` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `chap4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Chap4` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `chap4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/err_panic.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 20 | Err(e) => match e { [INFO] [stdout] | - this expression has type `String` [INFO] [stdout] 21 | MyError::Io(cause) => println!("I/O Error: {}", cause), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `String`, found enum `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/err_panic.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 20 | Err(e) => match e { [INFO] [stdout] | - this expression has type `String` [INFO] [stdout] 21 | MyError::Io(cause) => println!("I/O Error: {}", cause), [INFO] [stdout] 22 | MyError::Num(cause) => println!("Parse Errro: {}", cause), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected struct `String`, found enum `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/err_panic.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 20 | Err(e) => match e { [INFO] [stdout] | - this expression has type `String` [INFO] [stdout] 21 | MyError::Io(cause) => println!("I/O Error: {}", cause), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `String`, found enum `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/err_panic.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 20 | Err(e) => match e { [INFO] [stdout] | - this expression has type `String` [INFO] [stdout] 21 | MyError::Io(cause) => println!("I/O Error: {}", cause), [INFO] [stdout] 22 | MyError::Num(cause) => println!("Parse Errro: {}", cause), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected struct `String`, found enum `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a1c6593d423e2f7657fa7652a2c9ef9672414c2702386a3c51ec0ca4bbf4993d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1c6593d423e2f7657fa7652a2c9ef9672414c2702386a3c51ec0ca4bbf4993d", kill_on_drop: false }` [INFO] [stdout] a1c6593d423e2f7657fa7652a2c9ef9672414c2702386a3c51ec0ca4bbf4993d