[INFO] fetching crate edjx 0.2.0... [INFO] testing edjx-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate edjx 0.2.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate edjx 0.2.0 [INFO] finished tweaking crates.io crate edjx 0.2.0 [INFO] tweaked toml for crates.io crate edjx 0.2.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate edjx 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 52 packages to latest compatible versions [INFO] [stderr] Adding http v0.2.12 (available: v1.3.1) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding rmp-serde v0.15.5 (available: v1.3.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72011a99bcfab0ae4b02f2cb654ac74ecaae94e542ea6277c2cf2e4184bc0393 [INFO] running `Command { std: "docker" "start" "-a" "72011a99bcfab0ae4b02f2cb654ac74ecaae94e542ea6277c2cf2e4184bc0393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72011a99bcfab0ae4b02f2cb654ac74ecaae94e542ea6277c2cf2e4184bc0393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72011a99bcfab0ae4b02f2cb654ac74ecaae94e542ea6277c2cf2e4184bc0393", kill_on_drop: false }` [INFO] [stdout] 72011a99bcfab0ae4b02f2cb654ac74ecaae94e542ea6277c2cf2e4184bc0393 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b32079549fd7ce7ec08fd3be6f826d965495b9e1d6ccd8791cccbb675c24643 [INFO] running `Command { std: "docker" "start" "-a" "6b32079549fd7ce7ec08fd3be6f826d965495b9e1d6ccd8791cccbb675c24643", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling rmp v0.8.14 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling rmp-serde v0.15.5 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling edjx v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Error, Debug, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stdout] 12 | pub(crate) enum Error { [INFO] [stdout] | ----- `Error` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:239:24 [INFO] [stdout] | [INFO] [stdout] 239 | #[derive(Error, Debug, FromPrimitive, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeaderError` [INFO] [stdout] 240 | pub enum HeaderError { [INFO] [stdout] | ----------- `HeaderError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/request.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HttpMethod` [INFO] [stdout] 44 | pub enum HttpMethod { [INFO] [stdout] | ---------- `HttpMethod` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.06s [INFO] running `Command { std: "docker" "inspect" "6b32079549fd7ce7ec08fd3be6f826d965495b9e1d6ccd8791cccbb675c24643", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b32079549fd7ce7ec08fd3be6f826d965495b9e1d6ccd8791cccbb675c24643", kill_on_drop: false }` [INFO] [stdout] 6b32079549fd7ce7ec08fd3be6f826d965495b9e1d6ccd8791cccbb675c24643 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd14cdad4c591df028919ad040f7605f6222968e6a93d6594f050c652f0564ee [INFO] running `Command { std: "docker" "start" "-a" "fd14cdad4c591df028919ad040f7605f6222968e6a93d6594f050c652f0564ee", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Error, Debug, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stdout] 12 | pub(crate) enum Error { [INFO] [stdout] | ----- `Error` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:239:24 [INFO] [stdout] | [INFO] [stdout] 239 | #[derive(Error, Debug, FromPrimitive, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeaderError` [INFO] [stdout] 240 | pub enum HeaderError { [INFO] [stdout] | ----------- `HeaderError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/request.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HttpMethod` [INFO] [stdout] 44 | pub enum HttpMethod { [INFO] [stdout] | ---------- `HttpMethod` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling edjx v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Error, Debug, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stdout] 12 | pub(crate) enum Error { [INFO] [stdout] | ----- `Error` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:239:24 [INFO] [stdout] | [INFO] [stdout] 239 | #[derive(Error, Debug, FromPrimitive, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeaderError` [INFO] [stdout] 240 | pub enum HeaderError { [INFO] [stdout] | ----------- `HeaderError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/request.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HttpMethod` [INFO] [stdout] 44 | pub enum HttpMethod { [INFO] [stdout] | ---------- `HttpMethod` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "fd14cdad4c591df028919ad040f7605f6222968e6a93d6594f050c652f0564ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd14cdad4c591df028919ad040f7605f6222968e6a93d6594f050c652f0564ee", kill_on_drop: false }` [INFO] [stdout] fd14cdad4c591df028919ad040f7605f6222968e6a93d6594f050c652f0564ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 18be5a777d04c3210a8c6d35d57a75d3ef10cfaca254c50fe1914617c5ad1373 [INFO] running `Command { std: "docker" "start" "-a" "18be5a777d04c3210a8c6d35d57a75d3ef10cfaca254c50fe1914617c5ad1373", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Error, Debug, FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stderr] 12 | pub(crate) enum Error { [INFO] [stderr] | ----- `Error` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:239:24 [INFO] [stderr] | [INFO] [stderr] 239 | #[derive(Error, Debug, FromPrimitive, Copy, Clone, PartialEq, Eq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeaderError` [INFO] [stderr] 240 | pub enum HeaderError { [INFO] [stderr] | ----------- `HeaderError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/request.rs:43:17 [INFO] [stderr] | [INFO] [stderr] 43 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HttpMethod` [INFO] [stderr] 44 | pub enum HttpMethod { [INFO] [stderr] | ---------- `HttpMethod` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `edjx` (lib) generated 3 warnings [INFO] [stderr] warning: `edjx` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/edjx-7ed8589f1ea6103e) [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 edjx [INFO] [stdout] [INFO] [stdout] running 36 tests [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch::send_streaming (line 292) - compile ... ok [INFO] [stdout] test src/fetch_response.rs - fetch_response::FetchResponsePending (line 95) - compile ... ok [INFO] [stdout] test src/logger/macros.rs - logger::macros::error (line 5) ... FAILED [INFO] [stdout] test src/fetch_response.rs - fetch_response::FetchResponse (line 9) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 52) ... FAILED [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch::new (line 114) - compile ... FAILED [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch::set_header (line 191) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 25) ... FAILED [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch::send_using_standard_http_lib (line 350) - compile ... FAILED [INFO] [stdout] test src/logger/macros.rs - logger::macros::fatal (line 131) ... FAILED [INFO] [stdout] test src/kv.rs - kv::get (line 65) ... FAILED [INFO] [stdout] test src/logger/macros.rs - logger::macros::info (line 29) ... FAILED [INFO] [stdout] test src/logger/macros.rs - logger::macros::debug (line 79) ... FAILED [INFO] [stdout] test src/logger/macros.rs - logger::macros::trace (line 104) ... FAILED [INFO] [stdout] test src/logger/macros.rs - logger::macros::warn (line 55) ... FAILED [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch (line 64) - compile ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse::send (line 217) ... FAILED [INFO] [stdout] test src/fetch.rs - fetch::HttpFetch::send (line 227) - compile ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse (line 49) ... FAILED [INFO] [stdout] test src/kv.rs - kv::put (line 117) ... FAILED [INFO] [stdout] test src/request.rs - request::HttpRequest::from_client (line 98) ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse::set_status (line 137) - compile ... ok [INFO] [stdout] test src/request.rs - request::HttpRequest::uri (line 152) - compile ... ok [INFO] [stdout] test src/request.rs - request::HttpRequest::method (line 133) - compile ... ok [INFO] [stdout] test src/request.rs - request::HttpRequest::headers (line 194) - compile ... ok [INFO] [stdout] test src/response.rs - response::HttpResponse (line 85) - compile ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse::set_header (line 186) - compile ... ok [INFO] [stdout] test src/request.rs - request::HttpRequest::body (line 212) - compile ... FAILED [INFO] [stdout] test src/storage.rs - storage::delete (line 261) ... FAILED [INFO] [stdout] test src/storage.rs - storage::get (line 67) ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse::send_using_standard_http_lib (line 331) - compile ... FAILED [INFO] [stdout] test src/storage.rs - storage::get_attributes (line 312) ... FAILED [INFO] [stdout] test src/storage.rs - storage::put (line 118) ... FAILED [INFO] [stdout] test src/storage.rs - storage::put_streaming (line 195) - compile ... ok [INFO] [stdout] test src/storage.rs - storage::set_attributes (line 374) ... FAILED [INFO] [stdout] test src/response.rs - response::HttpResponse::send_streaming (line 280) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/logger/macros.rs - logger::macros::error (line 5) stdout ---- [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/logger/macros.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 11 | error!(target: "app_events", "App Error: {}, Port: {}", err_info, 22); [INFO] [stdout] | ^ expected `,` [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 52) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HttpRequest` in this scope [INFO] [stdout] --> src/lib.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn serverless(req: HttpRequest) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpResponse` in this scope [INFO] [stdout] --> src/lib.rs:53:40 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn serverless(req: HttpRequest) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 4 | return HttpResponse::from("Success from EDJX".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/fetch.rs - fetch::HttpFetch::new (line 114) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `edjx::Request`, `edjx::HttpError` [INFO] [stdout] --> src/fetch.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 5 | use edjx::{HttpFetch, Request, HttpError, Method}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ no `HttpError` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Request` in the root [INFO] [stdout] | help: a similar name exists in the module: `request` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::error::Request [INFO] [stdout] http::Request [INFO] [stdout] = help: consider importing this enum instead: [INFO] [stdout] edjx::error::HttpError [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uri` [INFO] [stdout] --> src/fetch.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 7 | let fetch_uri = Uri::from_str("https://httpbin.org/get").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Uri` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::Uri; [INFO] [stdout] | [INFO] [stdout] 2 + use http::Uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fetch.rs - fetch::HttpFetch::set_header (line 191) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uri` [INFO] [stdout] --> src/fetch.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 7 | let fetch_uri = Uri::from_str("https://httpbin.org/get").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Uri` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::Uri; [INFO] [stdout] | [INFO] [stdout] 2 + use http::Uri; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 25) stdout ---- [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 21 | error!("{}", e.to_string().as_str()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 8 | error!("{}", e.to_string().as_str()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `serverless_function` in the crate root [INFO] [stdout] --> src/lib.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 17 | let res = crate::serverless_function::serverless(req); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ could not find `serverless_function` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpRequest` [INFO] [stdout] --> src/lib.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 5 | let req = match HttpRequest::from_client() { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `HttpRequest` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 9 | HttpResponse::new() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/lib.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 10 | .set_status(StatusCode::BAD_REQUEST) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fetch.rs - fetch::HttpFetch::send_using_standard_http_lib (line 350) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `query_url` in this scope [INFO] [stdout] --> src/fetch.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 11 | .uri(&query_url) [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/logger/macros.rs - logger::macros::fatal (line 131) stdout ---- [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/logger/macros.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 11 | error!(target: "app_events", "App Error: {}, Port: {}", fatal_info, port); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `error` is an attribute that can be used by the derive macro `Error`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/logger/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 10 | error!("Fatal: {} on port {}", fatal_info, port); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `error` is an attribute that can be used by the derive macro `Error`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::error; [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/kv.rs - kv::get (line 65) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `kv` [INFO] [stdout] --> src/kv.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 5 | let value = match kv::get(&some_key) { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `kv` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/kv.rs, use `mod kv` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod kv; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::kv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KVError` [INFO] [stdout] --> src/kv.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 8 | KVError::Unknown => StatusCode::BAD_REQUEST, [INFO] [stdout] | ^^^^^^^ use of undeclared type `KVError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::kv::KVError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/kv.rs:71:33 [INFO] [stdout] | [INFO] [stdout] 8 | KVError::Unknown => StatusCode::BAD_REQUEST, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KVError` [INFO] [stdout] --> src/kv.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 9 | KVError::UnAuthorized => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ^^^^^^^ use of undeclared type `KVError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::kv::KVError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/kv.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 9 | KVError::UnAuthorized => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KVError` [INFO] [stdout] --> src/kv.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 10 | KVError::NotFound => StatusCode::NOT_FOUND, [INFO] [stdout] | ^^^^^^^ use of undeclared type `KVError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::kv::KVError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/kv.rs:73:35 [INFO] [stdout] | [INFO] [stdout] 10 | KVError::NotFound => StatusCode::NOT_FOUND, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/kv.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 12 | return HttpResponse::from(e.to_string()).set_status(status); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/logger/macros.rs - logger::macros::info (line 29) stdout ---- [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/logger/macros.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 11 | info!(target: "connection_events", "Successfull connection, port: {}, speed: {}", [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/logger/macros.rs - logger::macros::debug (line 79) stdout ---- [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/logger/macros.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 11 | debug!(target: "app_events", "New position: x: {}, y: {}", pos.x, pos.y); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/logger/macros.rs - logger::macros::trace (line 104) stdout ---- [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/logger/macros.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 11 | trace!(target: "app_events", "x is {} and y is {}", [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/logger/macros.rs - logger::macros::warn (line 55) stdout ---- [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/logger/macros.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 10 | warn!(target: "input_events", "App received warning: {}", warn_description); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fetch.rs - fetch::HttpFetch (line 64) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `edjx::Request`, `edjx::HttpError` [INFO] [stdout] --> src/fetch.rs:66:23 [INFO] [stdout] | [INFO] [stdout] 5 | use edjx::{HttpFetch, Request, HttpError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ no `HttpError` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Request` in the root [INFO] [stdout] | help: a similar name exists in the module: `request` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::error::Request [INFO] [stdout] http::Request [INFO] [stdout] = help: consider importing this enum instead: [INFO] [stdout] edjx::error::HttpError [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fetch.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 7 | HttpFetch::get("https://example.com") [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ expected `Uri`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fetch.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get(uri: Uri) -> HttpFetch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/fetch.rs:69:6 [INFO] [stdout] | [INFO] [stdout] 8 | .set_header("my-header", "hello!") [INFO] [stdout] | ^^^^^^^^^^ ----------- -------- expected `HeaderValue`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected `HeaderName`, found `&str` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fetch.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn set_header(mut self, header_name: HeaderName, value: HeaderValue) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::HttpResponse::send (line 217) stdout ---- [INFO] [stdout] error: expected one of `.`, `?`, `{`, or an operator, found keyword `let` [INFO] [stdout] --> src/response.rs:222:3 [INFO] [stdout] | [INFO] [stdout] 5 | let req = match HttpRequest::from_client() [INFO] [stdout] | ----- - expected one of `.`, `?`, `{`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing this `match` expression [INFO] [stdout] 6 | [INFO] [stdout] 7 | let res = crate::serverless_function::serverless(req); [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fetch.rs - fetch::HttpFetch::send (line 227) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fetch.rs:231:16 [INFO] [stdout] | [INFO] [stdout] 7 | HttpFetch::get("https://example.com").send(); [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ expected `Uri`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fetch.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get(uri: Uri) -> HttpFetch { [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 E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::HttpResponse (line 49) stdout ---- [INFO] [stdout] error: expected one of `.`, `?`, `{`, or an operator, found `;` [INFO] [stdout] --> src/response.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 5 | let req = match HttpRequest::from_client(); [INFO] [stdout] | ----- ^ expected one of `.`, `?`, `{`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing this `match` expression [INFO] [stdout] | help: try removing this `match` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/kv.rs - kv::put (line 117) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/kv.rs:124:2 [INFO] [stdout] | [INFO] [stdout] 9 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | } _doctest_main_src_kv_rs_117_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `kv` [INFO] [stdout] --> src/kv.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 6 | let operation_success : bool = match kv::put(&some_key, some_value, Some(Duration::from_secs(1000 * 5 * 60))) { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `kv` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/kv.rs, use `mod kv` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod kv; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::kv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/kv.rs:121:74 [INFO] [stdout] | [INFO] [stdout] 6 | let operation_success : bool = match kv::put(&some_key, some_value, Some(Duration::from_secs(1000 * 5 * 60))) { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::HttpRequest::from_client (line 98) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `serverless_function` in the crate root [INFO] [stdout] --> src/request.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 6 | crate::serverless_function::serverless(req.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ could not find `serverless_function` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpRequest` [INFO] [stdout] --> src/request.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 5 | let req = HttpRequest::from_client(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `HttpRequest` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::HttpResponse (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/response.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 8 | .set_status(StatusCode::OK) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::HttpRequest::body (line 212) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/request.rs:227:6 [INFO] [stdout] | [INFO] [stdout] 18 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 19 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/request.rs:222:28 [INFO] [stdout] | [INFO] [stdout] 13 | .set_status(StatusCode::BAD_REQUEST) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StatusCode; [INFO] [stdout] | [INFO] [stdout] 2 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::delete (line 261) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `StorageResponse` in this scope [INFO] [stdout] --> src/storage.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res_bytes: StorageResponse = match storage::delete(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StorageResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `storage` [INFO] [stdout] --> src/storage.rs:265:46 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res_bytes: StorageResponse = match storage::delete(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `storage` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/storage.rs, use `mod storage` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod storage; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/storage.rs:268:16 [INFO] [stdout] | [INFO] [stdout] 9 | return HttpResponse::from(e.to_string().as_str().to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/storage.rs - storage::get (line 67) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/storage.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 3 | let bucket_id = "af66ad83-e55b-4a71-a7d5-6ec3199e42e9" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | let file_name = "example.txt" [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/storage.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 4 | let file_name = "example.txt" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let mut res_bytes: StorageResponse = match storage::get(&bucket_id, &file_name) { [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StorageResponse` in this scope [INFO] [stdout] --> src/storage.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res_bytes: StorageResponse = match storage::get(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StorageResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `storage` [INFO] [stdout] --> src/storage.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res_bytes: StorageResponse = match storage::get(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `storage` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/storage.rs, use `mod storage` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod storage; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/storage.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 9 | return HttpResponse::from(e.to_string().as_str().to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/response.rs - response::HttpResponse::send_using_standard_http_lib (line 331) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/response.rs:338:44 [INFO] [stdout] | [INFO] [stdout] 10 | HttpResponse::send_using_standard_http_lib(response.body(())); [INFO] [stdout] | ------------------------------------------ ^^^^^^^^^^^^^^^^^ expected `Response>`, found `Result, Error>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Response>` [INFO] [stdout] found enum `Result, http::Error>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/response.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn send_using_standard_http_lib(res: Response>) -> Result<(), HttpError> { [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 E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::get_attributes (line 312) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `FileAttributes` in this scope [INFO] [stdout] --> src/storage.rs:316:23 [INFO] [stdout] | [INFO] [stdout] 6 | let mut attributes: FileAttributes = match storage::get_attributes(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::FileAttributes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `storage` [INFO] [stdout] --> src/storage.rs:316:46 [INFO] [stdout] | [INFO] [stdout] 6 | let mut attributes: FileAttributes = match storage::get_attributes(&bucket_id, &file_name) { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `storage` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/storage.rs, use `mod storage` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod storage; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/storage.rs:319:15 [INFO] [stdout] | [INFO] [stdout] 9 | return HttpResponse::from(e.to_string().as_str().to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/storage.rs - storage::put (line 118) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `StorageResponse` in this scope [INFO] [stdout] --> src/storage.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 9 | let put_res: StorageResponse = match storage::put(&bucket_id, &file_name, &properties , &buf_data.as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StorageResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `storage` [INFO] [stdout] --> src/storage.rs:125:40 [INFO] [stdout] | [INFO] [stdout] 9 | let put_res: StorageResponse = match storage::put(&bucket_id, &file_name, &properties , &buf_data.as_ref()) { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `storage` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/storage.rs, use `mod storage` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod storage; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/storage.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 12 | return HttpResponse::from(e.to_string().as_str().to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/storage.rs - storage::set_attributes (line 374) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/storage.rs:378:23 [INFO] [stdout] | [INFO] [stdout] 6 | let mut properties: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/storage.rs:378:49 [INFO] [stdout] | [INFO] [stdout] 6 | let mut properties: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileAttributes` [INFO] [stdout] --> src/storage.rs:382:24 [INFO] [stdout] | [INFO] [stdout] 10 | let new_attributes = FileAttributes::new(Some(properties), None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FileAttributes` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::FileAttributes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StorageResponse` in this scope [INFO] [stdout] --> src/storage.rs:384:22 [INFO] [stdout] | [INFO] [stdout] 12 | let mut res_bytes: StorageResponse = match storage::set_attributes(&bucket_id, &file_name, new_attributes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::StorageResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `storage` [INFO] [stdout] --> src/storage.rs:384:46 [INFO] [stdout] | [INFO] [stdout] 12 | let mut res_bytes: StorageResponse = match storage::set_attributes(&bucket_id, &file_name, new_attributes) { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `storage` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/storage.rs, use `mod storage` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod storage; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/storage.rs:387:15 [INFO] [stdout] | [INFO] [stdout] 15 | return HttpResponse::from(e.to_string().as_str().to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use edjx::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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/response.rs - response::HttpResponse::send_streaming (line 280) stdout ---- [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustczTgmiR/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libedjx,libserde_json-715904d6ec0cc4e4,libmemchr-2d97b38eddd0133f,libryu-0ea4bafc9bef6d8b,liburl-f5ae876d5ec79bd2,libidna-7f35ddca9370dcf6,libutf8_iter-0d9be7b316c2b184,libidna_adapter-1a896cee698ff625,libicu_properties-2dfdcb5b0494555f,libicu_properties_data-9d163be0f8ec47fd,libicu_normalizer-e0e98f0d468a90b0,libsmallvec-29f90736a15dcce2,libicu_normalizer_data-9919e82512efe734,libicu_collections-4be8ebd1b4d9a479,libpotential_utf-09c0370b5d9cda9b,libicu_provider-c04b82bc7d62d530,libicu_locale_core-7aecc2ae4f4e3fe0,libtinystr-16198b4fa5505582,liblitemap-aaec3d88bc2b9505,libwriteable-1fc78dfe07ba1099,libzerovec-d49276a0ebec9856,libzerotrie-e8f99e82f6e9554a,libyoke-9ed3f496083baf7b,libstable_deref_trait-e5f295e98f1b80b2,libzerofrom-bc1ae708879ef620,libform_urlencoded-c51bfba28313bc9e,libpercent_encoding-ef8defd155875b98,libserde-e452ad1832dcb2cf,libthiserror-099d011dfea7d1f3,libnum_traits-3de84949450908c1,libhttp-331bc164ab59ceff,libitoa-6b76ec393d6a2c41,libbytes-bfe11088fe358bd1,libfnv-2d77ec4f6f971b24}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustczTgmiR/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/rustdoctestPB3EMP/rust_out" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: undefined symbol: host_close_stream [INFO] [stdout] >>> referenced by rust_out.fa70c727b3af272e-cgu.0 [INFO] [stdout] >>> /tmp/rustdoctestPB3EMP/rust_out.rust_out.fa70c727b3af272e-cgu.0.rcgu.o:(edjx::stream::BaseStream::close::hf4acd1ce1a8a7b42) [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: host_write_chunk [INFO] [stdout] >>> referenced by stream.rs:71 (src/stream.rs:71) [INFO] [stdout] >>> edjx.edjx.428bb88adf488214-cgu.2.rcgu.o:(edjx::stream::WriteStream::call_host_write_chunk::hebc70c2fc129ec46) in archive /opt/rustwide/target/debug/deps/libedjx.rlib [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: host_response_send_streaming [INFO] [stdout] >>> referenced by response.rs:302 (src/response.rs:302) [INFO] [stdout] >>> edjx.edjx.428bb88adf488214-cgu.3.rcgu.o:(edjx::response::HttpResponse::send_streaming::h9b8c4ea1cf21a747) in archive /opt/rustwide/target/debug/deps/libedjx.rlib [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/fetch.rs - fetch::HttpFetch (line 64) [INFO] [stdout] src/fetch.rs - fetch::HttpFetch::new (line 114) [INFO] [stdout] src/fetch.rs - fetch::HttpFetch::send (line 227) [INFO] [stdout] src/fetch.rs - fetch::HttpFetch::send_using_standard_http_lib (line 350) [INFO] [stdout] src/fetch.rs - fetch::HttpFetch::set_header (line 191) [INFO] [stdout] src/kv.rs - kv::get (line 65) [INFO] [stdout] src/kv.rs - kv::put (line 117) [INFO] [stdout] src/lib.rs - (line 25) [INFO] [stdout] src/lib.rs - (line 52) [INFO] [stdout] src/logger/macros.rs - logger::macros::debug (line 79) [INFO] [stdout] src/logger/macros.rs - logger::macros::error (line 5) [INFO] [stdout] src/logger/macros.rs - logger::macros::fatal (line 131) [INFO] [stdout] src/logger/macros.rs - logger::macros::info (line 29) [INFO] [stdout] src/logger/macros.rs - logger::macros::trace (line 104) [INFO] [stdout] src/logger/macros.rs - logger::macros::warn (line 55) [INFO] [stdout] src/request.rs - request::HttpRequest::body (line 212) [INFO] [stdout] src/request.rs - request::HttpRequest::from_client (line 98) [INFO] [stdout] src/response.rs - response::HttpResponse (line 49) [INFO] [stdout] src/response.rs - response::HttpResponse (line 85) [INFO] [stdout] src/response.rs - response::HttpResponse::send (line 217) [INFO] [stdout] src/response.rs - response::HttpResponse::send_streaming (line 280) [INFO] [stdout] src/response.rs - response::HttpResponse::send_using_standard_http_lib (line 331) [INFO] [stdout] src/storage.rs - storage::delete (line 261) [INFO] [stdout] src/storage.rs - storage::get (line 67) [INFO] [stdout] src/storage.rs - storage::get_attributes (line 312) [INFO] [stdout] src/storage.rs - storage::put (line 118) [INFO] [stdout] src/storage.rs - storage::set_attributes (line 374) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 9 passed; 27 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" "18be5a777d04c3210a8c6d35d57a75d3ef10cfaca254c50fe1914617c5ad1373", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18be5a777d04c3210a8c6d35d57a75d3ef10cfaca254c50fe1914617c5ad1373", kill_on_drop: false }` [INFO] [stdout] 18be5a777d04c3210a8c6d35d57a75d3ef10cfaca254c50fe1914617c5ad1373