[INFO] crate threads_pool 0.2.2 is already in cache [INFO] testing threads_pool-0.2.2 against beta-2019-09-28 for beta-1.39-1 [INFO] extracting crate threads_pool 0.2.2 into work/builds/worker-5/source [INFO] validating manifest of crates.io crate threads_pool 0.2.2 on toolchain beta-2019-09-28 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate threads_pool 0.2.2 [INFO] finished tweaking crates.io crate threads_pool 0.2.2 [INFO] tweaked toml for crates.io crate threads_pool 0.2.2 written to work/builds/worker-5/source/Cargo.toml [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-09-28" "build" "--frozen"` [INFO] [stdout] 2b0c8fa9b5eeb3926cb468055af2d7ffe4c736bceec85717608c8339578c326d [INFO] running `"docker" "start" "-a" "2b0c8fa9b5eeb3926cb468055af2d7ffe4c736bceec85717608c8339578c326d"` [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Compiling threads_pool v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/debug.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::{Once, ONCE_INIT}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/debug.rs:4:21 [INFO] [stderr] | [INFO] [stderr] 4 | static ONCE: Once = ONCE_INIT; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `Once::new()` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.23s [INFO] running `"docker" "inspect" "2b0c8fa9b5eeb3926cb468055af2d7ffe4c736bceec85717608c8339578c326d"` [INFO] running `"docker" "rm" "-f" "2b0c8fa9b5eeb3926cb468055af2d7ffe4c736bceec85717608c8339578c326d"` [INFO] [stdout] 2b0c8fa9b5eeb3926cb468055af2d7ffe4c736bceec85717608c8339578c326d [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-09-28" "test" "--frozen" "--no-run"` [INFO] [stdout] e8b04b54205bfe497735d67aea663dd95e166b22837fc84b58c88ecb0d7abc64 [INFO] running `"docker" "start" "-a" "e8b04b54205bfe497735d67aea663dd95e166b22837fc84b58c88ecb0d7abc64"` [INFO] [stderr] Compiling threads_pool v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/debug.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::{Once, ONCE_INIT}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/debug.rs:4:21 [INFO] [stderr] | [INFO] [stderr] 4 | static ONCE: Once = ONCE_INIT; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `Once::new()` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `"docker" "inspect" "e8b04b54205bfe497735d67aea663dd95e166b22837fc84b58c88ecb0d7abc64"` [INFO] running `"docker" "rm" "-f" "e8b04b54205bfe497735d67aea663dd95e166b22837fc84b58c88ecb0d7abc64"` [INFO] [stdout] e8b04b54205bfe497735d67aea663dd95e166b22837fc84b58c88ecb0d7abc64 [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-09-28" "test" "--frozen"` [INFO] [stdout] 8bdf6baf9ece8b1b99fabe5672ae1ea1c5c3433a715e8925860f0f5232c56c47 [INFO] running `"docker" "start" "-a" "8bdf6baf9ece8b1b99fabe5672ae1ea1c5c3433a715e8925860f0f5232c56c47"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/threads_pool-60f2d48d4398ec77 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests threads_pool [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::exec (line 262) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::execute (line 334) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool (line 42) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::activate (line 154) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool::exec (line 262) stdout ---- [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `id`, which is owned by the current function [INFO] [stdout] --> src/scheduler.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 11 | pool.exec(|| { [INFO] [stdout] | ^^ may outlive borrowed value `id` [INFO] [stdout] 12 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 13 | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] | -- `id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/scheduler.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 11 | / pool.exec(|| { [INFO] [stdout] 12 | | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 13 | | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] 14 | | }, true); [INFO] [stdout] | |____________^ [INFO] [stdout] help: to force the closure to take ownership of `id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 11 | pool.exec(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool::execute (line 334) stdout ---- [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `id`, which is owned by the current function [INFO] [stdout] --> src/scheduler.rs:343:18 [INFO] [stdout] | [INFO] [stdout] 11 | pool.execute(|| { [INFO] [stdout] | ^^ may outlive borrowed value `id` [INFO] [stdout] 12 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 13 | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] | -- `id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/scheduler.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 11 | / pool.execute(|| { [INFO] [stdout] 12 | | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 13 | | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] 14 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 11 | pool.execute(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool (line 42) stdout ---- [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `id`, which is owned by the current function [INFO] [stdout] --> src/scheduler.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 24 | pool.exec(|| { [INFO] [stdout] | ^^ may outlive borrowed value `id` [INFO] [stdout] 25 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 26 | println!("thread {} has slept for around 1 second ... ", id); [INFO] [stdout] | -- `id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/scheduler.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 24 | / pool.exec(|| { [INFO] [stdout] 25 | | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 26 | | println!("thread {} has slept for around 1 second ... ", id); [INFO] [stdout] 27 | | }, priority); [INFO] [stdout] | |________________^ [INFO] [stdout] help: to force the closure to take ownership of `id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 24 | pool.exec(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool::activate (line 154) stdout ---- [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `id`, which is owned by the current function [INFO] [stdout] --> src/scheduler.rs:177:15 [INFO] [stdout] | [INFO] [stdout] 25 | pool.exec(|| { [INFO] [stdout] | ^^ may outlive borrowed value `id` [INFO] [stdout] 26 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 27 | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] | -- `id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/scheduler.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 25 | / pool.exec(|| { [INFO] [stdout] 26 | | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 27 | | println!("thread {} has been waken after 1 seconds ... ", id); [INFO] [stdout] 28 | | }, true); [INFO] [stdout] | |____________^ [INFO] [stdout] help: to force the closure to take ownership of `id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 25 | pool.exec(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool (line 42) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::activate (line 154) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::exec (line 262) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::execute (line 334) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "8bdf6baf9ece8b1b99fabe5672ae1ea1c5c3433a715e8925860f0f5232c56c47"` [INFO] running `"docker" "rm" "-f" "8bdf6baf9ece8b1b99fabe5672ae1ea1c5c3433a715e8925860f0f5232c56c47"` [INFO] [stdout] 8bdf6baf9ece8b1b99fabe5672ae1ea1c5c3433a715e8925860f0f5232c56c47