[INFO] fetching crate phase_sqs 0.2.3... [INFO] testing phase_sqs-0.2.3 against nightly-2025-01-18+rustflags=-Zrandomize-layout for randomize-layout-3 [INFO] extracting crate phase_sqs 0.2.3 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate phase_sqs 0.2.3 on toolchain nightly-2025-01-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate phase_sqs 0.2.3 [INFO] finished tweaking crates.io crate phase_sqs 0.2.3 [INFO] tweaked toml for crates.io crate phase_sqs 0.2.3 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 183 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2712b92fdaef26dcd3d4a99b5b3586620d2e5bb56ffe0219b65283d780ebc715 [INFO] running `Command { std: "docker" "start" "-a" "2712b92fdaef26dcd3d4a99b5b3586620d2e5bb56ffe0219b65283d780ebc715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2712b92fdaef26dcd3d4a99b5b3586620d2e5bb56ffe0219b65283d780ebc715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2712b92fdaef26dcd3d4a99b5b3586620d2e5bb56ffe0219b65283d780ebc715", kill_on_drop: false }` [INFO] [stdout] 2712b92fdaef26dcd3d4a99b5b3586620d2e5bb56ffe0219b65283d780ebc715 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44aa3fd064e2f5bed6c20c1f9e6f01fffeee3a587ed4938d5ea1d59896135b08 [INFO] running `Command { std: "docker" "start" "-a" "44aa3fd064e2f5bed6c20c1f9e6f01fffeee3a587ed4938d5ea1d59896135b08", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling semver v1.0.25 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling aws-types v1.3.4 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling uuid v1.12.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling aws-smithy-xml v0.60.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling mockall v0.13.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling aws-smithy-types v1.2.12 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Compiling aws-smithy-json v0.61.2 [INFO] [stderr] Compiling aws-smithy-query v0.60.7 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling aws-smithy-http v0.60.12 [INFO] [stderr] Compiling aws-sigv4 v1.2.7 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling aws-smithy-runtime v1.7.7 [INFO] [stderr] Compiling aws-runtime v1.5.4 [INFO] [stderr] Compiling aws-sdk-ssooidc v1.55.0 [INFO] [stderr] Compiling aws-sdk-sts v1.55.0 [INFO] [stderr] Compiling aws-sdk-sso v1.54.0 [INFO] [stderr] Compiling aws-sdk-sqs v1.54.0 [INFO] [stderr] Compiling aws-config v1.5.14 [INFO] [stderr] Compiling phase_sqs v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.39s [INFO] running `Command { std: "docker" "inspect" "44aa3fd064e2f5bed6c20c1f9e6f01fffeee3a587ed4938d5ea1d59896135b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44aa3fd064e2f5bed6c20c1f9e6f01fffeee3a587ed4938d5ea1d59896135b08", kill_on_drop: false }` [INFO] [stdout] 44aa3fd064e2f5bed6c20c1f9e6f01fffeee3a587ed4938d5ea1d59896135b08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3493e0133c07d07ef54d5b8500f4d4def1876ab88b5c4e4d02ba12ec6bb29d2 [INFO] running `Command { std: "docker" "start" "-a" "a3493e0133c07d07ef54d5b8500f4d4def1876ab88b5c4e4d02ba12ec6bb29d2", kill_on_drop: false }` [INFO] [stderr] Compiling phase_sqs v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.73s [INFO] running `Command { std: "docker" "inspect" "a3493e0133c07d07ef54d5b8500f4d4def1876ab88b5c4e4d02ba12ec6bb29d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3493e0133c07d07ef54d5b8500f4d4def1876ab88b5c4e4d02ba12ec6bb29d2", kill_on_drop: false }` [INFO] [stdout] a3493e0133c07d07ef54d5b8500f4d4def1876ab88b5c4e4d02ba12ec6bb29d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f8e711fd9915c82f413baa1fa29b3184ce928cf1230bceeeca2a3978045e61bf [INFO] running `Command { std: "docker" "start" "-a" "f8e711fd9915c82f413baa1fa29b3184ce928cf1230bceeeca2a3978045e61bf", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/phase_sqs-c97117407d3059da) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::test_consume_messages_success ... ok [INFO] [stdout] test tests::test_logger_processor ... ok [INFO] [stdout] test tests::test_consume_messages_failure ... ok [INFO] [stdout] test tests::test_send_message_success ... ok [INFO] [stdout] test tests::test_send_message_failure ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests phase_sqs [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - SqsClient::consume_messages (line 76) - compile ... FAILED [INFO] [stdout] test src/lib.rs - SqsClient::new (line 40) - compile ... FAILED [INFO] [stdout] test src/lib.rs - SqsClient::send_message (line 114) - compile ... FAILED [INFO] [stdout] test src/lib.rs - MessageProcessor::process_message (line 145) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - SqsClient::consume_messages (line 76) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = client.consume_messages().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:77:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_76_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let result = client.consume_messages().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SqsClient::new (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 3 | let processor = Arc::new(MyMessageProcessor); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MyMessageProcessor` in this scope [INFO] [stdout] --> src/lib.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 3 | let processor = Arc::new(MyMessageProcessor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SqsClient` [INFO] [stdout] --> src/lib.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 4 | let client = SqsClient::new("https://sqs.us-east-2.amazonaws.com/123456789/my-queue".to_string(), processor, None).await; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `SqsClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use phase_sqs::SqsClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:42:116 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_40_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let processor = Arc::new(MyMessageProcessor); [INFO] [stdout] 4 | let client = SqsClient::new("https://sqs.us-east-2.amazonaws.com/123456789/my-queue".to_string(), processor, None).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SqsClient::send_message (line 114) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = client.send_message("My message".to_string()).await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_114_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | let result = client.send_message("My message".to_string()).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - MessageProcessor::process_message (line 145) stdout ---- [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:148:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use async_trait::async_trait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `MessageProcessor` in this scope [INFO] [stdout] --> src/lib.rs:149:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl MessageProcessor for MyProcessor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use phase_sqs::MessageProcessor; [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 E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - MessageProcessor::process_message (line 145) [INFO] [stdout] src/lib.rs - SqsClient::consume_messages (line 76) [INFO] [stdout] src/lib.rs - SqsClient::new (line 40) [INFO] [stdout] src/lib.rs - SqsClient::send_message (line 114) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f8e711fd9915c82f413baa1fa29b3184ce928cf1230bceeeca2a3978045e61bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8e711fd9915c82f413baa1fa29b3184ce928cf1230bceeeca2a3978045e61bf", kill_on_drop: false }` [INFO] [stdout] f8e711fd9915c82f413baa1fa29b3184ce928cf1230bceeeca2a3978045e61bf