[INFO] fetching crate hb_macros 0.1.3... [INFO] testing hb_macros-0.1.3 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate hb_macros 0.1.3 into /workspace/builds/worker-1-tc1/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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate hb_macros 0.1.3 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf7822375a8dd7c2980d7f760fdd7f786491c36dff8ad27b31512492f02e93aa [INFO] running `Command { std: "docker" "start" "-a" "bf7822375a8dd7c2980d7f760fdd7f786491c36dff8ad27b31512492f02e93aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf7822375a8dd7c2980d7f760fdd7f786491c36dff8ad27b31512492f02e93aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf7822375a8dd7c2980d7f760fdd7f786491c36dff8ad27b31512492f02e93aa", kill_on_drop: false }` [INFO] [stdout] bf7822375a8dd7c2980d7f760fdd7f786491c36dff8ad27b31512492f02e93aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1ad9f1e88b29882ae00d854504c4d9473e6d956a71ef9b714f256c45efd3ed8 [INFO] running `Command { std: "docker" "start" "-a" "e1ad9f1e88b29882ae00d854504c4d9473e6d956a71ef9b714f256c45efd3ed8", 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 8.13s [INFO] running `Command { std: "docker" "inspect" "e1ad9f1e88b29882ae00d854504c4d9473e6d956a71ef9b714f256c45efd3ed8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ad9f1e88b29882ae00d854504c4d9473e6d956a71ef9b714f256c45efd3ed8", kill_on_drop: false }` [INFO] [stdout] e1ad9f1e88b29882ae00d854504c4d9473e6d956a71ef9b714f256c45efd3ed8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a92824401e9ce153952a27ba1d206d92c9428283d6cdc3ba33ceb9822b53af7 [INFO] running `Command { std: "docker" "start" "-a" "0a92824401e9ce153952a27ba1d206d92c9428283d6cdc3ba33ceb9822b53af7", 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.22s [INFO] running `Command { std: "docker" "inspect" "0a92824401e9ce153952a27ba1d206d92c9428283d6cdc3ba33ceb9822b53af7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a92824401e9ce153952a27ba1d206d92c9428283d6cdc3ba33ceb9822b53af7", kill_on_drop: false }` [INFO] [stdout] 0a92824401e9ce153952a27ba1d206d92c9428283d6cdc3ba33ceb9822b53af7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 593cd19dbcf77830daf546e7d339bdc83e554d68a0b66f0fe46a9c3a2c54828b [INFO] running `Command { std: "docker" "start" "-a" "593cd19dbcf77830daf546e7d339bdc83e554d68a0b66f0fe46a9c3a2c54828b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hb_macros-5d1357cc4eb6dc9f) [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 137) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 147) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 183) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 448) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 141) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 348) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 167) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 500) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 337) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 171) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 386) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 508) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 394) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 179) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 440) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 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 - 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 - 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 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 - 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 - 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 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 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 - 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 - 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 - 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 - 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] ---- 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] [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 - 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 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] [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 0.55s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "593cd19dbcf77830daf546e7d339bdc83e554d68a0b66f0fe46a9c3a2c54828b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "593cd19dbcf77830daf546e7d339bdc83e554d68a0b66f0fe46a9c3a2c54828b", kill_on_drop: false }` [INFO] [stdout] 593cd19dbcf77830daf546e7d339bdc83e554d68a0b66f0fe46a9c3a2c54828b