[INFO] fetching crate proportionate_selector 0.1.2... [INFO] testing proportionate_selector-0.1.2 against try#ece70b22820429ebf0c6d388c32356a14c58fc2f for pr-107251 [INFO] extracting crate proportionate_selector 0.1.2 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate proportionate_selector 0.1.2 on toolchain ece70b22820429ebf0c6d388c32356a14c58fc2f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate proportionate_selector 0.1.2 [INFO] finished tweaking crates.io crate proportionate_selector 0.1.2 [INFO] tweaked toml for crates.io crate proportionate_selector 0.1.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e6b29ca019ad966fe6289fe415115b513af68756263ac4151b158ed442baaa5 [INFO] running `Command { std: "docker" "start" "-a" "2e6b29ca019ad966fe6289fe415115b513af68756263ac4151b158ed442baaa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e6b29ca019ad966fe6289fe415115b513af68756263ac4151b158ed442baaa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e6b29ca019ad966fe6289fe415115b513af68756263ac4151b158ed442baaa5", kill_on_drop: false }` [INFO] [stdout] 2e6b29ca019ad966fe6289fe415115b513af68756263ac4151b158ed442baaa5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50cff9f3ff2c2ae414715ce0d114128dc7b6f33c35ccac09bd7528e3e696e6a4 [INFO] running `Command { std: "docker" "start" "-a" "50cff9f3ff2c2ae414715ce0d114128dc7b6f33c35ccac09bd7528e3e696e6a4", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling proportionate_selector v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.22s [INFO] running `Command { std: "docker" "inspect" "50cff9f3ff2c2ae414715ce0d114128dc7b6f33c35ccac09bd7528e3e696e6a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50cff9f3ff2c2ae414715ce0d114128dc7b6f33c35ccac09bd7528e3e696e6a4", kill_on_drop: false }` [INFO] [stdout] 50cff9f3ff2c2ae414715ce0d114128dc7b6f33c35ccac09bd7528e3e696e6a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d37c8b901eee0bf8d9424a435be5e52a50e1b8847e89b5af65baf7927acc7c40 [INFO] running `Command { std: "docker" "start" "-a" "d37c8b901eee0bf8d9424a435be5e52a50e1b8847e89b5af65baf7927acc7c40", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling rayon-core v1.10.2 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling plotters-backend v0.3.4 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling plotters-svg v0.3.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling plotters v0.3.4 [INFO] [stderr] Compiling criterion-plot v0.4.5 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling oorandom v11.1.3 [INFO] [stderr] Compiling kolmogorov_smirnov v1.1.0 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.3.6 [INFO] [stderr] Compiling proportionate_selector v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 35.17s [INFO] running `Command { std: "docker" "inspect" "d37c8b901eee0bf8d9424a435be5e52a50e1b8847e89b5af65baf7927acc7c40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d37c8b901eee0bf8d9424a435be5e52a50e1b8847e89b5af65baf7927acc7c40", kill_on_drop: false }` [INFO] [stdout] d37c8b901eee0bf8d9424a435be5e52a50e1b8847e89b5af65baf7927acc7c40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6d7f7acc2914360d8ae8e097030b6a877bffc6ba6ea43a435469108445e1c4b2 [INFO] running `Command { std: "docker" "start" "-a" "6d7f7acc2914360d8ae8e097030b6a877bffc6ba6ea43a435469108445e1c4b2", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/proportionate_selector-3b42189de44cb8ba) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test tests::cfd_sampling ... ok [INFO] [stdout] test tests::linear_sampling ... ok [INFO] [stderr] Doc-tests proportionate_selector [INFO] [stdout] test tests::stochastic_sampling ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/util.rs - util::bisect_left (line 7) ... ok [INFO] [stdout] test src/util.rs - util::convert (line 38) ... ok [INFO] [stdout] test src/lib.rs - DiscreteDistribution<'_a,T>::new (line 165) ... ok [INFO] [stdout] test src/lib.rs - (line 38) ... ok [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - DiscreteDistribution<'_a,T>::sample (line 266) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - DiscreteDistribution<'_a,T>::sample (line 266) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'assertion failed: s.is_some()', src/lib.rs:38:1 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56503694432a - std::backtrace_rs::backtrace::libunwind::trace::he568b6238b072df1 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x56503694432a - std::backtrace_rs::backtrace::trace_unsynchronized::h615b35b2d049ee58 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x56503694432a - std::sys_common::backtrace::_print_fmt::h6351640b3c0a2ee5 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/sys_common/backtrace.rs:65:5 [INFO] [stdout] 3: 0x56503694432a - ::fmt::h6ad0c52f3db5de61 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x56503696261e - core::fmt::write::h40c806382df4467b [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/core/src/fmt/mod.rs:1232:17 [INFO] [stdout] 5: 0x5650369423a5 - std::io::Write::write_fmt::h7b62c7fbf16cbc23 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/io/mod.rs:1682:15 [INFO] [stdout] 6: 0x5650369440f5 - std::sys_common::backtrace::_print::h3e2ab0ebf3e1539e [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 7: 0x5650369440f5 - std::sys_common::backtrace::print::hf60e1d0c5675adaf [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 8: 0x56503694570f - std::panicking::default_hook::{{closure}}::h37c40e75fe351113 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:267:22 [INFO] [stdout] 9: 0x5650369454ac - std::panicking::default_hook::hdfddcd6d3c8da773 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:286:9 [INFO] [stdout] 10: 0x565036945e19 - std::panicking::rust_panic_with_hook::h33ea336d8aedfd37 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:688:13 [INFO] [stdout] 11: 0x565036945b72 - std::panicking::begin_panic_handler::{{closure}}::h549545ba99aa7150 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:577:13 [INFO] [stdout] 12: 0x5650369447dc - std::sys_common::backtrace::__rust_end_short_backtrace::h8ba7d914c318dda0 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/sys_common/backtrace.rs:137:18 [INFO] [stdout] 13: 0x5650369458c2 - rust_begin_unwind [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:575:5 [INFO] [stdout] 14: 0x5650368db583 - core::panicking::panic_fmt::h0d8830f4392dec6c [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/core/src/panicking.rs:64:14 [INFO] [stdout] 15: 0x5650368db61d - core::panicking::panic::h9fc5b043a5cc7526 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/core/src/panicking.rs:114:5 [INFO] [stdout] 16: 0x5650368e2465 - rust_out::main::_doctest_main_src_lib_rs_266_0::h315b0f7d470991f9 [INFO] [stdout] 17: 0x5650368e2276 - rust_out::main::h859700904dba8f41 [INFO] [stdout] 18: 0x5650368de0b3 - core::ops::function::FnOnce::call_once::h290172826f65b053 [INFO] [stdout] 19: 0x5650368dd9f9 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2733f521e84ee728 [INFO] [stdout] 20: 0x5650368dda49 - std::rt::lang_start::{{closure}}::h7d9affd41821d530 [INFO] [stdout] 21: 0x56503693f8dc - core::ops::function::impls:: for &F>::call_once::hcd0cf4d47d8117af [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/core/src/ops/function.rs:287:13 [INFO] [stdout] 22: 0x56503693f8dc - std::panicking::try::do_call::h03a380141f680ce2 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:483:40 [INFO] [stdout] 23: 0x56503693f8dc - std::panicking::try::hf920e61694f11fe3 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:447:19 [INFO] [stdout] 24: 0x56503693f8dc - std::panic::catch_unwind::h77b726aefd1512a5 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panic.rs:140:14 [INFO] [stdout] 25: 0x56503693f8dc - std::rt::lang_start_internal::{{closure}}::hdffdfc3889df4abf [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/rt.rs:148:48 [INFO] [stdout] 26: 0x56503693f8dc - std::panicking::try::do_call::h1ae7672dec013878 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:483:40 [INFO] [stdout] 27: 0x56503693f8dc - std::panicking::try::hcccf94ac3f194435 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panicking.rs:447:19 [INFO] [stdout] 28: 0x56503693f8dc - std::panic::catch_unwind::hf6fc6cf7f27b5bb9 [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/panic.rs:140:14 [INFO] [stdout] 29: 0x56503693f8dc - std::rt::lang_start_internal::h88ccaa8b30d7042a [INFO] [stdout] at /rustc/ece70b22820429ebf0c6d388c32356a14c58fc2f/library/std/src/rt.rs:148:20 [INFO] [stdout] 30: 0x5650368dda27 - std::rt::lang_start::h1d999441defaca29 [INFO] [stdout] 31: 0x5650368e24c5 - main [INFO] [stdout] 32: 0x7fa53188cd90 - [INFO] [stdout] 33: 0x7fa53188ce40 - __libc_start_main [INFO] [stdout] 34: 0x5650368dbbb5 - _start [INFO] [stdout] 35: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - DiscreteDistribution<'_a,T>::sample (line 266) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.12s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6d7f7acc2914360d8ae8e097030b6a877bffc6ba6ea43a435469108445e1c4b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d7f7acc2914360d8ae8e097030b6a877bffc6ba6ea43a435469108445e1c4b2", kill_on_drop: false }` [INFO] [stdout] 6d7f7acc2914360d8ae8e097030b6a877bffc6ba6ea43a435469108445e1c4b2