[INFO] crate threads_pool 0.2.1 is already in cache [INFO] extracting crate threads_pool 0.2.1 into work/ex/beta-1.38-1/sources/1.37.0/reg/threads_pool/0.2.1 [INFO] extracting crate threads_pool 0.2.1 into work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/threads_pool/0.2.1 [INFO] validating manifest of threads_pool-0.2.1 on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of threads_pool-0.2.1 on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing threads_pool-0.2.1 [INFO] finished frobbing threads_pool-0.2.1 [INFO] frobbed toml for threads_pool-0.2.1 written to work/ex/beta-1.38-1/sources/1.37.0/reg/threads_pool/0.2.1/Cargo.toml [INFO] started frobbing threads_pool-0.2.1 [INFO] finished frobbing threads_pool-0.2.1 [INFO] frobbed toml for threads_pool-0.2.1 written to work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/threads_pool/0.2.1/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing threads_pool-0.2.1 against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/reg/threads_pool/0.2.1:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 43a3bbe8360b743a3f7049df8b2b01ccf9900361261003eeba3377be0098e17f [INFO] running `"docker" "start" "-a" "43a3bbe8360b743a3f7049df8b2b01ccf9900361261003eeba3377be0098e17f"` [INFO] [stderr] Compiling threads_pool v0.2.1 (/opt/crater/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/model.rs:20:27 [INFO] [stderr] | [INFO] [stderr] 20 | pub(crate) type Job = Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(bare_trait_objects)] on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.15s [INFO] running `"docker" "inspect" "43a3bbe8360b743a3f7049df8b2b01ccf9900361261003eeba3377be0098e17f"` [INFO] running `"docker" "rm" "-f" "43a3bbe8360b743a3f7049df8b2b01ccf9900361261003eeba3377be0098e17f"` [INFO] [stdout] 43a3bbe8360b743a3f7049df8b2b01ccf9900361261003eeba3377be0098e17f [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/reg/threads_pool/0.2.1:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "test" "--frozen" "--no-run"` [INFO] [stdout] 6ea786a1828a89671a728a5ac8cf859c772ef9e431dfc8346a2e9e31b57e78ea [INFO] running `"docker" "start" "-a" "6ea786a1828a89671a728a5ac8cf859c772ef9e431dfc8346a2e9e31b57e78ea"` [INFO] [stderr] Compiling threads_pool v0.2.1 (/opt/crater/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/model.rs:20:27 [INFO] [stderr] | [INFO] [stderr] 20 | pub(crate) type Job = Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(bare_trait_objects)] on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.28s [INFO] running `"docker" "inspect" "6ea786a1828a89671a728a5ac8cf859c772ef9e431dfc8346a2e9e31b57e78ea"` [INFO] running `"docker" "rm" "-f" "6ea786a1828a89671a728a5ac8cf859c772ef9e431dfc8346a2e9e31b57e78ea"` [INFO] [stdout] 6ea786a1828a89671a728a5ac8cf859c772ef9e431dfc8346a2e9e31b57e78ea [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/reg/threads_pool/0.2.1:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "test" "--frozen"` [INFO] [stdout] 5e73ed68e107ee703ca85b8f2d04b6ade335e383aa09bf339441360f1e29796b [INFO] running `"docker" "start" "-a" "5e73ed68e107ee703ca85b8f2d04b6ade335e383aa09bf339441360f1e29796b"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running /opt/crater/target/debug/deps/threads_pool-337445613983400f [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 263) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::activate (line 155) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool (line 43) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::execute (line 335) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool::exec (line 263) 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:272: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:272: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::activate (line 155) 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:178: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:178: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] ---- src/scheduler.rs - scheduler::ThreadPool (line 43) 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:65: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:65: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::execute (line 335) 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:344: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:344: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] [INFO] [stdout] failures: [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool (line 43) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::activate (line 155) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::exec (line 263) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::execute (line 335) [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" "5e73ed68e107ee703ca85b8f2d04b6ade335e383aa09bf339441360f1e29796b"` [INFO] running `"docker" "rm" "-f" "5e73ed68e107ee703ca85b8f2d04b6ade335e383aa09bf339441360f1e29796b"` [INFO] [stdout] 5e73ed68e107ee703ca85b8f2d04b6ade335e383aa09bf339441360f1e29796b