[INFO] updating cached repository https://github.com/shiroyasha/rust_grep [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] 2eae909e9d1ec6efc28974029da892736592beb5 [INFO] checking shiroyasha/rust_grep against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiroyasha%2Frust_grep" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shiroyasha/rust_grep on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/shiroyasha/rust_grep [INFO] finished tweaking git repo https://github.com/shiroyasha/rust_grep [INFO] tweaked toml for git repo https://github.com/shiroyasha/rust_grep written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/shiroyasha/rust_grep already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 6e422c4ae1e640d5da1522d331fa9b97055227df16bfd63f7f15c6ac145a975f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "6e422c4ae1e640d5da1522d331fa9b97055227df16bfd63f7f15c6ac145a975f"` [INFO] [stderr] Checking rg v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `found` [INFO] [stderr] --> src/main.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 14 | println!("{}", path.display()) [INFO] [stderr] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] 15 | found = true [INFO] [stderr] | ^^^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:25:31 [INFO] [stderr] | [INFO] [stderr] 25 | let mut number_of_files = 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/main.rs:45:20 [INFO] [stderr] | [INFO] [stderr] 45 | for _ in range(0u, number_of_files) { [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: expected one of `.`, `;`, `?`, `}`, or an operator, found `found` [INFO] [stderr] --> src/main.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 14 | println!("{}", path.display()) [INFO] [stderr] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] 15 | found = true [INFO] [stderr] | ^^^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:25:31 [INFO] [stderr] | [INFO] [stderr] 25 | let mut number_of_files = 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/main.rs:45:20 [INFO] [stderr] | [INFO] [stderr] 45 | for _ in range(0u, number_of_files) { [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[E0432]: unresolved import `std::comm` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::comm; [INFO] [stderr] | ^^^^^^^^^ no `comm` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `std::io::File`, `std::io::BufferedReader`, `std::io::fs` [INFO] [stderr] --> src/main.rs:3:15 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::{File, BufferedReader, fs}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^ ^^ no `fs` in `io` [INFO] [stderr] | | | [INFO] [stderr] | | no `BufferedReader` in `io` [INFO] [stderr] | no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::fs` [INFO] [stderr] --> src/main.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::fs::PathExtensions; [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::comm` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::comm; [INFO] [stderr] | ^^^^^^^^^ no `comm` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `std::io::File`, `std::io::BufferedReader`, `std::io::fs` [INFO] [stderr] --> src/main.rs:3:15 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::{File, BufferedReader, fs}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^ ^^ no `fs` in `io` [INFO] [stderr] | | | [INFO] [stderr] | | no `BufferedReader` in `io` [INFO] [stderr] | no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::fs` [INFO] [stderr] --> src/main.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::fs::PathExtensions; [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `fs` in `io` [INFO] [stderr] --> src/main.rs:59:32 [INFO] [stderr] | [INFO] [stderr] 59 | let found = match std::io::fs::walk_dir(&Path::new(".")) { [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:59:46 [INFO] [stderr] | [INFO] [stderr] 59 | let found = match std::io::fs::walk_dir(&Path::new(".")) { [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Path` in this scope [INFO] [stderr] --> src/main.rs:6:45 [INFO] [stderr] | [INFO] [stderr] 6 | fn search_in_file(text_to_find: &str, path: Path) -> bool { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::path::Path; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Sender` in this scope [INFO] [stderr] --> src/main.rs:23:20 [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Sender, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Send, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::mpsc::Sender; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stderr] --> src/main.rs:23:34 [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Sender, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Receiver; [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::mpsc::Receiver; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spawn` in this scope [INFO] [stderr] --> src/main.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | spawn(move || { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::thread::spawn; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:35:28 [INFO] [stderr] | [INFO] [stderr] 35 | let args = os::args(); [INFO] [stderr] | ^^^^ not found in `os` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:45:14 [INFO] [stderr] | [INFO] [stderr] 45 | for _ in range(0u, number_of_files) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `IoError` in module `std::io` [INFO] [stderr] --> src/main.rs:54:28 [INFO] [stderr] | [INFO] [stderr] 54 | fn log_error(why: std::io::IoError) { [INFO] [stderr] | ^^^^^^^ help: a struct with a similar name exists: `Error` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `set_exit_status` in module `std::os` [INFO] [stderr] --> src/main.rs:64:14 [INFO] [stderr] | [INFO] [stderr] 64 | std::os::set_exit_status(if found { 0 } else { 1 }) [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `std::os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `fs` in `io` [INFO] [stderr] --> src/main.rs:59:32 [INFO] [stderr] | [INFO] [stderr] 59 | let found = match std::io::fs::walk_dir(&Path::new(".")) { [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:59:46 [INFO] [stderr] | [INFO] [stderr] 59 | let found = match std::io::fs::walk_dir(&Path::new(".")) { [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Path` in this scope [INFO] [stderr] --> src/main.rs:6:45 [INFO] [stderr] | [INFO] [stderr] 6 | fn search_in_file(text_to_find: &str, path: Path) -> bool { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::path::Path; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Sender` in this scope [INFO] [stderr] --> src/main.rs:23:20 [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Sender, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Send, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::mpsc::Sender; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stderr] --> src/main.rs:23:34 [INFO] [stderr] | [INFO] [stderr] 23 | let (tx, rx): (Sender, Receiver) = comm::channel(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Receiver; [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::mpsc::Receiver; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spawn` in this scope [INFO] [stderr] --> src/main.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | spawn(move || { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::thread::spawn; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:35:28 [INFO] [stderr] | [INFO] [stderr] 35 | let args = os::args(); [INFO] [stderr] | ^^^^ not found in `os` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:45:14 [INFO] [stderr] | [INFO] [stderr] 45 | for _ in range(0u, number_of_files) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `IoError` in module `std::io` [INFO] [stderr] --> src/main.rs:54:28 [INFO] [stderr] | [INFO] [stderr] 54 | fn log_error(why: std::io::IoError) { [INFO] [stderr] | ^^^^^^^ help: a struct with a similar name exists: `Error` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `set_exit_status` in module `std::os` [INFO] [stderr] --> src/main.rs:64:14 [INFO] [stderr] | [INFO] [stderr] 64 | std::os::set_exit_status(if found { 0 } else { 1 }) [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `std::os` [INFO] [stderr] [INFO] [stderr] error: aborting due to 16 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: aborting due to 16 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `rg`. [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 `rg`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "6e422c4ae1e640d5da1522d331fa9b97055227df16bfd63f7f15c6ac145a975f"` [INFO] running `"docker" "rm" "-f" "6e422c4ae1e640d5da1522d331fa9b97055227df16bfd63f7f15c6ac145a975f"` [INFO] [stdout] 6e422c4ae1e640d5da1522d331fa9b97055227df16bfd63f7f15c6ac145a975f