[INFO] fetching crate smarterr-macro 0.1.7... [INFO] testing smarterr-macro-0.1.7 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate smarterr-macro 0.1.7 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate smarterr-macro 0.1.7 [INFO] finished tweaking crates.io crate smarterr-macro 0.1.7 [INFO] tweaked toml for crates.io crate smarterr-macro 0.1.7 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate smarterr-macro 0.1.7 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] [stderr] Adding convert_case v0.6.0 (available: v0.8.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d055e83b3dd78f8fde4d61ee49a3892d340287f99878468ef241db085a6c60ce [INFO] running `Command { std: "docker" "start" "-a" "d055e83b3dd78f8fde4d61ee49a3892d340287f99878468ef241db085a6c60ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d055e83b3dd78f8fde4d61ee49a3892d340287f99878468ef241db085a6c60ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d055e83b3dd78f8fde4d61ee49a3892d340287f99878468ef241db085a6c60ce", kill_on_drop: false }` [INFO] [stdout] d055e83b3dd78f8fde4d61ee49a3892d340287f99878468ef241db085a6c60ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 26928a29a5afc646df361b9fa961ac3b50df7bbea5926eee55fbc77125de2211 [INFO] running `Command { std: "docker" "start" "-a" "26928a29a5afc646df361b9fa961ac3b50df7bbea5926eee55fbc77125de2211", kill_on_drop: false }` [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling smarterr-macro v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.35s [INFO] running `Command { std: "docker" "inspect" "26928a29a5afc646df361b9fa961ac3b50df7bbea5926eee55fbc77125de2211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26928a29a5afc646df361b9fa961ac3b50df7bbea5926eee55fbc77125de2211", kill_on_drop: false }` [INFO] [stdout] 26928a29a5afc646df361b9fa961ac3b50df7bbea5926eee55fbc77125de2211 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f3ed8580e196f820eeab2ad2cc18cbfb31df961582240c0d2d5577df4508036e [INFO] running `Command { std: "docker" "start" "-a" "f3ed8580e196f820eeab2ad2cc18cbfb31df961582240c0d2d5577df4508036e", kill_on_drop: false }` [INFO] [stderr] Compiling smarterr-macro v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "f3ed8580e196f820eeab2ad2cc18cbfb31df961582240c0d2d5577df4508036e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3ed8580e196f820eeab2ad2cc18cbfb31df961582240c0d2d5577df4508036e", kill_on_drop: false }` [INFO] [stdout] f3ed8580e196f820eeab2ad2cc18cbfb31df961582240c0d2d5577df4508036e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 268e9e7a7878ce8fad40d1da9cb67d4bb34b6aea7d147e67001cac1f4dbf9e09 [INFO] running `Command { std: "docker" "start" "-a" "268e9e7a7878ce8fad40d1da9cb67d4bb34b6aea7d147e67001cac1f4dbf9e09", 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/smarterr_macro-87b37b5ca1741c1e) [INFO] [stdout] [INFO] [stderr] Doc-tests smarterr_macro [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] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 126) ... FAILED [INFO] [stdout] test src/lib.rs - (line 115) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... FAILED [INFO] [stdout] test src/lib.rs - (line 211) ... FAILED [INFO] [stdout] test src/lib.rs - (line 326) ... FAILED [INFO] [stdout] test src/lib.rs - (line 132) ... FAILED [INFO] [stdout] test src/lib.rs - (line 66) ... FAILED [INFO] [stdout] test src/lib.rs - (line 243) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 126) stdout ---- [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 1 | [visibility] name[<[< source error type >]>] [{ context struct }] -> "error message", [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [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 - (line 115) stdout ---- [INFO] [stdout] error: cannot find macro `smarterr_fledged` in this scope [INFO] [stdout] --> src/lib.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 3 | smarterr_fledged!(pub PlanetsError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr_fledged; [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 - (line 49) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RawError` in this scope [INFO] [stdout] --> src/lib.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 3 | fn raw_throwable(val: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw` found for type `i32` in the current scope [INFO] [stdout] --> src/lib.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 4 | val.throw() [INFO] [stdout] | ^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 211) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EarthErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:212:32 [INFO] [stdout] | [INFO] [stdout] 3 | "z12".parse::().throw_ctx(EarthErrorCtx{}) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:212:22 [INFO] [stdout] | [INFO] [stdout] 3 | "z12".parse::().throw_ctx(EarthErrorCtx{}) [INFO] [stdout] | ^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 326) stdout ---- [INFO] [stdout] error: cannot find attribute `smarterr_mod` in this scope [INFO] [stdout] --> src/lib.rs:327:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[smarterr_mod(test_err)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr_mod; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `smarterr` in this scope [INFO] [stdout] --> src/lib.rs:329:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[smarterr(InitFailed{pub a: String, pub b: String} -> "Init error")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/lib.rs:328:6 [INFO] [stdout] | [INFO] [stdout] 4 | impl Test { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:333:18 [INFO] [stdout] | [INFO] [stdout] 8 | a: a.parse() [INFO] [stdout] | ________________- [INFO] [stdout] 9 | | .throw_ctx(test_err::InitFailedCtx { a: a.to_string(), b: b.to_string() })?, [INFO] [stdout] | | -^^^^^^^^^ method not found in `Result<_, _>` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:335:18 [INFO] [stdout] | [INFO] [stdout] 10 | b: b.parse() [INFO] [stdout] | ________________- [INFO] [stdout] 11 | | .throw_ctx(test_err::InitFailedCtx { a: a.to_string(), b: b.to_string() })?, [INFO] [stdout] | | -^^^^^^^^^ method not found in `Result<_, _>` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `test_err` [INFO] [stdout] --> src/lib.rs:333:28 [INFO] [stdout] | [INFO] [stdout] 9 | .throw_ctx(test_err::InitFailedCtx { a: a.to_string(), b: b.to_string() })?, [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `test_err` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test_err`, use `cargo add test_err` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `test_err` [INFO] [stdout] --> src/lib.rs:335:28 [INFO] [stdout] | [INFO] [stdout] 11 | .throw_ctx(test_err::InitFailedCtx { a: a.to_string(), b: b.to_string() })?, [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `test_err` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test_err`, use `cargo add test_err` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 132) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `MercuryError` in this scope [INFO] [stdout] --> src/lib.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 5 | MercuryError(MercuryError), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SaturnError` in this scope [INFO] [stdout] --> src/lib.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 7 | SaturnError(SaturnError), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EarthError` in this scope [INFO] [stdout] --> src/lib.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 8 | EarthError(EarthError), [INFO] [stdout] | ^^^^^^^^^^ help: a struct with a similar name exists: `MarsError` [INFO] [stdout] ... [INFO] [stdout] 14 | pub struct MarsError { [INFO] [stdout] | -------------------- similarly named struct `MarsError` defined here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MercuryErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:168:79 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct MarsErrorCtx { [INFO] [stdout] | ----------------------- similarly named struct `MarsErrorCtx` defined here [INFO] [stdout] ... [INFO] [stdout] 38 | impl smarterr::IntoError for MercuryErrorCtx { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `MarsErrorCtx` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SaturnErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:178:49 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct MarsErrorCtx { [INFO] [stdout] | ----------------------- similarly named struct `MarsErrorCtx` defined here [INFO] [stdout] ... [INFO] [stdout] 48 | impl smarterr::IntoError for SaturnErrorCtx { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: a struct with a similar name exists: `MarsErrorCtx` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseIntError` in this scope [INFO] [stdout] --> src/lib.rs:183:40 [INFO] [stdout] | [INFO] [stdout] 53 | impl smarterr::IntoError for EarthErrorCtx { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::num::ParseIntError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EarthErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:183:59 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct MarsErrorCtx { [INFO] [stdout] | ----------------------- similarly named struct `MarsErrorCtx` defined here [INFO] [stdout] ... [INFO] [stdout] 53 | impl smarterr::IntoError for EarthErrorCtx { [INFO] [stdout] | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `MarsErrorCtx` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseIntError` in this scope [INFO] [stdout] --> src/lib.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 54 | fn into_error(self, source: ParseIntError) -> PlanetsError { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::num::ParseIntError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] --> src/lib.rs:168:37 [INFO] [stdout] | [INFO] [stdout] 38 | impl smarterr::IntoError for MercuryErrorCtx { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smarterr`, use `cargo add smarterr` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MercuryError` [INFO] [stdout] --> src/lib.rs:170:36 [INFO] [stdout] | [INFO] [stdout] 40 | PlanetsError::MercuryError(MercuryError::new(source, self)) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MercuryError` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] --> src/lib.rs:173:37 [INFO] [stdout] | [INFO] [stdout] 43 | impl smarterr::IntoError for MarsErrorCtx { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smarterr`, use `cargo add smarterr` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] --> src/lib.rs:178:6 [INFO] [stdout] | [INFO] [stdout] 48 | impl smarterr::IntoError for SaturnErrorCtx { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smarterr`, use `cargo add smarterr` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SaturnError` [INFO] [stdout] --> src/lib.rs:180:35 [INFO] [stdout] | [INFO] [stdout] 50 | PlanetsError::SaturnError(SaturnError::new(source, self)) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SaturnError` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] --> src/lib.rs:183:6 [INFO] [stdout] | [INFO] [stdout] 53 | impl smarterr::IntoError for EarthErrorCtx { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `smarterr` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smarterr`, use `cargo add smarterr` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EarthError` [INFO] [stdout] --> src/lib.rs:185:34 [INFO] [stdout] | [INFO] [stdout] 55 | PlanetsError::EarthError(EarthError::new(source, self)) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `EarthError` [INFO] [stdout] | help: a struct with a similar name exists: `MarsError` [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, 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 - (line 66) stdout ---- [INFO] [stdout] error: cannot find macro `smarterr_fledged` in this scope [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 3 | smarterr_fledged!(DomainErrors{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr_fledged; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawError` in this scope [INFO] [stdout] --> src/lib.rs:71:43 [INFO] [stdout] | [INFO] [stdout] 7 | fn raw_erroneous(val: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawError` in this scope [INFO] [stdout] --> src/lib.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 11 | fn raw_erroneous_then(val: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DomainErrors` in this scope [INFO] [stdout] --> src/lib.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 15 | fn raw_erroneous_ctx(val: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 15 | fn raw_erroneous_ctx(val: i32) -> Result { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DomainErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 16 | val.throw_ctx(DomainErrorCtx{}) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_err` found for type `i32` in the current scope [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 8 | val.throw_err(RawError::new_with(val, "raw error")) [INFO] [stdout] | ^^^^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RawError` [INFO] [stdout] --> src/lib.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 8 | val.throw_err(RawError::new_with(val, "raw error")) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `RawError` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_then` found for type `i32` in the current scope [INFO] [stdout] --> src/lib.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 12 | val.throw_then(|v| RawError::new_with(v, "raw error")) [INFO] [stdout] | ^^^^^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RawError` [INFO] [stdout] --> src/lib.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 12 | val.throw_then(|v| RawError::new_with(v, "raw error")) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `RawError` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for type `i32` in the current scope [INFO] [stdout] --> src/lib.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 16 | val.throw_ctx(DomainErrorCtx{}) [INFO] [stdout] | ^^^^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 243) stdout ---- [INFO] [stdout] error: cannot find attribute `smarterr` in this scope [INFO] [stdout] --> src/lib.rs:283:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[smarterr( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `smarterr` in this scope [INFO] [stdout] --> src/lib.rs:266:3 [INFO] [stdout] | [INFO] [stdout] 25 | #[smarterr( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `smarterr` in this scope [INFO] [stdout] --> src/lib.rs:244:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[smarterr( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use smarterr_macro::smarterr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AlfaErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:257:32 [INFO] [stdout] | [INFO] [stdout] 16 | 1 => err_str.raise_ctx(AlfaErrorCtx { ind: -1, ext }), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BetaErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:258:45 [INFO] [stdout] | [INFO] [stdout] 17 | 2 => "z12".parse::().throw_ctx(BetaErrorCtx { ind: -2 }).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BetaWrappedErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:259:45 [INFO] [stdout] | [INFO] [stdout] 18 | 3 => "z12".parse::().throw_ctx(BetaWrappedErrorCtx {}).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GammaErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:260:32 [INFO] [stdout] | [INFO] [stdout] 19 | 4 => err_str.raise_ctx(GammaErrorCtx { ext }), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GammaWrappedErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:261:32 [INFO] [stdout] | [INFO] [stdout] 20 | 5 => 5000000.throw_ctx(GammaWrappedErrorCtx { ext }).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ZErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:278:36 [INFO] [stdout] | [INFO] [stdout] 37 | data.ctx.ext.throw_ctx(ZErrorCtx { ind: err_ind }), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FirstErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:302:41 [INFO] [stdout] | [INFO] [stdout] 61 | e.ctx.ext.clone().raise_ctx(FirstErrorCtx{ind: err_ind as i32, ext: e.ctx.ext}), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SecondErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:304:33 [INFO] [stdout] | [INFO] [stdout] 63 | e.ctx.ext.raise_ctx(SecondErrorCtx{ ind: err_ind as i32 }), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FirstErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:309:26 [INFO] [stdout] | [INFO] [stdout] 68 | ().raise_ctx(FirstErrorCtx{ ind: err_ind as i32, ext: e.ctx.ext }), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SecondErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 70 | ().raise_ctx(SecondErrorCtx{ ind: e.ctx.ind }), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MarsErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:315:26 [INFO] [stdout] | [INFO] [stdout] 74 | let t = ().raise_ctx(MarsErrorCtx{ind: err_ind}); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BetaErrorCtx` in this scope [INFO] [stdout] --> src/lib.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 75 | t.throw_ctx(BetaErrorCtx{ ind: err_ind as i32 })?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn greek_func(err_ind: usize) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] ... [INFO] [stdout] 15 | 0 => Ok(ok_str), [INFO] [stdout] | ^^^^^^^^^^ expected `String`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `raise_ctx` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:257:22 [INFO] [stdout] | [INFO] [stdout] 16 | 1 => err_str.raise_ctx(AlfaErrorCtx { ind: -1, ext }), [INFO] [stdout] | ^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:258:35 [INFO] [stdout] | [INFO] [stdout] 17 | 2 => "z12".parse::().throw_ctx(BetaErrorCtx { ind: -2 }).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:259:35 [INFO] [stdout] | [INFO] [stdout] 18 | 3 => "z12".parse::().throw_ctx(BetaWrappedErrorCtx {}).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `raise_ctx` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 19 | 4 => err_str.raise_ctx(GammaErrorCtx { ext }), [INFO] [stdout] | ^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `throw_ctx` found for type `{integer}` in the current scope [INFO] [stdout] --> src/lib.rs:261:22 [INFO] [stdout] | [INFO] [stdout] 20 | 5 => 5000000.throw_ctx(GammaWrappedErrorCtx { ext }).map(|_| ok_str), [INFO] [stdout] | ^^^^^^^^^ method not found in `{integer}` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `handle` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:276:25 [INFO] [stdout] | [INFO] [stdout] 35 | greek_func(err_ind).handle(|h| match h { [INFO] [stdout] | --------------------^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn latin_func(err_ind: usize) { [INFO] [stdout] | - help: a return type might be missing here: `-> _` [INFO] [stdout] ... [INFO] [stdout] 39 | Ok(()) [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<(), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), _>` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `handle` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:300:33 [INFO] [stdout] | [INFO] [stdout] 59 | let g = greek_func(err_ind).handle(|h| match h { [INFO] [stdout] | --------------------^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `handle` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:307:25 [INFO] [stdout] | [INFO] [stdout] 66 | latin_func(err_ind).handle(|h| match h { [INFO] [stdout] | --------------------^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `raise_ctx` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:309:16 [INFO] [stdout] | [INFO] [stdout] 68 | ().raise_ctx(FirstErrorCtx{ ind: err_ind as i32, ext: e.ctx.ext }), [INFO] [stdout] | ^^^^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `raise_ctx` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:311:16 [INFO] [stdout] | [INFO] [stdout] 70 | ().raise_ctx(SecondErrorCtx{ ind: e.ctx.ind }), [INFO] [stdout] | ^^^^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `raise_ctx` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 74 | let t = ().raise_ctx(MarsErrorCtx{ind: err_ind}); [INFO] [stdout] | ^^^^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 36 | GreekFuncErrorHandled::GammaWrappedError(data) => [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 60 | GreekFuncErrorHandled::GammaWrappedError(e) => [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 62 | GreekFuncErrorHandled::GammaError(e) => [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GreekFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 67 | LatinFuncErrorHandled::XError(e)=> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 69 | LatinFuncErrorHandled::YError(e)=> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] --> src/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 71 | LatinFuncErrorHandled::GammaError(_) => Ok(()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `LatinFuncErrorHandled` [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0422, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 115) [INFO] [stdout] src/lib.rs - (line 126) [INFO] [stdout] src/lib.rs - (line 132) [INFO] [stdout] src/lib.rs - (line 211) [INFO] [stdout] src/lib.rs - (line 243) [INFO] [stdout] src/lib.rs - (line 326) [INFO] [stdout] src/lib.rs - (line 49) [INFO] [stdout] src/lib.rs - (line 66) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.90s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "268e9e7a7878ce8fad40d1da9cb67d4bb34b6aea7d147e67001cac1f4dbf9e09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "268e9e7a7878ce8fad40d1da9cb67d4bb34b6aea7d147e67001cac1f4dbf9e09", kill_on_drop: false }` [INFO] [stdout] 268e9e7a7878ce8fad40d1da9cb67d4bb34b6aea7d147e67001cac1f4dbf9e09