[INFO] fetching crate retry-strategy 0.2.0... [INFO] testing retry-strategy-0.2.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate retry-strategy 0.2.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate retry-strategy 0.2.0 [INFO] finished tweaking crates.io crate retry-strategy 0.2.0 [INFO] tweaked toml for crates.io crate retry-strategy 0.2.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate retry-strategy 0.2.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 37 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f70cd94a684af2a6766cfcba4c8f5db78944baf3c77633b5facf6573caf9def [INFO] running `Command { std: "docker" "start" "-a" "2f70cd94a684af2a6766cfcba4c8f5db78944baf3c77633b5facf6573caf9def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f70cd94a684af2a6766cfcba4c8f5db78944baf3c77633b5facf6573caf9def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f70cd94a684af2a6766cfcba4c8f5db78944baf3c77633b5facf6573caf9def", kill_on_drop: false }` [INFO] [stdout] 2f70cd94a684af2a6766cfcba4c8f5db78944baf3c77633b5facf6573caf9def [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11dec4d39a04fc60fb875b542c2c91755824f6f27218e976ad5aecbb8b05c39b [INFO] running `Command { std: "docker" "start" "-a" "11dec4d39a04fc60fb875b542c2c91755824f6f27218e976ad5aecbb8b05c39b", kill_on_drop: false }` [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling retry-strategy v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.49s [INFO] running `Command { std: "docker" "inspect" "11dec4d39a04fc60fb875b542c2c91755824f6f27218e976ad5aecbb8b05c39b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11dec4d39a04fc60fb875b542c2c91755824f6f27218e976ad5aecbb8b05c39b", kill_on_drop: false }` [INFO] [stdout] 11dec4d39a04fc60fb875b542c2c91755824f6f27218e976ad5aecbb8b05c39b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 164d01c14813bd4e7b7bb9b5e53b00fc84060dc1c4d8c6014913c0d6d45ba443 [INFO] running `Command { std: "docker" "start" "-a" "164d01c14813bd4e7b7bb9b5e53b00fc84060dc1c4d8c6014913c0d6d45ba443", kill_on_drop: false }` [INFO] [stderr] Compiling retry-strategy v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `random` [INFO] [stdout] --> src/strategy/mod.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(feature = "random")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "164d01c14813bd4e7b7bb9b5e53b00fc84060dc1c4d8c6014913c0d6d45ba443", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "164d01c14813bd4e7b7bb9b5e53b00fc84060dc1c4d8c6014913c0d6d45ba443", kill_on_drop: false }` [INFO] [stdout] 164d01c14813bd4e7b7bb9b5e53b00fc84060dc1c4d8c6014913c0d6d45ba443 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d0775b65b9309e1e9c91346bb61f9dd14b37516e87813447f767d6f881bd65db [INFO] running `Command { std: "docker" "start" "-a" "d0775b65b9309e1e9c91346bb61f9dd14b37516e87813447f767d6f881bd65db", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `random` [INFO] [stderr] --> src/strategy/mod.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | #[cfg(feature = "random")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `random` [INFO] [stderr] --> src/strategy/mod.rs:9:7 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg(feature = "random")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `random` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: `retry-strategy` (lib) generated 2 warnings [INFO] [stderr] warning: `retry-strategy` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/retry_strategy-35531ff75c7fe5ce) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test strategy::tests::exponential_overflow ... ok [INFO] [stdout] test strategy::tests::exponential_with_factor ... ok [INFO] [stdout] test strategy::tests::fibonacci_saturated ... ok [INFO] [stdout] test strategy::tests::test_opportunity ... ok [INFO] [stdout] test strategy::tests::fibonacci ... ok [INFO] [stdout] test tests::test_retry ... ok [INFO] [stdout] [INFO] [stderr] Doc-tests retry_strategy [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.56s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - retry (line 63) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - retry (line 63) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `retry` in this scope [INFO] [stdout] --> src/lib.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | let res = retry( [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 63 + use retry_strategy::retry; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | sleep(Duration::from_millis(250)).await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 63 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] 63 + use tokio::time::sleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | sleep(Duration::from_millis(250)).await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 63 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 63 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 63 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_63_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 70 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0689]: can't call method `ms` on ambiguous numeric type `{integer}` [INFO] [stdout] --> src/lib.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | vec![100.ms(), 200.ms(), 300.ms()], [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32` [INFO] [stdout] | [INFO] [stdout] 65 | vec![100_i32.ms(), 200.ms(), 300.ms()], [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error[E0689]: can't call method `ms` on ambiguous numeric type `{integer}` [INFO] [stdout] --> src/lib.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | vec![100.ms(), 200.ms(), 300.ms()], [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32` [INFO] [stdout] | [INFO] [stdout] 65 | vec![100.ms(), 200_i32.ms(), 300.ms()], [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error[E0689]: can't call method `ms` on ambiguous numeric type `{integer}` [INFO] [stdout] --> src/lib.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | vec![100.ms(), 200.ms(), 300.ms()], [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32` [INFO] [stdout] | [INFO] [stdout] 65 | vec![100.ms(), 200.ms(), 300_i32.ms()], [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0689, 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 - retry (line 63) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d0775b65b9309e1e9c91346bb61f9dd14b37516e87813447f767d6f881bd65db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0775b65b9309e1e9c91346bb61f9dd14b37516e87813447f767d6f881bd65db", kill_on_drop: false }` [INFO] [stdout] d0775b65b9309e1e9c91346bb61f9dd14b37516e87813447f767d6f881bd65db