[INFO] cloning repository https://github.com/jinwatanabe/rust-reverse-polish
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jinwatanabe/rust-reverse-polish" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinwatanabe%2Frust-reverse-polish", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinwatanabe%2Frust-reverse-polish'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] aa0625a7367d4015d6b41feb9c0ff1083228a6d3
[INFO] testing jinwatanabe/rust-reverse-polish against 1.97.0-beta.6 for beta-1.98-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinwatanabe%2Frust-reverse-polish" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jinwatanabe/rust-reverse-polish
[INFO] finished tweaking git repo https://github.com/jinwatanabe/rust-reverse-polish
[INFO] tweaked toml for git repo https://github.com/jinwatanabe/rust-reverse-polish written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jinwatanabe/rust-reverse-polish on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jinwatanabe/rust-reverse-polish already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded proc-macro2 v1.0.50
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547
[INFO] running `Command { std: "docker" "start" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.50
[INFO] [stderr]    Compiling unicode-ident v1.0.6
[INFO] [stderr]    Compiling quote v1.0.23
[INFO] [stderr]    Compiling syn v1.0.107
[INFO] [stderr]    Compiling libc v0.2.139
[INFO] [stderr]    Compiling os_str_bytes v6.4.1
[INFO] [stderr]    Compiling heck v0.4.0
[INFO] [stderr]    Compiling once_cell v1.17.0
[INFO] [stderr]    Compiling textwrap v0.16.0
[INFO] [stderr]    Compiling termcolor v1.2.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling indexmap v1.9.2
[INFO] [stderr]    Compiling clap_lex v0.2.4
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling clap_derive v3.2.18
[INFO] [stderr]    Compiling clap v3.2.23
[INFO] [stderr]    Compiling rust-reverse-polish 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::{Context, Result};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]  --> src/bin/err_anyhow.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 6 |       let num_str = std::fs::read_to_string(path)
[INFO] [stdout]   |  ___________________-
[INFO] [stdout] 7 | |         .with_context(|| format!("failed to read file: {}", path))?;
[INFO] [stdout]   | |         -^^^^^^^^^^^^ method not found in `Result<String, std::io::Error>`
[INFO] [stdout]   | |_________|
[INFO] [stdout]   |
[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[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 unresolved module or unlinked crate `thiserror`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-reverse-polish` (bin "err_anyhow") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]  --> src/bin/err_thiserror.rs:5:4
[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:4
[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:15
[INFO] [stdout]   |
[INFO] [stdout] 8 |     ParseError(#[from] std::num::ParseIntError),
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/bin/err_thiserror.rs:14:77
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let num_str = std::fs::read_to_string(path).map_err(|_| MyError::ReadError((path.into())))?;
[INFO] [stdout]    |                                                                                ^           ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 14 -     let num_str = std::fs::read_to_string(path).map_err(|_| MyError::ReadError((path.into())))?;
[INFO] [stdout] 14 +     let num_str = std::fs::read_to_string(path).map_err(|_| MyError::ReadError(path.into() ))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `anyhow`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{bail, ensure, Context, Result};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Option<T>` in the current scope
[INFO] [stdout]   --> src/main.rs:30:37
[INFO] [stdout]    |
[INFO] [stdout] 30 |                 let y = stack.pop().context(format!("invalid syntax at {}", pos))?;
[INFO] [stdout]    |                                     ^^^^^^^ method not found in `Option<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Option<T>` in the current scope
[INFO] [stdout]   --> src/main.rs:31:37
[INFO] [stdout]    |
[INFO] [stdout] 31 |                 let x = stack.pop().context(format!("invalid syntax at {}", pos))?;
[INFO] [stdout]    |                                     ^^^^^^^ method not found in `Option<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0631]: type mismatch in function arguments
[INFO] [stdout]   --> src/bin/err_thiserror.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |         .map_err(MyError::from)
[INFO] [stdout]    |          ------- ^^^^^^^^^^^^^
[INFO] [stdout]    |          |       |
[INFO] [stdout]    |          |       expected due to this
[INFO] [stdout]    |          |       found signature defined here
[INFO] [stdout]    |          required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected function signature `fn(ParseIntError) -> _`
[INFO] [stdout]               found function signature `fn(MyError) -> _`
[INFO] [stdout] note: required by a bound in `Result::<T, E>::map_err`
[INFO] [stdout]   --> /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/core/src/result.rs:962:4
[INFO] [stdout] help: consider wrapping the function in a closure
[INFO] [stdout]    |
[INFO] [stdout] 19 |         .map_err(|arg0: ParseIntError| MyError::from(/* MyError */))
[INFO] [stdout]    |                  +++++++++++++++++++++              +++++++++++++++
[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[E0277]: `MyError` doesn't implement `std::fmt::Display`
[INFO] [stdout]   --> src/bin/err_thiserror.rs:25:35
[INFO] [stdout]    |
[INFO] [stdout] 25 |         Err(e) => println!("Error: {}", e),
[INFO] [stdout]    |                                    --   ^ `MyError` cannot be formatted with the default formatter
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    required by this formatting parameter
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `MyError`
[INFO] [stdout]   --> src/bin/err_thiserror.rs:4:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | enum MyError {
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0631.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-reverse-polish` (bin "err_thiserror") due to 6 previous errors; 1 warning emitted
[INFO] [stderr] error: could not compile `rust-reverse-polish` (bin "rust-reverse-polish") due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547", kill_on_drop: false }`
[INFO] [stdout] 080b0647cfd7a02cb8deef516bf28bbc9502b11ecdcfef307cd3edbd7fd8c547
