[INFO] fetching crate utils-results 5.2.1... [INFO] testing utils-results-5.2.1 against 1.55.0 for beta-1.56-1 [INFO] extracting crate utils-results 5.2.1 into /workspace/builds/worker-28/source [INFO] validating manifest of crates.io crate utils-results 5.2.1 on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate utils-results 5.2.1 [INFO] finished tweaking crates.io crate utils-results 5.2.1 [INFO] tweaked toml for crates.io crate utils-results 5.2.1 written to /workspace/builds/worker-28/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfdea45e556efb3c069df0c640db3ef0b5de4a61e24177ce08ab724255d9efce [INFO] running `Command { std: "docker" "start" "-a" "cfdea45e556efb3c069df0c640db3ef0b5de4a61e24177ce08ab724255d9efce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfdea45e556efb3c069df0c640db3ef0b5de4a61e24177ce08ab724255d9efce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfdea45e556efb3c069df0c640db3ef0b5de4a61e24177ce08ab724255d9efce", kill_on_drop: false }` [INFO] [stdout] cfdea45e556efb3c069df0c640db3ef0b5de4a61e24177ce08ab724255d9efce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9067e6903ca78e13691ec5636940a2f2e934bcf35f041deed560952da5b014b3 [INFO] running `Command { std: "docker" "start" "-a" "9067e6903ca78e13691ec5636940a2f2e934bcf35f041deed560952da5b014b3", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.43 [INFO] [stderr] Compiling utils-results v5.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "9067e6903ca78e13691ec5636940a2f2e934bcf35f041deed560952da5b014b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9067e6903ca78e13691ec5636940a2f2e934bcf35f041deed560952da5b014b3", kill_on_drop: false }` [INFO] [stdout] 9067e6903ca78e13691ec5636940a2f2e934bcf35f041deed560952da5b014b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 328de76e8df4ee70877516c6417c2a6d1bf072b6704a7c8e54e07fc6933e0297 [INFO] running `Command { std: "docker" "start" "-a" "328de76e8df4ee70877516c6417c2a6d1bf072b6704a7c8e54e07fc6933e0297", kill_on_drop: false }` [INFO] [stderr] Compiling utils-results v5.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "328de76e8df4ee70877516c6417c2a6d1bf072b6704a7c8e54e07fc6933e0297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "328de76e8df4ee70877516c6417c2a6d1bf072b6704a7c8e54e07fc6933e0297", kill_on_drop: false }` [INFO] [stdout] 328de76e8df4ee70877516c6417c2a6d1bf072b6704a7c8e54e07fc6933e0297 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 30b8d6bb60da9620641cb460045ecf8a75efc0b93d70fccfa44edbc75f286d42 [INFO] running `Command { std: "docker" "start" "-a" "30b8d6bb60da9620641cb460045ecf8a75efc0b93d70fccfa44edbc75f286d42", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/utils_results-6fd955684dc7c244) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests utils-results [INFO] [stdout] [INFO] [stdout] running 30 tests [INFO] [stdout] test src/lib.rs - (line 185) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 179) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 117) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 132) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - err (line 114) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errunwrap (line 194) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 20) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 140) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 38) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 153) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errmatch (line 62) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errcast (line 35) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 8) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errcast_panic (line 227) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errcast (line 29) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 24) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errbang (line 9) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errpanic (line 213) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errcast_panic (line 233) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - io_err (line 257) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errextract (line 83) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 51) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - errunwrap (line 183) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 75) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 189) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 144) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - err_to_io (line 312) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - io_to_err (line 298) - compile ... FAILED [INFO] [stdout] test src/macros/errbang.rs - io_err (line 253) - compile ... FAILED [INFO] [stdout] test src/macros/results.rs - resultcast (line 7) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 117) stdout ---- [INFO] [stdout] error: cannot find macro `errextract` in this scope [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 4 | let c = errextract!(ccc(), err::Three => 127); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errextract [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 132) stdout ---- [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/lib.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 5 | let num_read = errcast!(file.read(&mut buf), err::ReadErr, "this is {} data.", "meta"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - err (line 114) stdout ---- [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 13 | errbang!(err::BrokenHeader); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `err` in this scope [INFO] [stdout] --> src/macros/errbang.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 3 | err! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::err [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errunwrap (line 194) stdout ---- [INFO] [stdout] error: expected expression, found `$` [INFO] [stdout] --> src/macros/errbang.rs:195:1 [INFO] [stdout] | [INFO] [stdout] 3 | $result.unwrap_err() [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 20) stdout ---- [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 3 | errbang!(err::BrokenHeader); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 140) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:141:60 [INFO] [stdout] | [INFO] [stdout] 3 | let file = errcast!(File::open("test"), err::FileOpenError) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_140_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/lib.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 3 | let file = errcast!(File::open("test"), err::FileOpenError) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 38) stdout ---- [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 6 | errbang!(err::MyError3, "{} is {}", "bar", 2); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 5 | errbang!(err::MyError2, "cannot find."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 4 | errbang!(err::MyError1); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 3 | errbang!("error."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 153) stdout ---- [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/lib.rs:155:16 [INFO] [stdout] | [INFO] [stdout] 3 | let file = errcast!(File::open("test"), err::FileOpenError); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errextract` in this scope [INFO] [stdout] --> src/lib.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 13 | let num = errextract!(exe(path), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errextract [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `num` in this scope [INFO] [stdout] --> src/lib.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 6 | Ok(num) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn exe(path: &str) -> Result { [INFO] [stdout] | ^^^^^^ ----- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 2 | fn exe(path: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 9 | fn main() -> Result<(), E> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errmatch (line 62) stdout ---- [INFO] [stdout] error: cannot find macro `errmatch` in this scope [INFO] [stdout] --> src/macros/errbang.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 5 | if errmatch!(e, err::MyError0) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errmatch [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `some_result` in this scope [INFO] [stdout] --> src/macros/errbang.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 3 | if let Err(e) = some_result() { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errcast (line 35) stdout ---- [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/macros/errbang.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 3 | let num_read = errcast!(file.read(&mut buf)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/macros/errbang.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 4 | let num_read = errcast!(file.read(&mut buf), "some error."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `err` in this scope [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 3 | err! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::err [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errcast_panic (line 227) stdout ---- [INFO] [stdout] error: cannot find macro `errcast_panic` in this scope [INFO] [stdout] --> src/macros/errbang.rs:230:16 [INFO] [stdout] | [INFO] [stdout] 5 | let num_read = errcast_panic!(file.read(&mut buf), err::ReadErr, "this is {} data.", "meta"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast_panic [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errcast (line 29) stdout ---- [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/macros/errbang.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 5 | let num_read = errcast!(file.read(&mut buf), err::ReadErr, "this is {} data.", "meta"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 24) stdout ---- [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 7 | _ => errbang!(err::NotMatched, "{} is {}", "bar", bar), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 2 | fn foo() -> Result { // Our Master Result Type [INFO] [stdout] | ^^^^^^ ---- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 2 | fn foo() -> Result { // Our Master Result Type [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 10 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 10 | fn main() -> Result<(), E> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errbang (line 9) stdout ---- [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 6 | errbang!(err::MyError3, "{} is {}", "bar", 2); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 5 | errbang!(err::MyError2, "cannot find."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 4 | errbang!(err::MyError1); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 3 | errbang!("error."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errpanic (line 213) stdout ---- [INFO] [stdout] error: cannot find macro `errpanic` in this scope [INFO] [stdout] --> src/macros/errbang.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 5 | errpanic!(err::MyError3, "{} is {}", "bar", 2); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errpanic [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errpanic` in this scope [INFO] [stdout] --> src/macros/errbang.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 4 | errpanic!(err::MyError2, "cannot find."); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errpanic [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errpanic` in this scope [INFO] [stdout] --> src/macros/errbang.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 3 | errpanic!(err::MyError1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errpanic [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errcast_panic (line 233) stdout ---- [INFO] [stdout] error: cannot find macro `errcast_panic` in this scope [INFO] [stdout] --> src/macros/errbang.rs:234:16 [INFO] [stdout] | [INFO] [stdout] 3 | let num_read = errcast_panic!(file.read(&mut buf)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast_panic [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - io_err (line 257) stdout ---- [INFO] [stdout] error: cannot find macro `io_err` in this scope [INFO] [stdout] --> src/macros/errbang.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 3 | io_err! { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::io_err [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errextract (line 83) stdout ---- [INFO] [stdout] error: cannot find macro `errcast` in this scope [INFO] [stdout] --> src/macros/errbang.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 3 | let file = errcast!(File::open("test"), err::FileOpenError); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errcast [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errextract` in this scope [INFO] [stdout] --> src/macros/errbang.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 13 | let num = errextract!(exe(path), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errextract [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `num` in this scope [INFO] [stdout] --> src/macros/errbang.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 6 | Ok(num) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/macros/errbang.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn exe(path: &str) -> Result { [INFO] [stdout] | ^^^^^^ ----- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 2 | fn exe(path: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/macros/errbang.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 9 | fn main() -> Result<(), E> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 51) stdout ---- [INFO] [stdout] error: cannot find macro `errunwrap` in this scope [INFO] [stdout] --> src/lib.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 9 | errunwrap!(foo(), err::Bar), "this is input." [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errunwrap [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/lib.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 5 | return errbang!(err::Bar, "this is input."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 3 | fn foo() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | fn foo() -> Result<(), E> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - errunwrap (line 183) stdout ---- [INFO] [stdout] error: cannot find macro `errunwrap` in this scope [INFO] [stdout] --> src/macros/errbang.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 8 | errunwrap!(foo(), err::Bar), "this is input." [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errunwrap [INFO] [stdout] [INFO] [stdout] error: cannot find macro `errbang` in this scope [INFO] [stdout] --> src/macros/errbang.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 4 | return errbang!(err::Bar, "this is input."); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::errbang [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/macros/errbang.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 3 | fn foo() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: enum defined here, with 2 generic parameters: `T`, `E` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | fn foo() -> Result<(), E> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `n` in this scope [INFO] [stdout] --> src/lib.rs:96:56 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(errcast!(bbb(), err::Three, "{}.three <- two.", n)) [INFO] [stdout] | ^ help: a local variable with a similar name exists: `e` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 189) stdout ---- [INFO] [stdout] error: cannot find macro `resultcast` in this scope [INFO] [stdout] --> src/lib.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 4 | resultcast!(handle.join().unwrap())?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::resultcast [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:191:36 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_189_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | resultcast!(handle.join().unwrap())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_189_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 144) stdout ---- [INFO] [stdout] error: expected `{`, found `std` [INFO] [stdout] --> src/lib.rs:148:7 [INFO] [stdout] | [INFO] [stdout] 6 | if no std, [INFO] [stdout] | -- ^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected `{` [INFO] [stdout] | | help: try placing this code inside a block: `{ std }` [INFO] [stdout] | this `if` expression has a condition, but no block [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/lib.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 4 | let file = File::open("test")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_144_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let file = File::open("test")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | if no std, [INFO] [stdout] 7 | | let file = io_to_err!(File::open("test"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_144_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - err_to_io (line 312) stdout ---- [INFO] [stdout] error: cannot find macro `err_to_io` in this scope [INFO] [stdout] --> src/macros/errbang.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 3 | err_to_io!(my_seek(0))? [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::err_to_io [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macros/errbang.rs:313:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_errbang_rs_312_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | err_to_io!(my_seek(0))? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_macros_errbang_rs_312_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - io_to_err (line 298) stdout ---- [INFO] [stdout] error: cannot find macro `io_to_err` in this scope [INFO] [stdout] --> src/macros/errbang.rs:299:1 [INFO] [stdout] | [INFO] [stdout] 3 | io_to_err!(file.seek(SeekFrom::End(0)))? [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::io_to_err [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macros/errbang.rs:299:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_errbang_rs_298_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | io_to_err!(file.seek(SeekFrom::End(0)))? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_macros_errbang_rs_298_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/errbang.rs - io_err (line 253) stdout ---- [INFO] [stdout] error: cannot find macro `io_to_err` in this scope [INFO] [stdout] --> src/macros/errbang.rs:254:1 [INFO] [stdout] | [INFO] [stdout] 3 | io_to_err!(file.seek(SeekFrom::End(0)))?; // <- io::Error to err [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::io_to_err [INFO] [stdout] [INFO] [stdout] error: cannot find macro `err_to_io` in this scope [INFO] [stdout] --> src/macros/errbang.rs:255:2 [INFO] [stdout] | [INFO] [stdout] 4 | err_to_io!(my_seek(0))?; // <- err to io::Error [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::err_to_io [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macros/errbang.rs:254:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_errbang_rs_253_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | io_to_err!(file.seek(SeekFrom::End(0)))?; // <- io::Error to err [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | err_to_io!(my_seek(0))?; // <- err to io::Error [INFO] [stdout] 5 | | } _doctest_main_src_macros_errbang_rs_253_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macros/errbang.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_errbang_rs_253_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | io_to_err!(file.seek(SeekFrom::End(0)))?; // <- io::Error to err [INFO] [stdout] 4 | | err_to_io!(my_seek(0))?; // <- err to io::Error [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_macros_errbang_rs_253_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros/results.rs - resultcast (line 7) stdout ---- [INFO] [stdout] error: cannot find macro `resultcast` in this scope [INFO] [stdout] --> src/macros/results.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 3 | resultcast!(handle.join().unwrap())?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] utils_results::resultcast [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macros/results.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macros_results_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | resultcast!(handle.join().unwrap())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_macros_results_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 117) [INFO] [stdout] src/lib.rs - (line 132) [INFO] [stdout] src/lib.rs - (line 140) [INFO] [stdout] src/lib.rs - (line 144) [INFO] [stdout] src/lib.rs - (line 153) [INFO] [stdout] src/lib.rs - (line 189) [INFO] [stdout] src/lib.rs - (line 20) [INFO] [stdout] src/lib.rs - (line 24) [INFO] [stdout] src/lib.rs - (line 38) [INFO] [stdout] src/lib.rs - (line 51) [INFO] [stdout] src/lib.rs - (line 75) [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] src/macros/errbang.rs - err (line 114) [INFO] [stdout] src/macros/errbang.rs - err_to_io (line 312) [INFO] [stdout] src/macros/errbang.rs - errbang (line 9) [INFO] [stdout] src/macros/errbang.rs - errcast (line 29) [INFO] [stdout] src/macros/errbang.rs - errcast (line 35) [INFO] [stdout] src/macros/errbang.rs - errcast_panic (line 227) [INFO] [stdout] src/macros/errbang.rs - errcast_panic (line 233) [INFO] [stdout] src/macros/errbang.rs - errextract (line 83) [INFO] [stdout] src/macros/errbang.rs - errmatch (line 62) [INFO] [stdout] src/macros/errbang.rs - errpanic (line 213) [INFO] [stdout] src/macros/errbang.rs - errunwrap (line 183) [INFO] [stdout] src/macros/errbang.rs - errunwrap (line 194) [INFO] [stdout] src/macros/errbang.rs - io_err (line 253) [INFO] [stdout] src/macros/errbang.rs - io_err (line 257) [INFO] [stdout] src/macros/errbang.rs - io_to_err (line 298) [INFO] [stdout] src/macros/results.rs - resultcast (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 28 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "30b8d6bb60da9620641cb460045ecf8a75efc0b93d70fccfa44edbc75f286d42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30b8d6bb60da9620641cb460045ecf8a75efc0b93d70fccfa44edbc75f286d42", kill_on_drop: false }` [INFO] [stdout] 30b8d6bb60da9620641cb460045ecf8a75efc0b93d70fccfa44edbc75f286d42