[INFO] cloning repository https://github.com/WojciechMatuszewski/poor-mans-rust-grep [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WojciechMatuszewski/poor-mans-rust-grep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWojciechMatuszewski%2Fpoor-mans-rust-grep", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWojciechMatuszewski%2Fpoor-mans-rust-grep'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63a225fc57587dbb416035cdc279b76adb144b8c [INFO] checking WojciechMatuszewski/poor-mans-rust-grep against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWojciechMatuszewski%2Fpoor-mans-rust-grep" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep [INFO] finished tweaking git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep [INFO] tweaked toml for git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7499c7a29f38177f3d062a1fd00170af24eff480769579d116439a4ce00e6714 [INFO] running `Command { std: "docker" "start" "-a" "7499c7a29f38177f3d062a1fd00170af24eff480769579d116439a4ce00e6714", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7499c7a29f38177f3d062a1fd00170af24eff480769579d116439a4ce00e6714", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7499c7a29f38177f3d062a1fd00170af24eff480769579d116439a4ce00e6714", kill_on_drop: false }` [INFO] [stdout] 7499c7a29f38177f3d062a1fd00170af24eff480769579d116439a4ce00e6714 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 248a15edcfba4b09d4604f01adf5ea0374287f36994f583c7a847c1b4b601934 [INFO] running `Command { std: "docker" "start" "-a" "248a15edcfba4b09d4604f01adf5ea0374287f36994f583c7a847c1b4b601934", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking predicates-core v1.0.3 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking termtree v0.2.4 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking rust-grep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::dir_to_glob_pattern` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | use crate::dir_to_glob_pattern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | mod test_dir_to_glob_pattern { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SearchResult`, `find_in_contents` [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | use crate::{find_in_contents, SearchResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 122 | mod test_reading_file { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking predicates-tree v1.0.5 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking predicates v2.1.1 [INFO] [stderr] Checking assert_cmd v2.0.4 [INFO] [stdout] warning: unused import: `SearchResult` [INFO] [stdout] --> src/main.rs:123:35 [INFO] [stdout] | [INFO] [stdout] 123 | use crate::{find_in_contents, SearchResult}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.57s [INFO] running `Command { std: "docker" "inspect" "248a15edcfba4b09d4604f01adf5ea0374287f36994f583c7a847c1b4b601934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "248a15edcfba4b09d4604f01adf5ea0374287f36994f583c7a847c1b4b601934", kill_on_drop: false }` [INFO] [stdout] 248a15edcfba4b09d4604f01adf5ea0374287f36994f583c7a847c1b4b601934 [INFO] checking WojciechMatuszewski/poor-mans-rust-grep against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWojciechMatuszewski%2Fpoor-mans-rust-grep" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep [INFO] finished tweaking git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep [INFO] tweaked toml for git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/WojciechMatuszewski/poor-mans-rust-grep 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b76a95250c1b946c8d745b9c9f91eb2671c5c4796f30a11620256cb5b7cdfd92 [INFO] running `Command { std: "docker" "start" "-a" "b76a95250c1b946c8d745b9c9f91eb2671c5c4796f30a11620256cb5b7cdfd92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b76a95250c1b946c8d745b9c9f91eb2671c5c4796f30a11620256cb5b7cdfd92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b76a95250c1b946c8d745b9c9f91eb2671c5c4796f30a11620256cb5b7cdfd92", kill_on_drop: false }` [INFO] [stdout] b76a95250c1b946c8d745b9c9f91eb2671c5c4796f30a11620256cb5b7cdfd92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2f03efe40e6b9d570e2235191ee09faf53dbd83477a1cff3495cf0035ad0c29 [INFO] running `Command { std: "docker" "start" "-a" "d2f03efe40e6b9d570e2235191ee09faf53dbd83477a1cff3495cf0035ad0c29", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking predicates-core v1.0.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking termtree v0.2.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking predicates-tree v1.0.5 [INFO] [stderr] Checking rust-grep v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking predicates v2.1.1 [INFO] [stderr] Checking assert_cmd v2.0.4 [INFO] [stderr] Migrating tests/cli.rs from 2021 edition to 2024 [INFO] [stdout] error[E0425]: cannot find function `dir_to_glob_pattern` in this scope [INFO] [stdout] --> src/main.rs:100:28 [INFO] [stdout] | [INFO] [stdout] 100 | let glob_pattern = dir_to_glob_pattern(dir_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 97 + use crate::dir_to_glob_pattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dir_to_glob_pattern` in this scope [INFO] [stdout] --> src/main.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | let glob_pattern = dir_to_glob_pattern(dir_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 97 + use crate::dir_to_glob_pattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dir_to_glob_pattern` in this scope [INFO] [stdout] --> src/main.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | let glob_pattern = dir_to_glob_pattern(dir_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 97 + use crate::dir_to_glob_pattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_in_contents` in this scope [INFO] [stdout] --> src/main.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | let matches = find_in_contents(contents, "Wojtek"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 125 + use crate::find_in_contents; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_in_contents` in this scope [INFO] [stdout] --> src/main.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | let matches = find_in_contents(contents, "Mateusz"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 125 + use crate::find_in_contents; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-grep` (bin "rust-grep" test) due to 6 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d2f03efe40e6b9d570e2235191ee09faf53dbd83477a1cff3495cf0035ad0c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f03efe40e6b9d570e2235191ee09faf53dbd83477a1cff3495cf0035ad0c29", kill_on_drop: false }` [INFO] [stdout] d2f03efe40e6b9d570e2235191ee09faf53dbd83477a1cff3495cf0035ad0c29