[INFO] fetching crate max-grrs 0.1.0... [INFO] checking max-grrs-0.1.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate max-grrs 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate max-grrs 0.1.0 [INFO] finished tweaking crates.io crate max-grrs 0.1.0 [INFO] tweaked toml for crates.io crate max-grrs 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate max-grrs 0.1.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate max-grrs 0.1.0 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16ff62b028881ae5fa951b5112308af0a9ca3f40a3e9a7f0eda232e106460cdf [INFO] running `Command { std: "docker" "start" "-a" "16ff62b028881ae5fa951b5112308af0a9ca3f40a3e9a7f0eda232e106460cdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16ff62b028881ae5fa951b5112308af0a9ca3f40a3e9a7f0eda232e106460cdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ff62b028881ae5fa951b5112308af0a9ca3f40a3e9a7f0eda232e106460cdf", kill_on_drop: false }` [INFO] [stdout] 16ff62b028881ae5fa951b5112308af0a9ca3f40a3e9a7f0eda232e106460cdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4446d79287d8097234c96d24c5269765f72bdbeec7bd653c1d81520574cd77bd [INFO] running `Command { std: "docker" "start" "-a" "4446d79287d8097234c96d24c5269765f72bdbeec7bd653c1d81520574cd77bd", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking bstr v1.5.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking globset v0.4.10 [INFO] [stderr] Checking ignore v0.4.20 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking predicates v3.0.3 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking assert_cmd v2.0.11 [INFO] [stderr] Compiling clap_derive v4.3.2 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking assert_fs v1.0.13 [INFO] [stderr] Checking clap_builder v4.3.4 [INFO] [stderr] Checking clap v4.3.4 [INFO] [stderr] Checking max-grrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `assert_cmd` [INFO] [stdout] --> tests/cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use assert_cmd::prelude::*; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `assert_cmd` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `assert_cmd`, use `cargo add assert_cmd` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] | [INFO] [stdout] 1 + extern crate assert_cmd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `predicates` [INFO] [stdout] --> tests/cli.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `predicates` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `predicates`, use `cargo add predicates` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] | [INFO] [stdout] 1 + extern crate predicates; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `assert_fs` [INFO] [stdout] --> tests/cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use assert_fs::prelude::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `assert_fs` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `assert_fs`, use `cargo add assert_fs` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] | [INFO] [stdout] 1 + extern crate assert_fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `assert_cmd::prelude::*`, `predicates::prelude::*`, `assert_fs::prelude::*` [INFO] [stdout] --> tests/cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use assert_cmd::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] 4 | use assert_fs::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `predicate` [INFO] [stdout] --> tests/cli.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | cmd.assert().failure().stderr(predicate::str::contains("Could not read file")); [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `predicate` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 10 | cmd.assert().failure().stderr(predicates::str::contains("Could not read file")); [INFO] [stdout] | + [INFO] [stdout] help: consider importing this builtin type [INFO] [stdout] | [INFO] [stdout] 1 + use std::primitive::str; [INFO] [stdout] | [INFO] [stdout] help: if you import `str`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 10 - cmd.assert().failure().stderr(predicate::str::contains("Could not read file")); [INFO] [stdout] 10 + cmd.assert().failure().stderr(str::contains("Could not read file")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `predicate` [INFO] [stdout] --> tests/cli.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | .stdout(predicate::str::contains("This is a test\nThis is another test")); [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `predicate` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 24 | .stdout(predicates::str::contains("This is a test\nThis is another test")); [INFO] [stdout] | + [INFO] [stdout] help: consider importing this builtin type [INFO] [stdout] | [INFO] [stdout] 1 + use std::primitive::str; [INFO] [stdout] | [INFO] [stdout] help: if you import `str`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 24 - .stdout(predicate::str::contains("This is a test\nThis is another test")); [INFO] [stdout] 24 + .stdout(str::contains("This is a test\nThis is another test")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `cargo_bin` found for struct `Command` in the current scope [INFO] [stdout] --> tests/cli.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cmd = Command::cargo_bin("max-grrs")?; [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Command` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Command`, consider using `Command::new` which returns `Command` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/std/src/process.rs:655:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_str` found for struct `NamedTempFile` in the current scope [INFO] [stdout] --> tests/cli.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | file.write_str("Hello, World!\nThis is a test\nThis is another test\nAnother line")?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assert_fs-1.0.13/src/fixture/tools.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn write_str(&self, data: &str) -> Result<(), FixtureError>; [INFO] [stdout] | --------- the method is available for `NamedTempFile` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_str` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/std/src/path.rs:2335:5 [INFO] [stdout] help: trait `FileWriteStr` which provides `write_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use assert_fs::fixture::FileWriteStr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `cargo_bin` found for struct `Command` in the current scope [INFO] [stdout] --> tests/cli.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | let mut cmd = Command::cargo_bin("grrs")?; [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Command` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Command`, consider using `Command::new` which returns `Command` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/std/src/process.rs:655:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `max-grrs` (test "cli") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "4446d79287d8097234c96d24c5269765f72bdbeec7bd653c1d81520574cd77bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4446d79287d8097234c96d24c5269765f72bdbeec7bd653c1d81520574cd77bd", kill_on_drop: false }` [INFO] [stdout] 4446d79287d8097234c96d24c5269765f72bdbeec7bd653c1d81520574cd77bd