[INFO] cloning repository https://github.com/rinp/euler_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rinp/euler_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 40e3de61ca122e89cfc7cbed6ec6eb2ea343eb48 [INFO] checking rinp/euler_rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rinp/euler_rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rinp/euler_rust [INFO] finished tweaking git repo https://github.com/rinp/euler_rust [INFO] tweaked toml for git repo https://github.com/rinp/euler_rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/rinp/euler_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num_cpus v1.3.0 [INFO] [stderr] Downloaded num-complex v0.1.36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc2a0cb5fd6d8aa833abb713dd55d0698c5dc07c81ab3a34706375710d66dae5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bc2a0cb5fd6d8aa833abb713dd55d0698c5dc07c81ab3a34706375710d66dae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc2a0cb5fd6d8aa833abb713dd55d0698c5dc07c81ab3a34706375710d66dae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc2a0cb5fd6d8aa833abb713dd55d0698c5dc07c81ab3a34706375710d66dae5", kill_on_drop: false }` [INFO] [stdout] bc2a0cb5fd6d8aa833abb713dd55d0698c5dc07c81ab3a34706375710d66dae5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 10249a9d92029eb48191b257bba5970657e0ba60e2a5387c8d4e68d6f8867f7f [INFO] running `Command { std: "docker" "start" "-a" "10249a9d92029eb48191b257bba5970657e0ba60e2a5387c8d4e68d6f8867f7f", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.21 [INFO] [stderr] Checking num-traits v0.1.37 [INFO] [stderr] Checking rustc-serialize v0.3.23 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking fnv v1.0.5 [INFO] [stderr] Checking lazy_static v0.2.4 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num_cpus v1.3.0 [INFO] [stderr] Checking time v0.1.36 [INFO] [stderr] Checking num-integer v0.1.33 [INFO] [stderr] Compiling tempfile v2.1.5 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking deque v0.3.1 [INFO] [stderr] Checking rayon v0.6.0 [INFO] [stderr] Checking num-bigint v0.1.37 [INFO] [stderr] Checking num-complex v0.1.36 [INFO] [stderr] Checking num-rational v0.1.36 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking euler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn prime_iter() -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:44:52 [INFO] [stdout] | [INFO] [stdout] 44 | ... -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:57:54 [INFO] [stdout] | [INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let it: Box>> = Box::new(base_it); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | now: Box>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/prob101_200/prob101_110/p102.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | Err(why) => panic!("couldn't open : {} {}", Error::description(&why), why), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn prime_iter() -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:44:52 [INFO] [stdout] | [INFO] [stdout] 44 | ... -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:57:54 [INFO] [stdout] | [INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let it: Box>> = Box::new(base_it); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | now: Box>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common/iter.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/prob101_200/prob101_110/p102.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | Err(why) => panic!("couldn't open : {} {}", Error::description(&why), why), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return reference to temporary value [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | .map(|l| &l.unwrap().parse::().unwrap()); [INFO] [stdout] | ^---------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |temporary value created here [INFO] [stdout] | returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return reference to temporary value [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | .map(|l| &l.unwrap().parse::().unwrap()); [INFO] [stdout] | ^---------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |temporary value created here [INFO] [stdout] | returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 51 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 51 | (&primes.cloned()) [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 66 | primes.cloned() [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 63 | primes.cloned() [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 65 | .map(|b: u64| { [INFO] [stdout] | ^^^^^^^^ move out of `primes` occurs here [INFO] [stdout] 66 | primes.cloned() [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] | move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 38 | let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] ... [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: this function takes ownership of the receiver `self`, which moves `primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 66 | primes.cloned() [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] 44 | .map(|a: u64| { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ------ use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 44 | .map(|a: u64| { [INFO] [stdout] | -------- value moved into closure here [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ------ variable moved due to use in closure [INFO] [stdout] ... [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] 60 | .map(|a: u64| { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] ... [INFO] [stdout] 65 | .map(|b: u64| { [INFO] [stdout] | ______________________- [INFO] [stdout] 66 | | primes.cloned() [INFO] [stdout] 67 | | .skip_while(|&c| c <= b) [INFO] [stdout] 68 | | .take_while(|&c| a * b * c < max) [INFO] [stdout] 69 | | // .inspect(|c| println!("{} {} {}", a, b, c)) [INFO] [stdout] 70 | | .count() as u64 [INFO] [stdout] 71 | | }) [INFO] [stdout] | |_________________- use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 63 | primes.cloned() [INFO] [stdout] | ^^^^^^ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 65 | .map(|b: u64| { [INFO] [stdout] | ^^^^^^^^ move out of `primes` occurs here [INFO] [stdout] 66 | primes.cloned() [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] | move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 38 | let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] ... [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: this function takes ownership of the receiver `self`, which moves `primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 43 | let count_2: u64 = (&primes.cloned()) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] 44 | .map(|a: u64| { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ------ use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because value has type `Cloned>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 44 | .map(|a: u64| { [INFO] [stdout] | -------- value moved into closure here [INFO] [stdout] ... [INFO] [stdout] 47 | (&primes.cloned()) [INFO] [stdout] | ------ variable moved due to use in closure [INFO] [stdout] ... [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `primes` [INFO] [stdout] --> src/prob501_600/prob501_510/p501.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 31 | let primes = BufReader::new(tmp_file.reopen().unwrap()) [INFO] [stdout] | ------ move occurs because `primes` has type `std::iter::Map>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:53]>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 59 | let count_3: u64 = (&primes.cloned()) [INFO] [stdout] | -------- `primes` moved due to this method call [INFO] [stdout] 60 | .map(|a: u64| { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] ... [INFO] [stdout] 65 | .map(|b: u64| { [INFO] [stdout] | ______________________- [INFO] [stdout] 66 | | primes.cloned() [INFO] [stdout] 67 | | .skip_while(|&c| c <= b) [INFO] [stdout] 68 | | .take_while(|&c| a * b * c < max) [INFO] [stdout] 69 | | // .inspect(|c| println!("{} {} {}", a, b, c)) [INFO] [stdout] 70 | | .count() as u64 [INFO] [stdout] 71 | | }) [INFO] [stdout] | |_________________- use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `euler` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "10249a9d92029eb48191b257bba5970657e0ba60e2a5387c8d4e68d6f8867f7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10249a9d92029eb48191b257bba5970657e0ba60e2a5387c8d4e68d6f8867f7f", kill_on_drop: false }` [INFO] [stdout] 10249a9d92029eb48191b257bba5970657e0ba60e2a5387c8d4e68d6f8867f7f