[INFO] fetching crate hb_macros 0.1.3... [INFO] testing hb_macros-0.1.3 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate hb_macros 0.1.3 into /workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate hb_macros 0.1.3 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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.110) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bba4d5191167df6e0da7881cce6aa01b78a4471f88be85ca51c4cbca999b2a71 [INFO] running `Command { std: "docker" "start" "-a" "bba4d5191167df6e0da7881cce6aa01b78a4471f88be85ca51c4cbca999b2a71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bba4d5191167df6e0da7881cce6aa01b78a4471f88be85ca51c4cbca999b2a71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bba4d5191167df6e0da7881cce6aa01b78a4471f88be85ca51c4cbca999b2a71", kill_on_drop: false }` [INFO] [stdout] bba4d5191167df6e0da7881cce6aa01b78a4471f88be85ca51c4cbca999b2a71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 809f64ba03ddba5cd013f3d8ed05e75d420e69b2abe37033f3223fe42ae339f4 [INFO] running `Command { std: "docker" "start" "-a" "809f64ba03ddba5cd013f3d8ed05e75d420e69b2abe37033f3223fe42ae339f4", 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.27s [INFO] running `Command { std: "docker" "inspect" "809f64ba03ddba5cd013f3d8ed05e75d420e69b2abe37033f3223fe42ae339f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "809f64ba03ddba5cd013f3d8ed05e75d420e69b2abe37033f3223fe42ae339f4", kill_on_drop: false }` [INFO] [stdout] 809f64ba03ddba5cd013f3d8ed05e75d420e69b2abe37033f3223fe42ae339f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48714195324f6e3d567c0b81ad35449c0bb061560afb7239286a6a13377d81ea [INFO] running `Command { std: "docker" "start" "-a" "48714195324f6e3d567c0b81ad35449c0bb061560afb7239286a6a13377d81ea", 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.06s [INFO] running `Command { std: "docker" "inspect" "48714195324f6e3d567c0b81ad35449c0bb061560afb7239286a6a13377d81ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48714195324f6e3d567c0b81ad35449c0bb061560afb7239286a6a13377d81ea", kill_on_drop: false }` [INFO] [stdout] 48714195324f6e3d567c0b81ad35449c0bb061560afb7239286a6a13377d81ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d7d2453f9e3c50fc3445c4fd6a8049aa218f20bb7eb7c53153d7a13996ead63a [INFO] running `Command { std: "docker" "start" "-a" "d7d2453f9e3c50fc3445c4fd6a8049aa218f20bb7eb7c53153d7a13996ead63a", 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-2d9ef78672f77b53) [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 130) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 348) ... 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 - hberror (line 508) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 500) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 440) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 167) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 183) ... FAILED [INFO] [stdout] test src/lib.rs - convert_error (line 337) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 394) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 137) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 448) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 141) ... FAILED [INFO] [stdout] test src/lib.rs - hberror (line 386) ... FAILED [INFO] [stdout] test src/lib.rs - context (line 179) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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[E0412]: 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: 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 - 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[E0412]: 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[E0412]: 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 E0412`. [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] 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] 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] 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 - 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] ---- 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 - 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] 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[E0412]: 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | ret.map_err(|er| er.make_inner().msg("Some context message.")) [INFO] [stdout] | ^^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 161 | ret.map_err(|er: /* Type */| er.make_inner().msg("Some context message.")) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425. [INFO] [stdout] For more information about an 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] 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 - 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 - 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] 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 E0412`. [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[E0412]: 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:341:41 [INFO] [stdout] | [INFO] [stdout] 341 | return example_error().map_err(|e| e.msg("msgs are great")); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 341 | return example_error().map_err(|e: /* Type */| e.msg("msgs are great")); [INFO] [stdout] | ++++++++++++ [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 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [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] 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]: failed to resolve: use of unresolved module or unlinked crate `default` [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 - 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 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] 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]: failed to resolve: use of unresolved module or unlinked crate `default` [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] [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 - 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] 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[E0412]: 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:142:93 [INFO] [stdout] | [INFO] [stdout] 142 | return hb_error::ConvertInto::>::convert(example_error()).map_err(|e| e.msg("some context message")); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 142 | return hb_error::ConvertInto::>::convert(example_error()).map_err(|e: /* Type */| e.msg("some context message")); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [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] [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.46s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d7d2453f9e3c50fc3445c4fd6a8049aa218f20bb7eb7c53153d7a13996ead63a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7d2453f9e3c50fc3445c4fd6a8049aa218f20bb7eb7c53153d7a13996ead63a", kill_on_drop: false }` [INFO] [stdout] d7d2453f9e3c50fc3445c4fd6a8049aa218f20bb7eb7c53153d7a13996ead63a