[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/beta-1.38-1/sources/1.37.0/gh/jamesray1/write-to-file"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/jamesray1/write-to-file'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/jamesray1/write-to-file" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/jamesray1/write-to-file"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/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 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of jamesray1/write-to-file on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "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/beta-1.38-1/sources/1.37.0/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/beta-1.38-1/sources/beta-2019-08-13/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" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing jamesray1/write-to-file against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/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=warn" "-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" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] 5de54c70361f6dff1d8f2c37f70ee56cbb42bdc6233f410d177961ac124dc5cf [INFO] running `"docker" "start" "-a" "5de54c70361f6dff1d8f2c37f70ee56cbb42bdc6233f410d177961ac124dc5cf"` [INFO] [stderr] Compiling 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[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] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "5de54c70361f6dff1d8f2c37f70ee56cbb42bdc6233f410d177961ac124dc5cf"` [INFO] running `"docker" "rm" "-f" "5de54c70361f6dff1d8f2c37f70ee56cbb42bdc6233f410d177961ac124dc5cf"` [INFO] [stdout] 5de54c70361f6dff1d8f2c37f70ee56cbb42bdc6233f410d177961ac124dc5cf