[INFO] fetching crate pleme-auth-mfa 0.1.0... [INFO] testing pleme-auth-mfa-0.1.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate pleme-auth-mfa 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate pleme-auth-mfa 0.1.0 [INFO] finished tweaking crates.io crate pleme-auth-mfa 0.1.0 [INFO] tweaked toml for crates.io crate pleme-auth-mfa 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate pleme-auth-mfa 0.1.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pleme-auth-mfa 0.1.0 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a2ac2786cfb36ac3a910b018cef5004f7c22db1004642590925c5c3df8f8d819 [INFO] running `Command { std: "docker" "start" "-a" "a2ac2786cfb36ac3a910b018cef5004f7c22db1004642590925c5c3df8f8d819", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2ac2786cfb36ac3a910b018cef5004f7c22db1004642590925c5c3df8f8d819", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2ac2786cfb36ac3a910b018cef5004f7c22db1004642590925c5c3df8f8d819", kill_on_drop: false }` [INFO] [stdout] a2ac2786cfb36ac3a910b018cef5004f7c22db1004642590925c5c3df8f8d819 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88a1a366beba89417967a8121d078094b8abfc6ab9f293ead2e3395701346b12 [INFO] running `Command { std: "docker" "start" "-a" "88a1a366beba89417967a8121d078094b8abfc6ab9f293ead2e3395701346b12", kill_on_drop: false }` [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling pxfm v0.1.27 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling bytemuck v1.25.0 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling arc-swap v1.8.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling base32 v0.5.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling uuid v1.21.0 [INFO] [stderr] Compiling totp-rs v5.7.0 [INFO] [stderr] Compiling moxcms v0.7.11 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling image v0.25.9 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling qrcode v0.14.1 [INFO] [stderr] Compiling redis v0.24.0 [INFO] [stderr] Compiling pleme-auth-mfa v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "88a1a366beba89417967a8121d078094b8abfc6ab9f293ead2e3395701346b12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88a1a366beba89417967a8121d078094b8abfc6ab9f293ead2e3395701346b12", kill_on_drop: false }` [INFO] [stdout] 88a1a366beba89417967a8121d078094b8abfc6ab9f293ead2e3395701346b12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58075ed859d39b053d9cbc49cfc130c0d87af6156dc9ccb68811a1b27d389265 [INFO] running `Command { std: "docker" "start" "-a" "58075ed859d39b053d9cbc49cfc130c0d87af6156dc9ccb68811a1b27d389265", kill_on_drop: false }` [INFO] [stderr] Compiling pleme-auth-mfa v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "58075ed859d39b053d9cbc49cfc130c0d87af6156dc9ccb68811a1b27d389265", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58075ed859d39b053d9cbc49cfc130c0d87af6156dc9ccb68811a1b27d389265", kill_on_drop: false }` [INFO] [stdout] 58075ed859d39b053d9cbc49cfc130c0d87af6156dc9ccb68811a1b27d389265 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3678c32c943eb44ecd568896094237f4ed52dc2b3349a5d86ba254472dd3741e [INFO] running `Command { std: "docker" "start" "-a" "3678c32c943eb44ecd568896094237f4ed52dc2b3349a5d86ba254472dd3741e", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pleme_auth_mfa-d497bb50c6b724fe) [INFO] [stdout] [INFO] [stderr] Doc-tests pleme_auth_mfa [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope [INFO] [stdout] --> src/lib.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | let qr_code = service.setup_totp(user_id, "user@example.com", redis).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `redis` [INFO] [stdout] --> src/lib.rs:19:63 [INFO] [stdout] | [INFO] [stdout] 19 | let qr_code = service.setup_totp(user_id, "user@example.com", redis).await?; [INFO] [stdout] | ^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `secret` in this scope [INFO] [stdout] --> src/lib.rs:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | let valid = service.verify_totp_code(&secret, "123456")?; [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:19:70 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | let qr_code = service.setup_totp(user_id, "user@example.com", redis).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:22:56 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 22 | let valid = service.verify_totp_code(&secret, "123456")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 12 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() -> Result<(), Box> { [INFO] [stdout] 13 | use pleme_auth_mfa::{MfaService, MfaConfig}; [INFO] [stdout] ... [INFO] [stdout] 22 | let valid = service.verify_totp_code(&secret, "123456")?; [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 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" "3678c32c943eb44ecd568896094237f4ed52dc2b3349a5d86ba254472dd3741e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3678c32c943eb44ecd568896094237f4ed52dc2b3349a5d86ba254472dd3741e", kill_on_drop: false }` [INFO] [stdout] 3678c32c943eb44ecd568896094237f4ed52dc2b3349a5d86ba254472dd3741e