[INFO] cloning repository https://github.com/phaselabscrypto/phase-aws-sqs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phaselabscrypto/phase-aws-sqs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaselabscrypto%2Fphase-aws-sqs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaselabscrypto%2Fphase-aws-sqs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c6ed2703da9e6b5f3a488d38c2521bc259c1baa [INFO] testing phaselabscrypto/phase-aws-sqs against 1.91.0 for beta-1.92-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaselabscrypto%2Fphase-aws-sqs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/phaselabscrypto/phase-aws-sqs [INFO] finished tweaking git repo https://github.com/phaselabscrypto/phase-aws-sqs [INFO] tweaked toml for git repo https://github.com/phaselabscrypto/phase-aws-sqs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phaselabscrypto/phase-aws-sqs on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/phaselabscrypto/phase-aws-sqs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytes v1.7.2 [INFO] [stderr] Downloaded aws-smithy-query v0.60.7 [INFO] [stderr] Downloaded aws-credential-types v1.2.1 [INFO] [stderr] Downloaded xmlparser v0.13.6 [INFO] [stderr] Downloaded httparse v1.9.5 [INFO] [stderr] Downloaded aws-sigv4 v1.2.4 [INFO] [stderr] Downloaded aws-sdk-sts v1.45.0 [INFO] [stderr] Downloaded aws-sdk-ssooidc v1.46.0 [INFO] [stderr] Downloaded cc v1.1.28 [INFO] [stderr] Downloaded rustls-native-certs v0.6.3 [INFO] [stderr] Downloaded security-framework-sys v2.12.0 [INFO] [stderr] Downloaded outref v0.5.1 [INFO] [stderr] Downloaded mockall v0.13.0 [INFO] [stderr] Downloaded aws-smithy-http v0.60.11 [INFO] [stderr] Downloaded schannel v0.1.26 [INFO] [stderr] Downloaded termtree v0.4.1 [INFO] [stderr] Downloaded aws-smithy-runtime v1.7.2 [INFO] [stderr] Downloaded base64-simd v0.8.0 [INFO] [stderr] Downloaded aws-sdk-sso v1.45.0 [INFO] [stderr] Downloaded fragile v2.0.0 [INFO] [stderr] Downloaded aws-smithy-types v1.2.7 [INFO] [stderr] Downloaded aws-smithy-json v0.60.7 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded object v0.36.5 [INFO] [stderr] Downloaded unicode-bidi v0.3.17 [INFO] [stderr] Downloaded indexmap v2.6.0 [INFO] [stderr] Downloaded aws-runtime v1.4.3 [INFO] [stderr] Downloaded aws-smithy-runtime-api v1.7.2 [INFO] [stderr] Downloaded aws-smithy-async v1.2.1 [INFO] [stderr] Downloaded bytes-utils v0.1.4 [INFO] [stderr] Downloaded predicates v3.1.2 [INFO] [stderr] Downloaded predicates-core v1.0.8 [INFO] [stderr] Downloaded hashbrown v0.15.0 [INFO] [stderr] Downloaded aws-types v1.3.3 [INFO] [stderr] Downloaded redox_syscall v0.5.7 [INFO] [stderr] Downloaded predicates-tree v1.0.11 [INFO] [stderr] Downloaded aws-sdk-sqs v1.45.0 [INFO] [stderr] Downloaded aws-smithy-xml v0.60.9 [INFO] [stderr] Downloaded aws-config v1.5.8 [INFO] [stderr] Downloaded mockall_derive v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cce312477334c204aeb64f8980ccfe9be4388c9f666ed5527b569ed4541d6452 [INFO] running `Command { std: "docker" "start" "-a" "cce312477334c204aeb64f8980ccfe9be4388c9f666ed5527b569ed4541d6452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cce312477334c204aeb64f8980ccfe9be4388c9f666ed5527b569ed4541d6452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cce312477334c204aeb64f8980ccfe9be4388c9f666ed5527b569ed4541d6452", kill_on_drop: false }` [INFO] [stdout] cce312477334c204aeb64f8980ccfe9be4388c9f666ed5527b569ed4541d6452 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f470a698ea5c4378fbfea4e9af0abb371adc7b52ff1f3459c36fa03ec2c19861 [INFO] running `Command { std: "docker" "start" "-a" "f470a698ea5c4378fbfea4e9af0abb371adc7b52ff1f3459c36fa03ec2c19861", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling outref v0.5.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling base64 v0.21.7 [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 http v0.2.12 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling aws-types v1.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.14 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling mockall_derive v0.13.0 [INFO] [stderr] Compiling predicates-core v1.0.8 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling aws-smithy-xml v0.60.9 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling predicates v3.1.2 [INFO] [stderr] Compiling predicates-tree v1.0.11 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling mockall v0.13.0 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling aws-smithy-async v1.2.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling aws-smithy-types v1.2.7 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.2 [INFO] [stderr] Compiling aws-smithy-json v0.60.7 [INFO] [stderr] Compiling aws-smithy-query v0.60.7 [INFO] [stderr] Compiling aws-smithy-http v0.60.11 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling aws-sigv4 v1.2.4 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling aws-smithy-runtime v1.7.2 [INFO] [stderr] Compiling aws-runtime v1.4.3 [INFO] [stderr] Compiling aws-sdk-sso v1.45.0 [INFO] [stderr] Compiling aws-sdk-sts v1.45.0 [INFO] [stderr] Compiling aws-sdk-ssooidc v1.46.0 [INFO] [stderr] Compiling aws-sdk-sqs v1.45.0 [INFO] [stderr] Compiling aws-config v1.5.8 [INFO] [stderr] Compiling phase_sqs v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.84s [INFO] running `Command { std: "docker" "inspect" "f470a698ea5c4378fbfea4e9af0abb371adc7b52ff1f3459c36fa03ec2c19861", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f470a698ea5c4378fbfea4e9af0abb371adc7b52ff1f3459c36fa03ec2c19861", kill_on_drop: false }` [INFO] [stdout] f470a698ea5c4378fbfea4e9af0abb371adc7b52ff1f3459c36fa03ec2c19861 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ee56540163380157dac292a8e1abe75878e214c7d187d41847edca533034013 [INFO] running `Command { std: "docker" "start" "-a" "5ee56540163380157dac292a8e1abe75878e214c7d187d41847edca533034013", 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.46s [INFO] running `Command { std: "docker" "inspect" "5ee56540163380157dac292a8e1abe75878e214c7d187d41847edca533034013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ee56540163380157dac292a8e1abe75878e214c7d187d41847edca533034013", kill_on_drop: false }` [INFO] [stdout] 5ee56540163380157dac292a8e1abe75878e214c7d187d41847edca533034013 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 190048c0657192102adf71daa12d10faacc7400c306b099658c17f312b14c024 [INFO] running `Command { std: "docker" "start" "-a" "190048c0657192102adf71daa12d10faacc7400c306b099658c17f312b14c024", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/phase_sqs-6778300d6264840e) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::test_consume_messages_failure ... ok [INFO] [stdout] test tests::test_send_message_failure ... ok [INFO] [stdout] test tests::test_send_message_success ... ok [INFO] [stdout] test tests::test_logger_processor ... ok [INFO] [stdout] test tests::test_consume_messages_success ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests phase_sqs [INFO] [stdout] [INFO] [stdout] running 4 tests [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] 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] [INFO] [stdout] failures: [INFO] [stdout] [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] ---- 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] [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.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "190048c0657192102adf71daa12d10faacc7400c306b099658c17f312b14c024", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "190048c0657192102adf71daa12d10faacc7400c306b099658c17f312b14c024", kill_on_drop: false }` [INFO] [stdout] 190048c0657192102adf71daa12d10faacc7400c306b099658c17f312b14c024