[INFO] fetching crate hb_macros 0.1.3... [INFO] testing hb_macros-0.1.3 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate hb_macros 0.1.3 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate hb_macros 0.1.3 [INFO] finished tweaking crates.io crate hb_macros 0.1.3 [INFO] tweaked toml for crates.io crate hb_macros 0.1.3 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hb_macros 0.1.3 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] baae7921d3d0f7817179987c3b19881962c99857922cae29992ceeb727095937 [INFO] running `Command { std: "docker" "start" "-a" "baae7921d3d0f7817179987c3b19881962c99857922cae29992ceeb727095937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "baae7921d3d0f7817179987c3b19881962c99857922cae29992ceeb727095937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baae7921d3d0f7817179987c3b19881962c99857922cae29992ceeb727095937", kill_on_drop: false }` [INFO] [stdout] baae7921d3d0f7817179987c3b19881962c99857922cae29992ceeb727095937 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 666bc43390ed0788fc1a01cea816684da7a8f36d479b844f1d6b0f6b9aafeef0 [INFO] running `Command { std: "docker" "start" "-a" "666bc43390ed0788fc1a01cea816684da7a8f36d479b844f1d6b0f6b9aafeef0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hb_macros v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.26s [INFO] running `Command { std: "docker" "inspect" "666bc43390ed0788fc1a01cea816684da7a8f36d479b844f1d6b0f6b9aafeef0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "666bc43390ed0788fc1a01cea816684da7a8f36d479b844f1d6b0f6b9aafeef0", kill_on_drop: false }` [INFO] [stdout] 666bc43390ed0788fc1a01cea816684da7a8f36d479b844f1d6b0f6b9aafeef0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc65cbccdd256501020767a52982c6a1fc426c7600c5d60d5266debb9eba5779 [INFO] running `Command { std: "docker" "start" "-a" "bc65cbccdd256501020767a52982c6a1fc426c7600c5d60d5266debb9eba5779", kill_on_drop: false }` [INFO] [stderr] Compiling hb_macros v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.98s [INFO] running `Command { std: "docker" "inspect" "bc65cbccdd256501020767a52982c6a1fc426c7600c5d60d5266debb9eba5779", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc65cbccdd256501020767a52982c6a1fc426c7600c5d60d5266debb9eba5779", kill_on_drop: false }` [INFO] [stdout] bc65cbccdd256501020767a52982c6a1fc426c7600c5d60d5266debb9eba5779 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b9180fe79c891140f4d68fc6f3973d01cab55c096b0804098080c841783daee1 [INFO] running `Command { std: "docker" "start" "-a" "b9180fe79c891140f4d68fc6f3973d01cab55c096b0804098080c841783daee1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hb_macros-ab9335bebfa4f0a6) [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 hb_macros [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/lib.rs - context (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 141) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 137) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 147) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 171) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 183) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 167) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 394) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 348) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 386) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 337) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 500) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 440) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 179) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 448) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 508) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - context (line 153) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 5 | let ret: Result<(), ExampleError> = { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `example_error` in this scope [INFO] [stdout] --> src/lib.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 7 | example_error [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - context (line 141) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hb_error` [INFO] [stdout] --> src/lib.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 3 | return hb_error::ConvertInto::>::convert(example_error()).map_err(|e| e.msg("some context message")); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hb_error` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hb_error`, use `cargo add hb_error` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:142:43 [INFO] [stdout] | [INFO] [stdout] 3 | return hb_error::ConvertInto::>::convert(example_error()).map_err(|e| e.msg("some context message")); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_141_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:142:67 [INFO] [stdout] | [INFO] [stdout] 3 | return hb_error::ConvertInto::>::convert(example_error()).map_err(|e| e.msg("some context message")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - context (line 137) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 3 | return example_error(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 - context (line 147) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `example_error` in this scope [INFO] [stdout] --> src/lib.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 4 | example_error [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - context (line 171) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 3 | let a = example_error().make_inner().msg("some context message")?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 - context (line 183) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:184:38 [INFO] [stdout] | [INFO] [stdout] 3 | type HbErrorContextType = Result<(), ExampleError>; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | type HbErrorContextType = Result<(), ExampleError>; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - context (line 130) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:132:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn find_msg(msg: String) -> Result {...} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 4 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 4 + fn find_msg(msg: String) -> Result {..} [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 4 + fn find_msg(msg: String) -> Result {..=} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:132:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn find_msg(msg: String) -> Result {...} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 4 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 4 + fn find_msg(msg: String) -> Result {..} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `context` in this scope [INFO] [stdout] --> src/lib.rs:131:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[context("could not find message {msg}")] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use hb_macros::context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FindError` in this scope [INFO] [stdout] --> src/lib.rs:132:42 [INFO] [stdout] | [INFO] [stdout] 4 | fn find_msg(msg: String) -> Result {...} [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn find_msg(msg: String) -> Result {...} [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - context (line 167) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 3 | let a = example_error()?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 - hberror (line 394) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `default` [INFO] [stdout] --> src/lib.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 11 | msg: default::Default(), [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `default` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `default`, use `cargo add default` to add it to your `Cargo.toml` [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 11 - msg: default::Default(), [INFO] [stdout] 11 + msg: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `default` [INFO] [stdout] --> src/lib.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 12 | inner_msgs: default::Default(), [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `default` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `default`, use `cargo add default` to add it to your `Cargo.toml` [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 12 - inner_msgs: default::Default(), [INFO] [stdout] 12 + inner_msgs: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ErrorContext` in this scope [INFO] [stdout] --> src/lib.rs:409:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl ErrorContext for ExampleError { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - convert_error (line 348) stdout ---- [INFO] [stdout] error: expected `{`, found `,` [INFO] [stdout] --> src/lib.rs:353:44 [INFO] [stdout] | [INFO] [stdout] 7 | if hb_error::ConvertInto::Result<(), ExampleError>::convert(io_error())? { [INFO] [stdout] | ^ expected `{` [INFO] [stdout] | [INFO] [stdout] note: the `if` expression is missing a block after this condition [INFO] [stdout] --> src/lib.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 7 | if hb_error::ConvertInto::Result<(), ExampleError>::convert(io_error())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:349:39 [INFO] [stdout] | [INFO] [stdout] 3 | fn basic_exampleerror() -> Result<(), ExampleError> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn basic_exampleerror() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:351:25 [INFO] [stdout] | [INFO] [stdout] 5 | let ret: Result<(), ExampleError> = { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn basic_exampleerror() -> Result<(), ExampleError> { [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 E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hberror (line 386) stdout ---- [INFO] [stdout] error: cannot find attribute `hberror` in this scope [INFO] [stdout] --> src/lib.rs:387:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[hberror] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use hb_macros::hberror; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - convert_error (line 337) stdout ---- [INFO] [stdout] error: cannot find attribute `convert_error` in this scope [INFO] [stdout] --> src/lib.rs:338:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[convert_error] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use hb_macros::convert_error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:339:39 [INFO] [stdout] | [INFO] [stdout] 4 | fn basic_exampleerror() -> Result<(), ExampleError> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn basic_exampleerror() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `io_error` in this scope [INFO] [stdout] --> src/lib.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 5 | if io_error()? { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:341:16 [INFO] [stdout] | [INFO] [stdout] 6 | return example_error().map_err(|e| e.msg("msgs are great")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `example_error` in this scope [INFO] [stdout] --> src/lib.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 8 | example_error() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hberror (line 500) stdout ---- [INFO] [stdout] error: cannot find attribute `hberror` in this scope [INFO] [stdout] --> src/lib.rs:501:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[hberror] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use hb_macros::hberror; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `Source` in this scope [INFO] [stdout] --> src/lib.rs:503:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[Source] [INFO] [stdout] | ^^^^^^ [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 - hberror (line 440) stdout ---- [INFO] [stdout] error: expected attribute, found derive macro `Default` [INFO] [stdout] --> src/lib.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[Default(10)] [INFO] [stdout] | ^^^^^^^ not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `hberror` in this scope [INFO] [stdout] --> src/lib.rs:441:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[hberror("{self.custom_field}:{self.msg}{self.inner_msgs.join(\"\n...due to...\")}")] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use hb_macros::hberror; [INFO] [stdout] | [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 - context (line 179) stdout ---- [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 3 | Ok(()) [INFO] [stdout] | ^^ cannot infer type of the type parameter `E` declared on the enum `Result` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 3 | Ok::<(), E>(()) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hberror (line 448) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `default` [INFO] [stdout] --> src/lib.rs:458:18 [INFO] [stdout] | [INFO] [stdout] 12 | msg: default::Default(), [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `default` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `default`, use `cargo add default` to add it to your `Cargo.toml` [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 12 - msg: default::Default(), [INFO] [stdout] 12 + msg: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `default` [INFO] [stdout] --> src/lib.rs:459:25 [INFO] [stdout] | [INFO] [stdout] 13 | inner_msgs: default::Default(), [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `default` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `default`, use `cargo add default` to add it to your `Cargo.toml` [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 13 - inner_msgs: default::Default(), [INFO] [stdout] 13 + inner_msgs: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ErrorContext` in this scope [INFO] [stdout] --> src/lib.rs:465:6 [INFO] [stdout] | [INFO] [stdout] 19 | impl ErrorContext for ExampleError { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hberror (line 508) stdout ---- [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/lib.rs:569:80 [INFO] [stdout] | [INFO] [stdout] 63 | ExampleErrorSource::IOError(e) => write!("\n...Source Error...{}", e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 63 | ExampleErrorSource::IOError(e) => write!("\n...Source Error...{}", "{}", e) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/lib.rs:578:80 [INFO] [stdout] | [INFO] [stdout] 72 | ExampleErrorSource::IOError(e) => write!("\n...Source Error...{}", e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 72 | ExampleErrorSource::IOError(e) => write!("\n...Source Error...{}", "{}", e) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found trait `default::Default` [INFO] [stdout] --> src/lib.rs:519:18 [INFO] [stdout] | [INFO] [stdout] 13 | msg: default::Default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a function, tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant instead [INFO] [stdout] | [INFO] [stdout] 2 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 13 - msg: default::Default(), [INFO] [stdout] 13 + msg: Default(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found trait `default::Default` [INFO] [stdout] --> src/lib.rs:520:25 [INFO] [stdout] | [INFO] [stdout] 14 | inner_msgs: default::Default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a function, tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant instead [INFO] [stdout] | [INFO] [stdout] 2 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 14 - inner_msgs: default::Default(), [INFO] [stdout] 14 + inner_msgs: Default(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found trait `default::Default` [INFO] [stdout] --> src/lib.rs:521:21 [INFO] [stdout] | [INFO] [stdout] 15 | source: default::Default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a function, tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant instead [INFO] [stdout] | [INFO] [stdout] 2 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - source: default::Default(), [INFO] [stdout] 15 + source: Default(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ErrorContext` in this scope [INFO] [stdout] --> src/lib.rs:531:6 [INFO] [stdout] | [INFO] [stdout] 25 | impl ErrorContext for ExampleError { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0423. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - context (line 130) [INFO] [stdout] src/lib.rs - context (line 137) [INFO] [stdout] src/lib.rs - context (line 141) [INFO] [stdout] src/lib.rs - context (line 147) [INFO] [stdout] src/lib.rs - context (line 153) [INFO] [stdout] src/lib.rs - context (line 167) [INFO] [stdout] src/lib.rs - context (line 171) [INFO] [stdout] src/lib.rs - context (line 179) [INFO] [stdout] src/lib.rs - context (line 183) [INFO] [stdout] src/lib.rs - convert_error (line 337) [INFO] [stdout] src/lib.rs - convert_error (line 348) [INFO] [stdout] src/lib.rs - hberror (line 386) [INFO] [stdout] src/lib.rs - hberror (line 394) [INFO] [stdout] src/lib.rs - hberror (line 440) [INFO] [stdout] src/lib.rs - hberror (line 448) [INFO] [stdout] src/lib.rs - hberror (line 500) [INFO] [stdout] src/lib.rs - hberror (line 508) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.09s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b9180fe79c891140f4d68fc6f3973d01cab55c096b0804098080c841783daee1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9180fe79c891140f4d68fc6f3973d01cab55c096b0804098080c841783daee1", kill_on_drop: false }` [INFO] [stdout] b9180fe79c891140f4d68fc6f3973d01cab55c096b0804098080c841783daee1