[INFO] cloning repository https://github.com/a-phillips/PE-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a-phillips/PE-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-phillips%2FPE-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-phillips%2FPE-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0df0b92fbd084f0d74abc54fea404d52662d4d20 [INFO] checking a-phillips/PE-Rust against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-phillips%2FPE-Rust" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/a-phillips/PE-Rust on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/a-phillips/PE-Rust [INFO] finished tweaking git repo https://github.com/a-phillips/PE-Rust [INFO] tweaked toml for git repo https://github.com/a-phillips/PE-Rust written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/a-phillips/PE-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e43a269bb37cbb19f0a7f4ba5a6b2a52986537e530053432238be78dc7f34e1 [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" "3e43a269bb37cbb19f0a7f4ba5a6b2a52986537e530053432238be78dc7f34e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e43a269bb37cbb19f0a7f4ba5a6b2a52986537e530053432238be78dc7f34e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e43a269bb37cbb19f0a7f4ba5a6b2a52986537e530053432238be78dc7f34e1", kill_on_drop: false }` [INFO] [stdout] 3e43a269bb37cbb19f0a7f4ba5a6b2a52986537e530053432238be78dc7f34e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23fdbdb9a28c283c8815bf031428e2aa881f99d84c803232d39e3f8a5c0f1fa8 [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" "23fdbdb9a28c283c8815bf031428e2aa881f99d84c803232d39e3f8a5c0f1fa8", kill_on_drop: false }` [INFO] [stderr] Checking PE v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE015.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | str_num.chars().fold(1u, |product, factor| { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let prod_len = 13u; [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/bin/PE010.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE010.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | let answer = range(2i64, lim).filter(|x| is_prime(*x)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE007.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | let mut count = 1i; //since 2 is prime [INFO] [stdout] | ^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE007.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | while count != 10001i { [INFO] [stdout] | ^^^^^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/bin/PE015.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE008.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `PE002` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `pe002` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `PE` [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] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE015.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE015.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE015.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE015.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE001.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | return 0i; [INFO] [stdout] | ^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE013.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let num_digits = 10u; [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | let base_nums = [3u, //one [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let teens = [3u, //ten [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let tens_prefix = [6u, //twenty [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | let hundreds_prefix = [13u, //one hundred and [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | let one_K = 11u; //one thousand [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut mut_sum = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | for i in range(0u, base_nums.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | for i in range(0u, teens.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | for i in range(0u, tens_prefix.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE017.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | for i in range(0u, hundreds_prefix.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | str_num.chars().fold(1u, |product, factor| { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE033.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | let mut i = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE033.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | for i in range(0u, 4) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | let prod_len = 13u; [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE008.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE058.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | for i in range (0u, 4) { // 4 numbers per diagonal [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/bin/PE013.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let num_digits = 10u; [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE015.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/bin/PE007.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE004.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stdout] | ^^^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE004.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stdout] | ^^^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE004.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stdout] | ^^^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/bin/PE004.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stdout] | ^^^^ invalid suffix `i` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/bin/PE013.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/bin/PE013.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/bin/PE013.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/bin/PE058.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/bin/PE013.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let path = Path::new(fp); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/bin/PE013.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/bin/PE013.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE001.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | fn get_answer(num: int) -> int{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/bin/PE010.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `PE002` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `pe002` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE017.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | for i in range(0u, base_nums.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE001.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | fn get_answer(num: int) -> int{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE017.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | for i in range(0u, teens.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/bin/PE013.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/bin/PE013.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE017.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | for i in range(0u, tens_prefix.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE017.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | for i in range(0u, hundreds_prefix.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/bin/PE015.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/bin/PE013.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let path = Path::new(fp); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/bin/PE013.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE010.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | let answer = range(2i64, lim).filter(|x| is_prime(*x)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE058.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | for i in range (0u, 4) { // 4 numbers per diagonal [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE015.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE015.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE015.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE015.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/PE015.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE033.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | for num in range(10i64, 100i64-1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE033.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | for den in range(num+1, 100i64) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE033.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | for i in range(0u, 4) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE033.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | for i in range(2i64, num_prod/2) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/PE033.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | if (num_chars[0] == den_chars[1]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/PE033.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | else if (num_chars[1] == den_chars[0]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE008.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/bin/PE008.rs:32:89 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE004.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_palindrome(num: int) -> bool{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/bin/PE004.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_answer() -> int{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE004.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/bin/PE004.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | for div in range(100, 999){ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&String` in the current scope [INFO] [stdout] --> src/bin/PE013.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/bin/PE013.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | println!("{}", sum.to_string().slice(0,num_digits)); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&String` in the current scope [INFO] [stdout] --> src/bin/PE013.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/bin/PE013.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | println!("{}", sum.to_string().slice(0,num_digits)); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/PE033.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | let mut nums = [0i64, ..4]; [INFO] [stdout] | ^^^ expected `i64`, found struct `RangeTo` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found struct `RangeTo<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/bin/PE008.rs:32:89 [INFO] [stdout] | [INFO] [stdout] 32 | let products = range(0u, str_big_num.len()-prod_len+1).map(|x| get_product(str_big_num.slice(x, x+prod_len))); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/PE033.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | let mut dens = [0i64, ..4]; [INFO] [stdout] | ^^^ expected `i64`, found struct `RangeTo` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found struct `RangeTo<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "23fdbdb9a28c283c8815bf031428e2aa881f99d84c803232d39e3f8a5c0f1fa8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23fdbdb9a28c283c8815bf031428e2aa881f99d84c803232d39e3f8a5c0f1fa8", kill_on_drop: false }` [INFO] [stdout] 23fdbdb9a28c283c8815bf031428e2aa881f99d84c803232d39e3f8a5c0f1fa8