[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#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [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 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "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" "+506512391b1a75ae450d36c9420978402a91abcc" "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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0709b2e7a74e9e9317c6cad7d4c016548f82d329f2ac5e4bb9adde3f5a6e09d [INFO] running `Command { std: "docker" "start" "-a" "a0709b2e7a74e9e9317c6cad7d4c016548f82d329f2ac5e4bb9adde3f5a6e09d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0709b2e7a74e9e9317c6cad7d4c016548f82d329f2ac5e4bb9adde3f5a6e09d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0709b2e7a74e9e9317c6cad7d4c016548f82d329f2ac5e4bb9adde3f5a6e09d", kill_on_drop: false }` [INFO] [stdout] a0709b2e7a74e9e9317c6cad7d4c016548f82d329f2ac5e4bb9adde3f5a6e09d [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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d103a1e1b2d720fe94b25cf64010030f56e6c497c7b1e8f62a3348982ed0113e [INFO] running `Command { std: "docker" "start" "-a" "d103a1e1b2d720fe94b25cf64010030f56e6c497c7b1e8f62a3348982ed0113e", 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 + ToString, [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0618]: expected function, found `(String, usize)` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 51 | let get_input = { [INFO] [stdout] | --------- `get_input` has type `(String, usize)` [INFO] [stdout] ... [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | call expression requires function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option

: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] | -------------------- ^^^^^^^^^^^^ the trait `AsRef` is not implemented for `Option

` [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(input_path: P, object: T) -> Result<(), IoError> [INFO] [stdout] | -------------------- required by a bound in this function [INFO] [stdout] 103 | where P: AsRef, [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `write_object_to_file` [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 + ToString, [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0618]: expected function, found `(String, usize)` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 51 | let get_input = { [INFO] [stdout] | --------- `get_input` has type `(String, usize)` [INFO] [stdout] ... [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | call expression requires function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option

: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] | -------------------- ^^^^^^^^^^^^ the trait `AsRef` is not implemented for `Option

` [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(input_path: P, object: T) -> Result<(), IoError> [INFO] [stdout] | -------------------- required by a bound in this function [INFO] [stdout] 103 | where P: AsRef, [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `write_object_to_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] | ^^^^^^ ------ unexpected argument of type `&T` [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ---------------------- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/result.rs:1032:12 [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 93 - write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] 93 + write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] | ^^^^^^ ------ unexpected argument of type `&T` [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ---------------------- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/result.rs:1032:12 [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 93 - write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stdout] 93 + write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:97:46 [INFO] [stdout] | [INFO] [stdout] 97 | write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stdout] | ^^^^^^ ------ ------ unexpected argument of type `&String` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument of type `&T` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/result.rs:1032:12 [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 97 - write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stdout] 97 + write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:97:46 [INFO] [stdout] | [INFO] [stdout] 97 | write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stdout] | ^^^^^^ ------ ------ unexpected argument of type `&String` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument of type `&T` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/result.rs:1032:12 [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 97 - write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stdout] 97 + write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `Result<(), std::io::Error>` [INFO] [stdout] --> src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | assert!(write_object_to_file("foo", "~/foo.txt"), ()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425, E0599, E0618. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425, E0599, E0600, E0618. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `write-to-file` (bin "write-to-file") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `write-to-file` (bin "write-to-file" test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "d103a1e1b2d720fe94b25cf64010030f56e6c497c7b1e8f62a3348982ed0113e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d103a1e1b2d720fe94b25cf64010030f56e6c497c7b1e8f62a3348982ed0113e", kill_on_drop: false }` [INFO] [stdout] d103a1e1b2d720fe94b25cf64010030f56e6c497c7b1e8f62a3348982ed0113e