[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 master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsss-y-u%2Ferror_handling" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sss-y-u/error_handling 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/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-9/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" "+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-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca0919328ef2bfd5f1e47d8e639145e185e5a301608b62f5f71a8802af49691f [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" "ca0919328ef2bfd5f1e47d8e639145e185e5a301608b62f5f71a8802af49691f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca0919328ef2bfd5f1e47d8e639145e185e5a301608b62f5f71a8802af49691f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca0919328ef2bfd5f1e47d8e639145e185e5a301608b62f5f71a8802af49691f", kill_on_drop: false }` [INFO] [stdout] ca0919328ef2bfd5f1e47d8e639145e185e5a301608b62f5f71a8802af49691f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4b3c330e7b06f665ce05c522095ba63be5ea57bfbe61d00d54e67ce78f6c506 [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" "e4b3c330e7b06f665ce05c522095ba63be5ea57bfbe61d00d54e67ce78f6c506", kill_on_drop: false }` [INFO] [stderr] Checking error_handring v0.1.0 (/opt/rustwide/workdir) [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 `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 `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[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 `std::result::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 `std::result::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 `std::result::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 `std::result::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" "e4b3c330e7b06f665ce05c522095ba63be5ea57bfbe61d00d54e67ce78f6c506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4b3c330e7b06f665ce05c522095ba63be5ea57bfbe61d00d54e67ce78f6c506", kill_on_drop: false }` [INFO] [stdout] e4b3c330e7b06f665ce05c522095ba63be5ea57bfbe61d00d54e67ce78f6c506