[INFO] cloning repository https://github.com/gtadam/rust-dns [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gtadam/rust-dns" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtadam%2Frust-dns", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtadam%2Frust-dns'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a95b3eec594dc57959f1f345bf5305b9524b664 [INFO] checking gtadam/rust-dns against master#2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtadam%2Frust-dns" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gtadam/rust-dns on toolchain 2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gtadam/rust-dns [INFO] finished tweaking git repo https://github.com/gtadam/rust-dns [INFO] tweaked toml for git repo https://github.com/gtadam/rust-dns written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gtadam/rust-dns 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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "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] Downloading crates ... [INFO] [stderr] Downloaded time v0.1.1 [INFO] [stderr] Downloaded gcc v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5df5582bd4041bea895764f59bde2df1569e8a3d4817ca098fe6390e470e45c9 [INFO] running `Command { std: "docker" "start" "-a" "5df5582bd4041bea895764f59bde2df1569e8a3d4817ca098fe6390e470e45c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5df5582bd4041bea895764f59bde2df1569e8a3d4817ca098fe6390e470e45c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5df5582bd4041bea895764f59bde2df1569e8a3d4817ca098fe6390e470e45c9", kill_on_drop: false }` [INFO] [stdout] 5df5582bd4041bea895764f59bde2df1569e8a3d4817ca098fe6390e470e45c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a103c5d40b2244e2b3d452b091539f000ba2c45ea3fd312e120e556582882c0 [INFO] running `Command { std: "docker" "start" "-a" "9a103c5d40b2244e2b3d452b091539f000ba2c45ea3fd312e120e556582882c0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling gcc v0.1.1 [INFO] [stdout] error[E0432]: unresolved import `std::io::Command` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Command` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 1 - use std::io::Command; [INFO] [stdout] 1 + use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::process` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::process::InheritFd; [INFO] [stdout] | ^^^^^^^ could not find `process` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::os::getenv` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | use std::os::getenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `getenv` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `fs` in `io` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); [INFO] [stdout] | ^^ could not find `fs` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | pub include_directories: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub objects: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | let src = Path::new(getenv("CARGO_MANIFEST_DIR").unwrap()); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | let dst = Path::new(getenv("OUT_DIR").unwrap()); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USER_RWX` in module `std::io` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:91:64 [INFO] [stdout] | [INFO] [stdout] 91 | std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in `std::io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | if target.as_slice().contains("-ios") { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 61 | cmd.args(ios_flags(target.as_slice()).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | if target.as_slice().contains("i686") { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | } else if target.as_slice().contains("x86_64") { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | if !target.as_slice().contains("i686") { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&str` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 102 | dst.display(), output.slice(3, output.len() - 2)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `split_once` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48/library/core/src/str/mod.rs:1922:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:127:57 [INFO] [stdout] | [INFO] [stdout] 127 | let res = getenv(format!("{}_{}", var_base, target).as_slice()) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:128:65 [INFO] [stdout] | [INFO] [stdout] 128 | .or_else(|| getenv(format!("{}_{}", var_base, target_u).as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:129:61 [INFO] [stdout] | [INFO] [stdout] 129 | .or_else(|| getenv(format!("{}_{}", kind, var_base).as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 151 | / get_var("CFLAGS").unwrap_or(String::new()) [INFO] [stdout] 152 | | .as_slice().words().map(|s| s.to_string()) [INFO] [stdout] | | -^^^^^^^^ method not found in `String` [INFO] [stdout] | |________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gcc-0.1.1/src/lib.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | res.push(sdk_path.as_slice().trim()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gcc` (lib) due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "9a103c5d40b2244e2b3d452b091539f000ba2c45ea3fd312e120e556582882c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a103c5d40b2244e2b3d452b091539f000ba2c45ea3fd312e120e556582882c0", kill_on_drop: false }` [INFO] [stdout] 9a103c5d40b2244e2b3d452b091539f000ba2c45ea3fd312e120e556582882c0