[INFO] updating cached repository Noskcaj19/rash [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Noskcaj19/rash [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Noskcaj19/rash" "work/ex/beta-1.38-1/sources/1.37.0/gh/Noskcaj19/rash"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/Noskcaj19/rash'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Noskcaj19/rash" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/Noskcaj19/rash"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/Noskcaj19/rash'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] d5c62c06e0266671b420296dc909fe0634d59391 [INFO] sha for GitHub repo Noskcaj19/rash: d5c62c06e0266671b420296dc909fe0634d59391 [INFO] validating manifest of Noskcaj19/rash 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 Noskcaj19/rash 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 Noskcaj19/rash [INFO] finished frobbing Noskcaj19/rash [INFO] frobbed toml for Noskcaj19/rash written to work/ex/beta-1.38-1/sources/1.37.0/gh/Noskcaj19/rash/Cargo.toml [INFO] started frobbing Noskcaj19/rash [INFO] finished frobbing Noskcaj19/rash [INFO] frobbed toml for Noskcaj19/rash written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/Noskcaj19/rash/Cargo.toml [INFO] crate Noskcaj19/rash 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] [stderr] Blocking waiting for file lock on package cache [INFO] testing Noskcaj19/rash against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-0/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/Noskcaj19/rash:/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" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 19b6560cad959b1be87f1d4371d3bd7f735c91729377b862696726ea71c5b9dc [INFO] running `"docker" "start" "-a" "19b6560cad959b1be87f1d4371d3bd7f735c91729377b862696726ea71c5b9dc"` [INFO] [stderr] Compiling cc v1.0.0 [INFO] [stderr] Compiling fs_extra v1.0.0 [INFO] [stderr] Compiling clap v2.26.2 [INFO] [stderr] Compiling backtrace-sys v0.1.14 [INFO] [stderr] Compiling backtrace v0.3.3 [INFO] [stderr] Compiling error-chain v0.11.0 [INFO] [stderr] Compiling rash v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/lib.rs:34:24 [INFO] [stderr] | [INFO] [stderr] 34 | let mut path_buf = env::home_dir().chain_err(|| "unable to locate home directory")?; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/lib.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | / error_chain! { [INFO] [stderr] 18 | | foreign_links { [INFO] [stderr] 19 | | Io(io::Error) #[doc = "Error during IO"]; [INFO] [stderr] 20 | | } [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/lib.rs:198:22 [INFO] [stderr] | [INFO] [stderr] 198 | pub fn put_back_item(item: &str, history: &History) { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_item` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `history` [INFO] [stderr] --> src/lib.rs:198:34 [INFO] [stderr] | [INFO] [stderr] 198 | pub fn put_back_item(item: &str, history: &History) { [INFO] [stderr] | ^^^^^^^ help: consider prefixing with an underscore: `_history` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/lib.rs:214:14 [INFO] [stderr] | [INFO] [stderr] 214 | pub fn trash(item: &str) { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_item` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `append_to_history` [INFO] [stderr] --> src/lib.rs:50:1 [INFO] [stderr] | [INFO] [stderr] 50 | fn append_to_history(entry: &FileEntry, path: &PathBuf) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `trash_path` [INFO] [stderr] --> src/lib.rs:97:1 [INFO] [stderr] | [INFO] [stderr] 97 | fn trash_path(path: &PathBuf, trash_path: &PathBuf) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_history_entry` [INFO] [stderr] --> src/lib.rs:135:1 [INFO] [stderr] | [INFO] [stderr] 135 | fn add_history_entry(original_path: &str, trashed_path: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/bin/main.rs:70:16 [INFO] [stderr] | [INFO] [stderr] 70 | if let Err(error) = rash::trash(file) { [INFO] [stderr] | ^^^^^^^^^^ ----------------- this match expression has type `()` [INFO] [stderr] | | [INFO] [stderr] | expected (), found enum `std::result::Result` [INFO] [stderr] | [INFO] [stderr] = note: expected type `()` [INFO] [stderr] found type `std::result::Result<_, _>` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `rash`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "19b6560cad959b1be87f1d4371d3bd7f735c91729377b862696726ea71c5b9dc"` [INFO] running `"docker" "rm" "-f" "19b6560cad959b1be87f1d4371d3bd7f735c91729377b862696726ea71c5b9dc"` [INFO] [stdout] 19b6560cad959b1be87f1d4371d3bd7f735c91729377b862696726ea71c5b9dc