[INFO] cloning repository https://github.com/diasdavid/bus-station-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diasdavid/bus-station-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiasdavid%2Fbus-station-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiasdavid%2Fbus-station-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8b0c49c62e710a8f99eeb46a25f7e2fa685ff12 [INFO] checking diasdavid/bus-station-rust/b8b0c49c62e710a8f99eeb46a25f7e2fa685ff12 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiasdavid%2Fbus-station-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diasdavid/bus-station-rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/diasdavid/bus-station-rust [INFO] finished tweaking git repo https://github.com/diasdavid/bus-station-rust [INFO] tweaked toml for git repo https://github.com/diasdavid/bus-station-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/diasdavid/bus-station-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87d87e107aae57cee443855848900870afb5bc4f004b2fa836be5421d243e657 [INFO] running `Command { std: "docker" "start" "-a" "87d87e107aae57cee443855848900870afb5bc4f004b2fa836be5421d243e657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87d87e107aae57cee443855848900870afb5bc4f004b2fa836be5421d243e657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87d87e107aae57cee443855848900870afb5bc4f004b2fa836be5421d243e657", kill_on_drop: false }` [INFO] [stdout] 87d87e107aae57cee443855848900870afb5bc4f004b2fa836be5421d243e657 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03eb231675511672a002315b8559a99fd058ecc67bc7a44b5dc067e5a8330752 [INFO] running `Command { std: "docker" "start" "-a" "03eb231675511672a002315b8559a99fd058ecc67bc7a44b5dc067e5a8330752", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking bus-station v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | let mut result: Vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | let mut result: Vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [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/main.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let groups: Vec = [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/main.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let groups: Vec = [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/main.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | for y in range(min, sum/2+1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/main.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | for y in range(min, sum/2+1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/main.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | for i in range(0, n_groups) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/main.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | for i in range(0, n_groups) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `i` for number literal [INFO] [stdout] --> src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let mut sum = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let mut sum = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut min = 100000i; [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/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut min = 100000i; [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/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | if sum % y != 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 `i` for number literal [INFO] [stdout] --> src/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | if sum % y != 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 `i` for number literal [INFO] [stdout] --> src/main.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | let mut tmp = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | let mut tmp = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | tmp = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | tmp = 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 `i` for number literal [INFO] [stdout] --> src/main.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | if tmp == 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 `i` for number literal [INFO] [stdout] --> src/main.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | if tmp == 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[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/stdio.rs:397:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line(/* &mut String */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/stdio.rs:397:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line(/* &mut String */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/main.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ___________________________________- [INFO] [stdout] 11 | | .unwrap() [INFO] [stdout] 12 | | .as_slice() [INFO] [stdout] | | -^^^^^^^^ method not found in `usize` [INFO] [stdout] | |________________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/main.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ___________________________________- [INFO] [stdout] 11 | | .unwrap() [INFO] [stdout] 12 | | .as_slice() [INFO] [stdout] | | -^^^^^^^^ method not found in `usize` [INFO] [stdout] | |________________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | let n_groups: uint = from_str(reader.read_line() [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line().unwrap().as_slice() [INFO] [stdout] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/stdio.rs:397:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line(/* &mut String */).unwrap().as_slice() [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line().unwrap().as_slice() [INFO] [stdout] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/stdio.rs:397:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line(/* &mut String */).unwrap().as_slice() [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/main.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line().unwrap().as_slice() [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/main.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | reader.read_line().unwrap().as_slice() [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | let num = from_str(s).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | let num = from_str(s).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bus-station` (bin "bus-station") due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bus-station` (bin "bus-station" test) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "03eb231675511672a002315b8559a99fd058ecc67bc7a44b5dc067e5a8330752", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03eb231675511672a002315b8559a99fd058ecc67bc7a44b5dc067e5a8330752", kill_on_drop: false }` [INFO] [stdout] 03eb231675511672a002315b8559a99fd058ecc67bc7a44b5dc067e5a8330752