[INFO] updating cached repository a-phillips/PE-Rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/a-phillips/PE-Rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/a-phillips/PE-Rust" "work/ex/beta-1.38-1/sources/1.37.0/gh/a-phillips/PE-Rust"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/a-phillips/PE-Rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/a-phillips/PE-Rust" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/a-phillips/PE-Rust"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/a-phillips/PE-Rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0df0b92fbd084f0d74abc54fea404d52662d4d20 [INFO] sha for GitHub repo a-phillips/PE-Rust: 0df0b92fbd084f0d74abc54fea404d52662d4d20 [INFO] validating manifest of a-phillips/PE-Rust on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of a-phillips/PE-Rust on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing a-phillips/PE-Rust [INFO] finished frobbing a-phillips/PE-Rust [INFO] frobbed toml for a-phillips/PE-Rust written to work/ex/beta-1.38-1/sources/1.37.0/gh/a-phillips/PE-Rust/Cargo.toml [INFO] started frobbing a-phillips/PE-Rust [INFO] finished frobbing a-phillips/PE-Rust [INFO] frobbed toml for a-phillips/PE-Rust written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/a-phillips/PE-Rust/Cargo.toml [INFO] crate a-phillips/PE-Rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing a-phillips/PE-Rust against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-4/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/a-phillips/PE-Rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] f4c3155e024b72d5ec1e64ca28b785e77c7408596264f446361a459a70708fb1 [INFO] running `"docker" "start" "-a" "f4c3155e024b72d5ec1e64ca28b785e77c7408596264f446361a459a70708fb1"` [INFO] [stderr] Compiling PE v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/bin/PE013.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let num_digits = 10u; [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] error: invalid suffix `i` for integer literal [INFO] [stderr] --> src/bin/PE015.rs:27:21 [INFO] [stderr] | [INFO] [stderr] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [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: 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 here [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/PE058.rs:23:19 [INFO] [stderr] | [INFO] [stderr] 23 | for i in range (0u, 4) { // 4 numbers per diagonal [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] [INFO] [stderr] error: `..X` range patterns are not supported [INFO] [stderr] --> src/bin/PE011.rs:1:30 [INFO] [stderr] | [INFO] [stderr] 1 | fn max_by_col (grid:&[[uint, ..20], ..20], len:uint) -> uint { [INFO] [stderr] | ^^^^ help: try using the minimum value for the type: `MIN..20` [INFO] [stderr] [INFO] [stderr] error: expected `:`, 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 `:` [INFO] [stderr] [INFO] [stderr] error: expected one of `)`, `,`, `->`, `where`, `{`, or identifier, 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 `)`, `,`, `->`, `where`, `{`, or identifier here [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stderr] --> src/bin/PE013.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | 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/PE013.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::num::Int` [INFO] [stderr] --> src/bin/PE013.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::num::Int; [INFO] [stderr] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/bin/PE013.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | let path = Path::new(fp); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/bin/PE013.rs:18:17 [INFO] [stderr] | [INFO] [stderr] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [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] error[E0432]: unresolved import `std::num::Float` [INFO] [stderr] --> src/bin/PE010.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::num::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::num::Int` [INFO] [stderr] --> src/bin/PE015.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::num::Int; [INFO] [stderr] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE010.rs:26:15 [INFO] [stderr] | [INFO] [stderr] 26 | let answer = range(2i64, lim).filter(|x| is_prime(*x)) [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::num::Float` [INFO] [stderr] --> src/bin/PE058.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::num::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `Float` in `num` [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[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE015.rs:3:18 [INFO] [stderr] | [INFO] [stderr] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/bin/PE015.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | fn n_choose_r (n:int, r:int) -> i64 { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE015.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE015.rs:27:15 [INFO] [stderr] | [INFO] [stderr] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/bin/PE015.rs:11:19 [INFO] [stderr] | [INFO] [stderr] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stderr] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/bin/PE015.rs:11:32 [INFO] [stderr] | [INFO] [stderr] 11 | for num in range((max_den+1), (n+1)) { [INFO] [stderr] | ^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/bin/PE015.rs:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | let answer = range(0i, (20+1)).map(|x| n_choose_r(20, x).pow(2)).fold(0i64, |acc, i| { acc + i}); [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/bin/PE058.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | for i in range (0u, 4) { // 4 numbers per diagonal [INFO] [stderr] | ^^^^^ not found in this scope [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] error: aborting due to 8 previous errors [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] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432. [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, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: crate `PE002` should have a snake case name [INFO] [stderr] error[E0599]: no method named `slice` found for type `&std::string::String` in the current scope [INFO] [stderr] --> src/bin/PE013.rs:18:34 [INFO] [stderr] | [INFO] [stderr] 18 | let num:u64 = from_str(str_num.slice(0,num_digits+1)).unwrap(); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/bin/PE013.rs:21:33 [INFO] [stderr] | [INFO] [stderr] 21 | println!("{}", sum.to_string().slice(0,num_digits)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `pe002` [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: Could not compile `PE`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "f4c3155e024b72d5ec1e64ca28b785e77c7408596264f446361a459a70708fb1"` [INFO] running `"docker" "rm" "-f" "f4c3155e024b72d5ec1e64ca28b785e77c7408596264f446361a459a70708fb1"` [INFO] [stdout] f4c3155e024b72d5ec1e64ca28b785e77c7408596264f446361a459a70708fb1