[INFO] fetching crate hb_macros 0.1.3... [INFO] testing hb_macros-0.1.3 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-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 dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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.117) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47ef517e3c1cc95904b477c61584c61a68630f4ab1d751dee9ee2c5d04d871c9 [INFO] running `Command { std: "docker" "start" "-a" "47ef517e3c1cc95904b477c61584c61a68630f4ab1d751dee9ee2c5d04d871c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47ef517e3c1cc95904b477c61584c61a68630f4ab1d751dee9ee2c5d04d871c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47ef517e3c1cc95904b477c61584c61a68630f4ab1d751dee9ee2c5d04d871c9", kill_on_drop: false }` [INFO] [stdout] 47ef517e3c1cc95904b477c61584c61a68630f4ab1d751dee9ee2c5d04d871c9 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ae1a2b411a10351f77facf8c13761205e514d112eadb399ee999e2ac4babd2e [INFO] running `Command { std: "docker" "start" "-a" "9ae1a2b411a10351f77facf8c13761205e514d112eadb399ee999e2ac4babd2e", 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.83s [INFO] running `Command { std: "docker" "inspect" "9ae1a2b411a10351f77facf8c13761205e514d112eadb399ee999e2ac4babd2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ae1a2b411a10351f77facf8c13761205e514d112eadb399ee999e2ac4babd2e", kill_on_drop: false }` [INFO] [stdout] 9ae1a2b411a10351f77facf8c13761205e514d112eadb399ee999e2ac4babd2e [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c0880d720a723de0eb2cc623a0e86fbc9bd170579845d7b2137508fa91e0fcd [INFO] running `Command { std: "docker" "start" "-a" "3c0880d720a723de0eb2cc623a0e86fbc9bd170579845d7b2137508fa91e0fcd", 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 3.05s [INFO] running `Command { std: "docker" "inspect" "3c0880d720a723de0eb2cc623a0e86fbc9bd170579845d7b2137508fa91e0fcd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c0880d720a723de0eb2cc623a0e86fbc9bd170579845d7b2137508fa91e0fcd", kill_on_drop: false }` [INFO] [stdout] 3c0880d720a723de0eb2cc623a0e86fbc9bd170579845d7b2137508fa91e0fcd [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d9d5c788b120a98dd4d240d33db691bb27bff00a7d414327c5b7f118351f21fc [INFO] running `Command { std: "docker" "start" "-a" "d9d5c788b120a98dd4d240d33db691bb27bff00a7d414327c5b7f118351f21fc", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hb_macros-f0b310bf8d0b4e7c) [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 171) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 147) ... 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 - hberror (line 386) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 179) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 183) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 348) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 337) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 137) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 440) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 500) ... 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[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 154 | 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] 154 | fn something() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 156 | 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] 154 | 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] 158 | example_error [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/lib.rs - context (line 141) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `hb_error` in this scope [INFO] [stdout] --> src/lib.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | 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[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:142:43 [INFO] [stdout] | [INFO] [stdout] 142 | 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] 141 | 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] 142 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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] 172 | 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 147) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | 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] 148 | 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] 149 | example_error [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/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] 168 | 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]: cannot find module or crate `default` in this scope [INFO] [stdout] --> src/lib.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 403 | 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] 403 - msg: default::Default(), [INFO] [stdout] 403 + msg: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 394 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `default` in this scope [INFO] [stdout] --> src/lib.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 404 | 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] 404 - inner_msgs: default::Default(), [INFO] [stdout] 404 + inner_msgs: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 394 + 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] 409 | 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 386) stdout ---- [INFO] [stdout] error: cannot find attribute `hberror` in this scope [INFO] [stdout] --> src/lib.rs:387:3 [INFO] [stdout] | [INFO] [stdout] 387 | #[hberror] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 386 + 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 - context (line 179) stdout ---- [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | 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] 180 | 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 - context (line 183) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:184:38 [INFO] [stdout] | [INFO] [stdout] 184 | 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] 184 | 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 E0425`. [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] 353 | 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] 353 | if hb_error::ConvertInto::Result<(), ExampleError>::convert(io_error())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:349:39 [INFO] [stdout] | [INFO] [stdout] 349 | 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] 349 | fn basic_exampleerror() -> Result<(), ExampleError> { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:351:25 [INFO] [stdout] | [INFO] [stdout] 351 | 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] 349 | 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 E0425`. [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] 132 | fn find_msg(msg: String) -> Result {...} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 132 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 132 + fn find_msg(msg: String) -> Result {..} [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 132 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 132 + 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] 132 | 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] 132 - fn find_msg(msg: String) -> Result {...} [INFO] [stdout] 132 + 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] 131 | #[context("could not find message {msg}")] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 130 + use hb_macros::context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `FindError` in this scope [INFO] [stdout] --> src/lib.rs:132:42 [INFO] [stdout] | [INFO] [stdout] 132 | 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] 132 | 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: E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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] 338 | #[convert_error] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 337 + use hb_macros::convert_error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ExampleError` in this scope [INFO] [stdout] --> src/lib.rs:339:39 [INFO] [stdout] | [INFO] [stdout] 339 | 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] 339 | 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] 340 | 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] 341 | 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] 343 | example_error() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/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] 138 | 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 - hberror (line 440) stdout ---- [INFO] [stdout] error: expected attribute, found derive macro `Default` [INFO] [stdout] --> src/lib.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | #[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] 441 | #[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] 440 + 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 - 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] 501 | #[hberror] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 500 + 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] 503 | #[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 448) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `default` in this scope [INFO] [stdout] --> src/lib.rs:458:18 [INFO] [stdout] | [INFO] [stdout] 458 | 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] 458 - msg: default::Default(), [INFO] [stdout] 458 + msg: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 448 + use std::default; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `default` in this scope [INFO] [stdout] --> src/lib.rs:459:25 [INFO] [stdout] | [INFO] [stdout] 459 | 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] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] 459 - inner_msgs: default::Default(), [INFO] [stdout] 459 + inner_msgs: Default::Default(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 448 + 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] 465 | 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] 569 | 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] 569 | 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] 578 | 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] 578 | 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] 519 | 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] 508 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 519 - msg: default::Default(), [INFO] [stdout] 519 + 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] 520 | 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] 508 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 520 - inner_msgs: default::Default(), [INFO] [stdout] 520 + 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] 521 | 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] 508 + use syn::ReturnType::Default; [INFO] [stdout] | [INFO] [stdout] help: if you import `Default`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 521 - source: default::Default(), [INFO] [stdout] 521 + 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] 531 | 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 0.64s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d9d5c788b120a98dd4d240d33db691bb27bff00a7d414327c5b7f118351f21fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9d5c788b120a98dd4d240d33db691bb27bff00a7d414327c5b7f118351f21fc", kill_on_drop: false }` [INFO] [stdout] d9d5c788b120a98dd4d240d33db691bb27bff00a7d414327c5b7f118351f21fc