[INFO] cloning repository https://github.com/jamesray1/write-to-file [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jamesray1/write-to-file" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a69110a6188551e3e8a3501404a995c891cb471d [INFO] checking jamesray1/write-to-file against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jamesray1/write-to-file 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/jamesray1/write-to-file [INFO] finished tweaking git repo https://github.com/jamesray1/write-to-file [INFO] tweaked toml for git repo https://github.com/jamesray1/write-to-file written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jamesray1/write-to-file 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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 105761013e826aacba28248d99b8674a782c81949f40a4c7e35d12c356c8a233 [INFO] running `Command { std: "docker" "start" "-a" "105761013e826aacba28248d99b8674a782c81949f40a4c7e35d12c356c8a233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "105761013e826aacba28248d99b8674a782c81949f40a4c7e35d12c356c8a233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "105761013e826aacba28248d99b8674a782c81949f40a4c7e35d12c356c8a233", kill_on_drop: false }` [INFO] [stdout] 105761013e826aacba28248d99b8674a782c81949f40a4c7e35d12c356c8a233 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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] 1418938420f8bf645a7abb549e81539437feb625b5bb67074945b99da126c9ed [INFO] running `Command { std: "docker" "start" "-a" "1418938420f8bf645a7abb549e81539437feb625b5bb67074945b99da126c9ed", kill_on_drop: false }` [INFO] [stderr] Checking write-to-file v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `default_path_as_string` in this scope [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `default_path_as_string` in this scope [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for type parameter `P` in the current scope [INFO] [stdout] --> src/main.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn prompt_write_object_to_file<'a, T: Debug, P>(object: &T, default_path: Option
)
[INFO] [stdout] | - method `to_string` not found for this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 80 | Some(v) => v.to_string(),
[INFO] [stdout] | ^^^^^^^^^ method cannot be called on `P` due to unsatisfied trait bounds
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait
[INFO] [stdout] help: the following trait defines an item `to_string`, perhaps you need to restrict type parameter `P` with it:
[INFO] [stdout] |
[INFO] [stdout] 35 | P: AsRef )
[INFO] [stdout] | - method `to_string` not found for this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 80 | Some(v) => v.to_string(),
[INFO] [stdout] | ^^^^^^^^^ method cannot be called on `P` due to unsatisfied trait bounds
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait
[INFO] [stdout] help: the following trait defines an item `to_string`, perhaps you need to restrict type parameter `P` with it:
[INFO] [stdout] |
[INFO] [stdout] 35 | P: AsRef : AsRef `
[INFO] [stdout] | |
[INFO] [stdout] | required by a bound introduced by this call
[INFO] [stdout] |
[INFO] [stdout] note: required by a bound in `write_object_to_file`
[INFO] [stdout] --> src/main.rs:103:14
[INFO] [stdout] |
[INFO] [stdout] 102 | pub fn write_object_to_file : AsRef `
[INFO] [stdout] | |
[INFO] [stdout] | required by a bound introduced by this call
[INFO] [stdout] |
[INFO] [stdout] note: required by a bound in `write_object_to_file`
[INFO] [stdout] --> src/main.rs:103:14
[INFO] [stdout] |
[INFO] [stdout] 102 | pub fn write_object_to_file