[INFO] crate threads_pool 0.2.5 is already in cache [INFO] testing threads_pool-0.2.5 against try#41997647ba6a77908f6ef64401414feb00bccf16 for pr-71274 [INFO] extracting crate threads_pool 0.2.5 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate threads_pool 0.2.5 on toolchain 41997647ba6a77908f6ef64401414feb00bccf16 [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate threads_pool 0.2.5 [INFO] finished tweaking crates.io crate threads_pool 0.2.5 [INFO] tweaked toml for crates.io crate threads_pool 0.2.5 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate crates.io crate threads_pool 0.2.5 already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+41997647ba6a77908f6ef64401414feb00bccf16" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 98732b2c1694fa4d5942a5e33a324320ac63b4605be28202cf4a3efefcbb09a9 [INFO] running `"docker" "start" "-a" "98732b2c1694fa4d5942a5e33a324320ac63b4605be28202cf4a3efefcbb09a9"` [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.59 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling crossbeam-utils v0.6.5 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.3.8 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling threads_pool v0.2.5 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/scheduler.rs:820:28 [INFO] [stderr] | [INFO] [stderr] 820 | fn block_on(&mut self, f: F) -> Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/scheduler.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let future = async move { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.36s [INFO] running `"docker" "inspect" "98732b2c1694fa4d5942a5e33a324320ac63b4605be28202cf4a3efefcbb09a9"` [INFO] running `"docker" "rm" "-f" "98732b2c1694fa4d5942a5e33a324320ac63b4605be28202cf4a3efefcbb09a9"` [INFO] [stdout] 98732b2c1694fa4d5942a5e33a324320ac63b4605be28202cf4a3efefcbb09a9 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+41997647ba6a77908f6ef64401414feb00bccf16" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1264244a2fe2c05e81226298d87c29e0b1a17a9fe0656584b7a1965f58db7754 [INFO] running `"docker" "start" "-a" "1264244a2fe2c05e81226298d87c29e0b1a17a9fe0656584b7a1965f58db7754"` [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling futures-core v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling async-task v1.0.0 [INFO] [stderr] Compiling walkdir v2.2.8 [INFO] [stderr] Compiling regex-automata v0.1.7 [INFO] [stderr] Compiling rand_xoshiro v0.1.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling atty v0.2.12 [INFO] [stderr] Compiling criterion-plot v0.3.1 [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/scheduler.rs:820:28 [INFO] [stderr] | [INFO] [stderr] 820 | fn block_on(&mut self, f: F) -> Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/scheduler.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let future = async move { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Compiling crossbeam-epoch v0.7.1 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling csv-core v0.1.6 [INFO] [stderr] Compiling crossbeam-deque v0.6.3 [INFO] [stderr] Compiling rayon-core v1.5.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling rayon v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.94 [INFO] [stderr] Compiling bstr v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling csv v1.1.1 [INFO] [stderr] Compiling tinytemplate v1.0.2 [INFO] [stderr] Compiling criterion v0.2.11 [INFO] [stderr] Compiling threads_pool v0.2.5 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `threads_pool::prelude::*` [INFO] [stderr] --> examples/future.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use threads_pool::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/scheduler.rs:820:28 [INFO] [stderr] | [INFO] [stderr] 820 | fn block_on(&mut self, f: F) -> Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/scheduler.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let future = async move { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 58.62s [INFO] running `"docker" "inspect" "1264244a2fe2c05e81226298d87c29e0b1a17a9fe0656584b7a1965f58db7754"` [INFO] running `"docker" "rm" "-f" "1264244a2fe2c05e81226298d87c29e0b1a17a9fe0656584b7a1965f58db7754"` [INFO] [stdout] 1264244a2fe2c05e81226298d87c29e0b1a17a9fe0656584b7a1965f58db7754 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+41997647ba6a77908f6ef64401414feb00bccf16" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0c745bfe6408266c66c22932804e448e8e4c5cd16fa78b77af14b34b5f753b22 [INFO] running `"docker" "start" "-a" "0c745bfe6408266c66c22932804e448e8e4c5cd16fa78b77af14b34b5f753b22"` [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/scheduler.rs:820:28 [INFO] [stderr] | [INFO] [stderr] 820 | fn block_on(&mut self, f: F) -> Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/scheduler.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let future = async move { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/scheduler.rs:820:28 [INFO] [stderr] | [INFO] [stderr] 820 | fn block_on(&mut self, f: F) -> Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/scheduler.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let future = async move { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused import: `threads_pool::prelude::*` [INFO] [stderr] --> examples/future.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use threads_pool::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/threads_pool-9c782e29790e4ad2 [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 261) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool (line 43) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::execute (line 330) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::ThreadPool::activate (line 156) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/scheduler.rs - scheduler::ThreadPool::exec (line 261) 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:270: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:270: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 (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:66: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 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:66:5 [INFO] [stdout] | [INFO] [stdout] 25 | / pool.exec(|| { [INFO] [stdout] 26 | | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 27 | | println!("thread {} has slept for around 1 second ... ", id); [INFO] [stdout] 28 | | }, 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] 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::execute (line 330) 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:339: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:339: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::activate (line 156) 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:179: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:179: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 43) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::activate (line 156) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::exec (line 261) [INFO] [stdout] src/scheduler.rs - scheduler::ThreadPool::execute (line 330) [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" "0c745bfe6408266c66c22932804e448e8e4c5cd16fa78b77af14b34b5f753b22"` [INFO] running `"docker" "rm" "-f" "0c745bfe6408266c66c22932804e448e8e4c5cd16fa78b77af14b34b5f753b22"` [INFO] [stdout] 0c745bfe6408266c66c22932804e448e8e4c5cd16fa78b77af14b34b5f753b22