[INFO] cloning repository https://github.com/sss-y-u/error_handling [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sss-y-u/error_handling" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsss-y-u%2Ferror_handling", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsss-y-u%2Ferror_handling'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cab7d0029828bf994070af85f98cd5451b87dd16 [INFO] checking sss-y-u/error_handling against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsss-y-u%2Ferror_handling" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sss-y-u/error_handling 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/sss-y-u/error_handling [INFO] finished tweaking git repo https://github.com/sss-y-u/error_handling [INFO] tweaked toml for git repo https://github.com/sss-y-u/error_handling written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/sss-y-u/error_handling 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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] 08a43b7774a3a57c8246578ccba8f6219e28ea1b700bfba18ac47e6ebf36d729 [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" "08a43b7774a3a57c8246578ccba8f6219e28ea1b700bfba18ac47e6ebf36d729", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08a43b7774a3a57c8246578ccba8f6219e28ea1b700bfba18ac47e6ebf36d729", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08a43b7774a3a57c8246578ccba8f6219e28ea1b700bfba18ac47e6ebf36d729", kill_on_drop: false }` [INFO] [stdout] 08a43b7774a3a57c8246578ccba8f6219e28ea1b700bfba18ac47e6ebf36d729 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] 66fa516b54b6728f9c8d2130f3140b79df01890cd9bd5642bfa54571e9e2e370 [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" "66fa516b54b6728f9c8d2130f3140b79df01890cd9bd5642bfa54571e9e2e370", kill_on_drop: false }` [INFO] [stderr] Checking error_handring v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/bin/err_anyhow.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{bail, ensure, Context, Result}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `bail` [INFO] [stdout] --> src/bin/err_anyhow.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | bail!("it may be too large number"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `ensure` [INFO] [stdout] --> src/bin/err_anyhow.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ensure!(num_str.starts_with("1"), "first digit is not 1"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> src/bin/err_thiserror.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Error` [INFO] [stdout] --> src/bin/err_thiserror.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Error, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[error("failed to read string from {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | ParseError(#[from] std::num::ParseIntError), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> src/bin/err_thiserror.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Error` [INFO] [stdout] --> src/bin/err_thiserror.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Error, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/bin/err_anyhow.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{bail, ensure, Context, Result}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `bail` [INFO] [stdout] --> src/bin/err_anyhow.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | bail!("it may be too large number"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `ensure` [INFO] [stdout] --> src/bin/err_anyhow.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ensure!(num_str.starts_with("1"), "first digit is not 1"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[error("failed to read string from {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> src/bin/err_thiserror.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | ParseError(#[from] std::num::ParseIntError), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/bin/err_thiserror.rs:16:58 [INFO] [stdout] | [INFO] [stdout] 16 | num_str.trim().parse::().map(|t| t * 2).map_err(MyError::from) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ParseIntError) -> _` [INFO] [stdout] | found signature of `fn(MyError) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `error_handring` [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[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/bin/err_thiserror.rs:16:58 [INFO] [stdout] | [INFO] [stdout] 16 | num_str.trim().parse::().map(|t| t * 2).map_err(MyError::from) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ParseIntError) -> _` [INFO] [stdout] | found signature of `fn(MyError) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> src/bin/err_anyhow.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | let num_str = std::fs::read_to_string(path).with_context(|| format!("failed to read string from {}", path))?; [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> src/bin/err_anyhow.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | let num_str = std::fs::read_to_string(path).with_context(|| format!("failed to read string from {}", path))?; [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "66fa516b54b6728f9c8d2130f3140b79df01890cd9bd5642bfa54571e9e2e370", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66fa516b54b6728f9c8d2130f3140b79df01890cd9bd5642bfa54571e9e2e370", kill_on_drop: false }` [INFO] [stdout] 66fa516b54b6728f9c8d2130f3140b79df01890cd9bd5642bfa54571e9e2e370