[INFO] updating cached repository jamesray1/write-to-file [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/jamesray1/write-to-file [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/jamesray1/write-to-file" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jamesray1/write-to-file"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jamesray1/write-to-file'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/jamesray1/write-to-file" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jamesray1/write-to-file"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jamesray1/write-to-file'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] a69110a6188551e3e8a3501404a995c891cb471d [INFO] sha for GitHub repo jamesray1/write-to-file: a69110a6188551e3e8a3501404a995c891cb471d [INFO] validating manifest of jamesray1/write-to-file on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of jamesray1/write-to-file on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing jamesray1/write-to-file [INFO] finished frobbing jamesray1/write-to-file [INFO] frobbed toml for jamesray1/write-to-file written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jamesray1/write-to-file/Cargo.toml [INFO] started frobbing jamesray1/write-to-file [INFO] finished frobbing jamesray1/write-to-file [INFO] frobbed toml for jamesray1/write-to-file written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jamesray1/write-to-file/Cargo.toml [INFO] crate jamesray1/write-to-file already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking jamesray1/write-to-file against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-7/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jamesray1/write-to-file:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 1846acb3886be272fc235f7291351f7d380e44a368639154a06e11cd89f15924 [INFO] running `"docker" "start" "-a" "1846acb3886be272fc235f7291351f7d380e44a368639154a06e11cd89f15924"` [INFO] [stderr] Checking write-to-file v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: expected expression, found reserved identifier `_` [INFO] [stderr] --> src/main.rs:83:36 [INFO] [stderr] | [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^ expected expression [INFO] [stderr] [INFO] [stderr] error: expected expression, found reserved identifier `_` [INFO] [stderr] --> src/main.rs:83:36 [INFO] [stderr] | [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^ expected expression [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `default_path_as_string` in this scope [INFO] [stderr] --> src/main.rs:94:13 [INFO] [stderr] | [INFO] [stderr] 94 | default_path_as_string); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | -> Result<(), Box> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Error + Send + Sync` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `default_path_as_string` in this scope [INFO] [stderr] --> src/main.rs:94:13 [INFO] [stderr] | [INFO] [stderr] 94 | default_path_as_string); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | -> Result<(), Box> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Error + Send + Sync` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_string` found for type `P` in the current scope [INFO] [stderr] --> src/main.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | Some(v) => v.to_string(), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `to_string` exists but the following trait bounds were not satisfied: [INFO] [stderr] `P : std::string::ToString` [INFO] [stderr] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stderr] help: the following trait defines an item `to_string`, perhaps you need to restrict type parameter `P` with it: [INFO] [stderr] | [INFO] [stderr] 32 | pub fn prompt_write_object_to_file<'a, T: Debug, P: std::string::ToString>(object: &T, default_path: Option

) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0618]: expected function, found `(std::string::String, usize)` [INFO] [stderr] --> src/main.rs:83:41 [INFO] [stderr] | [INFO] [stderr] 51 | let get_input = { [INFO] [stderr] | --------- `(std::string::String, usize)` defined here [INFO] [stderr] ... [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^^^^^^^^^-- [INFO] [stderr] | | [INFO] [stderr] | call expression requires function [INFO] [stderr] [INFO] [stderr] error[E0070]: invalid left-hand side expression [INFO] [stderr] --> src/main.rs:83:21 [INFO] [stderr] | [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ left-hand of expression not valid [INFO] [stderr] [INFO] [stderr] error[E0277]: can't compare `()` with `std::option::Option<_>` [INFO] [stderr] --> src/main.rs:89:40 [INFO] [stderr] | [INFO] [stderr] 89 | while check_valid_default_path == None { [INFO] [stderr] | ^^ no implementation for `() == std::option::Option<_>` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::cmp::PartialEq>` is not implemented for `()` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::option::Option

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

` [INFO] [stderr] | [INFO] [stderr] note: required by `write_object_to_file` [INFO] [stderr] --> src/main.rs:102:1 [INFO] [stderr] | [INFO] [stderr] 102| / pub fn write_object_to_file(input_path: P, object: T) -> Result<(), IoError> [INFO] [stderr] 103| | where P: AsRef, [INFO] [stderr] 104| | { [INFO] [stderr] 105| | let mut file = File::create(input_path).expect("Error creating file, \ [INFO] [stderr] ... | [INFO] [stderr] 110| | Ok(()) [INFO] [stderr] 111| | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/main.rs:93:52 [INFO] [stderr] | [INFO] [stderr] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stderr] | ^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/main.rs:97:46 [INFO] [stderr] | [INFO] [stderr] 97 | write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stderr] | ^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0070, E0277, E0425, E0599, E0618. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `write-to-file`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `to_string` found for type `P` in the current scope [INFO] [stderr] --> src/main.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | Some(v) => v.to_string(), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `to_string` exists but the following trait bounds were not satisfied: [INFO] [stderr] `P : std::string::ToString` [INFO] [stderr] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stderr] help: the following trait defines an item `to_string`, perhaps you need to restrict type parameter `P` with it: [INFO] [stderr] | [INFO] [stderr] 32 | pub fn prompt_write_object_to_file<'a, T: Debug, P: std::string::ToString>(object: &T, default_path: Option

) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0618]: expected function, found `(std::string::String, usize)` [INFO] [stderr] --> src/main.rs:83:41 [INFO] [stderr] | [INFO] [stderr] 51 | let get_input = { [INFO] [stderr] | --------- `(std::string::String, usize)` defined here [INFO] [stderr] ... [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^^^^^^^^^-- [INFO] [stderr] | | [INFO] [stderr] | call expression requires function [INFO] [stderr] [INFO] [stderr] error[E0070]: invalid left-hand side expression [INFO] [stderr] --> src/main.rs:83:21 [INFO] [stderr] | [INFO] [stderr] 83 | (default_path, _) = get_input(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ left-hand of expression not valid [INFO] [stderr] [INFO] [stderr] error[E0277]: can't compare `()` with `std::option::Option<_>` [INFO] [stderr] --> src/main.rs:89:40 [INFO] [stderr] | [INFO] [stderr] 89 | while check_valid_default_path == None { [INFO] [stderr] | ^^ no implementation for `() == std::option::Option<_>` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::cmp::PartialEq>` is not implemented for `()` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::option::Option

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

` [INFO] [stderr] | [INFO] [stderr] note: required by `write_object_to_file` [INFO] [stderr] --> src/main.rs:102:1 [INFO] [stderr] | [INFO] [stderr] 102| / pub fn write_object_to_file(input_path: P, object: T) -> Result<(), IoError> [INFO] [stderr] 103| | where P: AsRef, [INFO] [stderr] 104| | { [INFO] [stderr] 105| | let mut file = File::create(input_path).expect("Error creating file, \ [INFO] [stderr] ... | [INFO] [stderr] 110| | Ok(()) [INFO] [stderr] 111| | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/main.rs:93:52 [INFO] [stderr] | [INFO] [stderr] 93 | write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, [INFO] [stderr] | ^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/main.rs:97:46 [INFO] [stderr] | [INFO] [stderr] 97 | write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input); [INFO] [stderr] | ^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0600]: cannot apply unary operator `!` to type `std::result::Result<(), std::io::Error>` [INFO] [stderr] --> src/main.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | assert!(write_object_to_file("foo", "~/foo.txt"), ()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stderr] | [INFO] [stderr] = note: an implementation of `std::ops::Not` might be missing for `std::result::Result<(), std::io::Error>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0070, E0277, E0425, E0599, E0600, E0618. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `write-to-file`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "1846acb3886be272fc235f7291351f7d380e44a368639154a06e11cd89f15924"` [INFO] running `"docker" "rm" "-f" "1846acb3886be272fc235f7291351f7d380e44a368639154a06e11cd89f15924"` [INFO] [stdout] 1846acb3886be272fc235f7291351f7d380e44a368639154a06e11cd89f15924