[INFO] fetching crate prob-rate-limiter 0.1.1... [INFO] testing prob-rate-limiter-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate prob-rate-limiter 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate prob-rate-limiter 0.1.1 [INFO] finished tweaking crates.io crate prob-rate-limiter 0.1.1 [INFO] tweaked toml for crates.io crate prob-rate-limiter 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate prob-rate-limiter 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 119 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.7.0) [INFO] [stderr] Adding governor v0.4.2 (available: v0.10.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59e436e3bf58cee2a32c13163191d6577871b3339383003a8e66537ebb984ab2 [INFO] running `Command { std: "docker" "start" "-a" "59e436e3bf58cee2a32c13163191d6577871b3339383003a8e66537ebb984ab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59e436e3bf58cee2a32c13163191d6577871b3339383003a8e66537ebb984ab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59e436e3bf58cee2a32c13163191d6577871b3339383003a8e66537ebb984ab2", kill_on_drop: false }` [INFO] [stdout] 59e436e3bf58cee2a32c13163191d6577871b3339383003a8e66537ebb984ab2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d53a53a4dacbd94ba4d84bf4835cd2d8ba971b45256cfd89860e1f5e1cd59e82 [INFO] running `Command { std: "docker" "start" "-a" "d53a53a4dacbd94ba4d84bf4835cd2d8ba971b45256cfd89860e1f5e1cd59e82", kill_on_drop: false }` [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling prob-rate-limiter v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "d53a53a4dacbd94ba4d84bf4835cd2d8ba971b45256cfd89860e1f5e1cd59e82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d53a53a4dacbd94ba4d84bf4835cd2d8ba971b45256cfd89860e1f5e1cd59e82", kill_on_drop: false }` [INFO] [stdout] d53a53a4dacbd94ba4d84bf4835cd2d8ba971b45256cfd89860e1f5e1cd59e82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbe53d8fccabcd5e448f5e5125ad8a1098213798d02d992dcf8f0aa064b96e85 [INFO] running `Command { std: "docker" "start" "-a" "fbe53d8fccabcd5e448f5e5125ad8a1098213798d02d992dcf8f0aa064b96e85", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling nonzero_ext v0.3.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling r8limit v0.2.2 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling quanta v0.9.3 [INFO] [stderr] Compiling criterion-plot v0.4.5 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling criterion v0.3.6 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling governor v0.4.2 [INFO] [stderr] Compiling prob-rate-limiter v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 27.07s [INFO] running `Command { std: "docker" "inspect" "fbe53d8fccabcd5e448f5e5125ad8a1098213798d02d992dcf8f0aa064b96e85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbe53d8fccabcd5e448f5e5125ad8a1098213798d02d992dcf8f0aa064b96e85", kill_on_drop: false }` [INFO] [stdout] fbe53d8fccabcd5e448f5e5125ad8a1098213798d02d992dcf8f0aa064b96e85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 25e4452787efc22fc7027b77f0c67f4bc5841818ea02d6ebaa2523c2ee27be12 [INFO] running `Command { std: "docker" "start" "-a" "25e4452787efc22fc7027b77f0c67f4bc5841818ea02d6ebaa2523c2ee27be12", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/prob_rate_limiter-cae967101527cfa5) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_decide ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test.rs (/opt/rustwide/target/debug/deps/test-3af0070e7c60ec36) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test test_clone ... ok [INFO] [stdout] test test_new_1 ... ok [INFO] [stdout] test test_new_0 ... ok [INFO] [stdout] test test_new_100 ... ok [INFO] [stdout] test test_debug ... ok [INFO] [stdout] test test_bursty ... ok [INFO] [stdout] test test_steady_state ... ok [INFO] [stdout] test test_new_custom ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] Doc-tests prob_rate_limiter [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 51) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 51) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 7 | let mut limiter = ProbRateLimiter::new(10.0).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `u32`, found floating-point number [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn new(max_cost_per_sec: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `ProbRateLimiter` in the current scope [INFO] [stdout] --> src/lib.rs:55:46 [INFO] [stdout] | [INFO] [stdout] 7 | let mut limiter = ProbRateLimiter::new(10.0).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `ProbRateLimiter` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 51) [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" "25e4452787efc22fc7027b77f0c67f4bc5841818ea02d6ebaa2523c2ee27be12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25e4452787efc22fc7027b77f0c67f4bc5841818ea02d6ebaa2523c2ee27be12", kill_on_drop: false }` [INFO] [stdout] 25e4452787efc22fc7027b77f0c67f4bc5841818ea02d6ebaa2523c2ee27be12