[INFO] updating cached repository https://github.com/a-phillips/PE-Rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0df0b92fbd084f0d74abc54fea404d52662d4d20 [INFO] checking a-phillips/PE-Rust against master#ba72b15666b2491415aec703a02c2364fe5e2790 for pr-71140 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-phillips%2FPE-Rust" "/workspace/builds/worker-3/source"` [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 ba72b15666b2491415aec703a02c2364fe5e2790 [INFO] running `"/workspace/cargo-home/bin/cargo" "+ba72b15666b2491415aec703a02c2364fe5e2790" "read-manifest" "--manifest-path" "Cargo.toml"` [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 `"/workspace/cargo-home/bin/cargo" "+ba72b15666b2491415aec703a02c2364fe5e2790" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"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" "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" "+ba72b15666b2491415aec703a02c2364fe5e2790" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 106281aab8ebb2d02c5ad50e745919d8e172cb251cd6145cdcc35ca717dc8ccc [INFO] running `"docker" "start" "-a" "106281aab8ebb2d02c5ad50e745919d8e172cb251cd6145cdcc35ca717dc8ccc"` [INFO] [stderr] Checking PE v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE008.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | str_num.chars().fold(1u, |product, factor| { [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE008.rs:31:17 [INFO] [stderr] | [INFO] [stderr] 31 | let prod_len = 13u; [INFO] [stderr] | ^^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE008.rs:32:23 [INFO] [stderr] | [INFO] [stderr] 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] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE004.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stderr] | ^^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE004.rs:8:25 [INFO] [stderr] | [INFO] [stderr] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stderr] | ^^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE004.rs:8:30 [INFO] [stderr] | [INFO] [stderr] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stderr] | ^^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE004.rs:8:35 [INFO] [stderr] | [INFO] [stderr] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stderr] | ^^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE022.rs:22:16 [INFO] [stderr] | [INFO] [stderr] 22 | let mut sum = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE022.rs:38:16 [INFO] [stderr] | [INFO] [stderr] 38 | let mut sum = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE008.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 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] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE028.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | let dim = 1001u; [INFO] [stderr] | ^^^^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE028.rs:6:21 [INFO] [stderr] | [INFO] [stderr] 6 | let mut curr_num = 3u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE028.rs:7:19 [INFO] [stderr] | [INFO] [stderr] 7 | let mut inc_by = 2u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE028.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | let mut inc_count = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE028.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | let mut sum = 1u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:2:20 [INFO] [stderr] | [INFO] [stderr] 2 | let month_days = [31i,//January [INFO] [stderr] | ^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:14:16 [INFO] [stderr] | [INFO] [stderr] 14 | let mut day = 1i; //Sunday=0, Monday=1, etc. [INFO] [stderr] | ^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:23:32 [INFO] [stderr] | [INFO] [stderr] 23 | let mut count = if day == 0 { 1i } else { 0i }; [INFO] [stderr] | ^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:23:44 [INFO] [stderr] | [INFO] [stderr] 23 | let mut count = if day == 0 { 1i } else { 0i }; [INFO] [stderr] | ^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:24:17 [INFO] [stderr] | [INFO] [stderr] 24 | let mut year = 1901i; [INFO] [stderr] | ^^^^^ invalid suffix `i` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE019.rs:26:18 [INFO] [stderr] | [INFO] [stderr] 26 | for i in range(0u, 12) { [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/bin/PE008.rs:32:89 [INFO] [stderr] | [INFO] [stderr] 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] [stderr] | ^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE004.rs:1:23 [INFO] [stderr] | [INFO] [stderr] 1 | fn is_palindrome(num: int) -> bool{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE004.rs:7:20 [INFO] [stderr] | [INFO] [stderr] 7 | fn get_answer() -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE004.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | for i in range(100i*100i,999i*999i).rev(){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE004.rs:10:24 [INFO] [stderr] | [INFO] [stderr] 10 | for div in range(100, 999){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stderr] --> src/bin/PE022.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::BufferedReader; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/bin/PE022.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/bin/PE022.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let path = Path::new(fp); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stderr] --> src/bin/PE011.rs:1:28 [INFO] [stderr] | [INFO] [stderr] 1 | fn max_by_col (grid:&[[uint, ..20], ..20], len:uint) -> uint { [INFO] [stderr] | ^ expected one of 7 possible tokens [INFO] [stderr] [INFO] [stderr] error: expected one of `:` or `|`, found `]` [INFO] [stderr] --> src/bin/PE011.rs:1:34 [INFO] [stderr] | [INFO] [stderr] 1 | fn max_by_col (grid:&[[uint, ..20], ..20], len:uint) -> uint { [INFO] [stderr] | ^ expected one of `:` or `|` [INFO] [stderr] [INFO] [stderr] error: expected `;` or `{`, found `]` [INFO] [stderr] --> src/bin/PE011.rs:1:34 [INFO] [stderr] | [INFO] [stderr] 1 | fn max_by_col (grid:&[[uint, ..20], ..20], len:uint) -> uint { [INFO] [stderr] | ^ expected `;` or `{` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/bin/PE022.rs:21:29 [INFO] [stderr] | [INFO] [stderr] 21 | fn name_score(name:&str) -> uint { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [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] [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] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [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] [stderr] error[E0432]: unresolved import `std::num::Int` [INFO] [stderr] --> src/bin/PE006.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::num::Int; [INFO] [stderr] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `split_str` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/bin/PE022.rs:36:37 [INFO] [stderr] | [INFO] [stderr] 36 | let mut names:Vec<&str> = name_str.split_str(",").collect(); [INFO] [stderr] | ^^^^^^^^^ help: there is an associated function with a similar name: `split_at` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | fn get_sum_sq(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | fn get_sum_sq(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:3:36 [INFO] [stderr] | [INFO] [stderr] 3 | fn get_sum_sq(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | fn get_sq_sum(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:8:28 [INFO] [stderr] | [INFO] [stderr] 8 | fn get_sq_sum(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE006.rs:8:36 [INFO] [stderr] | [INFO] [stderr] 8 | fn get_sq_sum(lim: int, i: int) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [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] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE019.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | for i in range(0u, 12) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE019.rs:27:21 [INFO] [stderr] | [INFO] [stderr] 27 | let mut num_days:int = month_days[i]; [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [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] [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] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [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] [stderr] warning: crate `PE003` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `pe003` [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "106281aab8ebb2d02c5ad50e745919d8e172cb251cd6145cdcc35ca717dc8ccc"` [INFO] running `"docker" "rm" "-f" "106281aab8ebb2d02c5ad50e745919d8e172cb251cd6145cdcc35ca717dc8ccc"` [INFO] [stdout] 106281aab8ebb2d02c5ad50e745919d8e172cb251cd6145cdcc35ca717dc8ccc