[INFO] fetching crate retry-strategy 0.2.0... [INFO] testing retry-strategy-0.2.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate retry-strategy 0.2.0 into /workspace/builds/worker-2-tc1/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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate retry-strategy 0.2.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 46 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d6084752144a1c220ef3ef0954f35b44bb2072321bcfbc4d1f28089bc22df44 [INFO] running `Command { std: "docker" "start" "-a" "0d6084752144a1c220ef3ef0954f35b44bb2072321bcfbc4d1f28089bc22df44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d6084752144a1c220ef3ef0954f35b44bb2072321bcfbc4d1f28089bc22df44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d6084752144a1c220ef3ef0954f35b44bb2072321bcfbc4d1f28089bc22df44", kill_on_drop: false }` [INFO] [stdout] 0d6084752144a1c220ef3ef0954f35b44bb2072321bcfbc4d1f28089bc22df44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37f62c4bce1f6831342c1a7dc6cfe7def0c193eaae187df77a97613b4d84bd75 [INFO] running `Command { std: "docker" "start" "-a" "37f62c4bce1f6831342c1a7dc6cfe7def0c193eaae187df77a97613b4d84bd75", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [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 9.43s [INFO] running `Command { std: "docker" "inspect" "37f62c4bce1f6831342c1a7dc6cfe7def0c193eaae187df77a97613b4d84bd75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37f62c4bce1f6831342c1a7dc6cfe7def0c193eaae187df77a97613b4d84bd75", kill_on_drop: false }` [INFO] [stdout] 37f62c4bce1f6831342c1a7dc6cfe7def0c193eaae187df77a97613b4d84bd75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2616306ce8863fa8581ba929864e4c64925f82b51c1b6e6df75c9d5bdaf043bf [INFO] running `Command { std: "docker" "start" "-a" "2616306ce8863fa8581ba929864e4c64925f82b51c1b6e6df75c9d5bdaf043bf", kill_on_drop: false }` [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] 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 `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "2616306ce8863fa8581ba929864e4c64925f82b51c1b6e6df75c9d5bdaf043bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2616306ce8863fa8581ba929864e4c64925f82b51c1b6e6df75c9d5bdaf043bf", kill_on_drop: false }` [INFO] [stdout] 2616306ce8863fa8581ba929864e4c64925f82b51c1b6e6df75c9d5bdaf043bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d627aeef8a44eb86a69c8f546b055db59641a2b364af2879273c7a4fa81e3df1 [INFO] running `Command { std: "docker" "start" "-a" "d627aeef8a44eb86a69c8f546b055db59641a2b364af2879273c7a4fa81e3df1", 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.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/retry_strategy-4afa30bbad4fc919) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test strategy::tests::exponential_overflow ... ok [INFO] [stdout] test strategy::tests::fibonacci_saturated ... ok [INFO] [stdout] test strategy::tests::test_opportunity ... ok [INFO] [stdout] test strategy::tests::exponential_with_factor ... ok [INFO] [stdout] test strategy::tests::fibonacci ... ok [INFO] [stdout] test tests::test_retry ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.56s [INFO] [stdout] [INFO] [stderr] Doc-tests retry_strategy [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] 3 | let res = retry( [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + 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] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_63_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | ).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] 4 | 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] 4 | 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] 4 | 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] 4 | 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] 4 | 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] 4 | 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.26s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d627aeef8a44eb86a69c8f546b055db59641a2b364af2879273c7a4fa81e3df1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d627aeef8a44eb86a69c8f546b055db59641a2b364af2879273c7a4fa81e3df1", kill_on_drop: false }` [INFO] [stdout] d627aeef8a44eb86a69c8f546b055db59641a2b364af2879273c7a4fa81e3df1