[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 try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jamesray1/write-to-file on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-10/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: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d751a8193aa3b5ae62cbd0378cfda5fa6bea9a9a69371d6a2edb2e19e94aadc4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d751a8193aa3b5ae62cbd0378cfda5fa6bea9a9a69371d6a2edb2e19e94aadc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d751a8193aa3b5ae62cbd0378cfda5fa6bea9a9a69371d6a2edb2e19e94aadc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d751a8193aa3b5ae62cbd0378cfda5fa6bea9a9a69371d6a2edb2e19e94aadc4", kill_on_drop: false }` [INFO] [stdout] d751a8193aa3b5ae62cbd0378cfda5fa6bea9a9a69371d6a2edb2e19e94aadc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84b8ebbb0af9a9e79e20059139a62b66eb1d9ce8b906235a948cd76bbd8ef6cf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "84b8ebbb0af9a9e79e20059139a62b66eb1d9ce8b906235a948cd76bbd8ef6cf", kill_on_drop: false }` [INFO] [stderr] Checking write-to-file v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected expression, found reserved identifier `_` [INFO] [stdout] --> src/main.rs:83:36 [INFO] [stdout] | [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved identifier `_` [INFO] [stdout] --> src/main.rs:83:36 [INFO] [stdout] | [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ^ expected expression [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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Error + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Error + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 80 | Some(v) => v.to_string(), [INFO] [stdout] | ^^^^^^^^^ method not found in `P` [INFO] [stdout] | [INFO] [stdout] = note: the method `to_string` exists but the following trait bounds were not satisfied: [INFO] [stdout] `P: std::fmt::Display` [INFO] [stdout] which is required by `P: ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/main.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ----------------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [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] | --------- `(String, usize)` defined here [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]: can't compare `()` with `Option<_>` [INFO] [stdout] --> src/main.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | while check_valid_default_path == None { [INFO] [stdout] | ^^ no implementation for `() == Option<_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option

: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:93:9 [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] 102 | pub fn write_object_to_file(input_path: P, object: T) -> Result<(), IoError> [INFO] [stdout] | -------------------- required by a bound in this [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 function 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] | ^^^^^^ ---------------------------- ------ [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ---------------------- supplied 3 arguments [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] 80 | Some(v) => v.to_string(), [INFO] [stdout] | ^^^^^^^^^ method not found in `P` [INFO] [stdout] | [INFO] [stdout] = note: the method `to_string` exists but the following trait bounds were not satisfied: [INFO] [stdout] `P: std::fmt::Display` [INFO] [stdout] which is required by `P: ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function 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] | ^^^^^^ ---------------------------- ------ ------ supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/main.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | (default_path, _) = get_input(); [INFO] [stdout] | ----------------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [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] | --------- `(String, usize)` defined here [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]: can't compare `()` with `Option<_>` [INFO] [stdout] --> src/main.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | while check_valid_default_path == None { [INFO] [stdout] | ^^ no implementation for `() == Option<_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option

: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:93:9 [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] 102 | pub fn write_object_to_file(input_path: P, object: T) -> Result<(), IoError> [INFO] [stdout] | -------------------- required by a bound in this [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 function 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] | ^^^^^^ ---------------------------- ------ [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] 94 | default_path_as_string); [INFO] [stdout] | ---------------------- supplied 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function 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] | ^^^^^^ ---------------------------- ------ ------ supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0070, E0277, E0425, E0599, E0600, E0618. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0070, E0277, E0425, E0599, 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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "84b8ebbb0af9a9e79e20059139a62b66eb1d9ce8b906235a948cd76bbd8ef6cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84b8ebbb0af9a9e79e20059139a62b66eb1d9ce8b906235a948cd76bbd8ef6cf", kill_on_drop: false }` [INFO] [stdout] 84b8ebbb0af9a9e79e20059139a62b66eb1d9ce8b906235a948cd76bbd8ef6cf