[INFO] cloning repository https://github.com/manuelmillefiori/mmbackup [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/manuelmillefiori/mmbackup" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelmillefiori%2Fmmbackup", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelmillefiori%2Fmmbackup'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac66bf871e9a85f192e92b6fd83c80488805094b [INFO] checking manuelmillefiori/mmbackup against try#3298c2ca5e390fd0d104357fdeec514a152a9561 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelmillefiori%2Fmmbackup" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/manuelmillefiori/mmbackup on toolchain 3298c2ca5e390fd0d104357fdeec514a152a9561 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/manuelmillefiori/mmbackup [INFO] finished tweaking git repo https://github.com/manuelmillefiori/mmbackup [INFO] tweaked toml for git repo https://github.com/manuelmillefiori/mmbackup written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/manuelmillefiori/mmbackup 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" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40230660d06931f66a1f4b88fb4b2eaf71c4e5aeb23cee80179e231dd3eef446 [INFO] running `Command { std: "docker" "start" "-a" "40230660d06931f66a1f4b88fb4b2eaf71c4e5aeb23cee80179e231dd3eef446", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40230660d06931f66a1f4b88fb4b2eaf71c4e5aeb23cee80179e231dd3eef446", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40230660d06931f66a1f4b88fb4b2eaf71c4e5aeb23cee80179e231dd3eef446", kill_on_drop: false }` [INFO] [stdout] 40230660d06931f66a1f4b88fb4b2eaf71c4e5aeb23cee80179e231dd3eef446 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f4e1633eb6d00aaf4d29229ac59bc0ef098daef4c973e015083536be395a67e [INFO] running `Command { std: "docker" "start" "-a" "4f4e1633eb6d00aaf4d29229ac59bc0ef098daef4c973e015083536be395a67e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking xattr v1.0.1 [INFO] [stderr] Checking filetime v0.2.22 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking tar v0.4.40 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling libz-sys v1.1.12 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Checking ssh2 v0.9.4 [INFO] [stderr] Checking mmbackup v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:101:56 [INFO] [stdout] | [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] 101 + send_file_sftp(host.clone(), local_file.clone(), remote_dir + local_file.as_str(), username.clone(), password.clone()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for type `i32` in the current scope [INFO] [stdout] --> src/main.rs:148:57 [INFO] [stdout] | [INFO] [stdout] 148 | add_file_or_folder(local_file, &mut tar_builder, "").expect("Errore durante la compressione"); [INFO] [stdout] | ^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:101:56 [INFO] [stdout] | [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] 101 + send_file_sftp(host.clone(), local_file.clone(), remote_dir + local_file.as_str(), username.clone(), password.clone()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:191:61 [INFO] [stdout] | [INFO] [stdout] 191 | if let Err(_) = tar_builder.append_file(archive_path, file_or_folder) { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::fs::File` [INFO] [stdout] found reference `&Path` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tar-0.4.40/src/builder.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn append_file>(&mut self, path: P, file: &mut fs::File) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compressed_file` [INFO] [stdout] --> src/main.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | let mut compressed_file = compress_tar_gz(&local_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compressed_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | let mut compressed_file = compress_tar_gz(&local_file); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `remote_dir` [INFO] [stdout] --> src/main.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 89 | fn backup_loop(delay: u32, host: String, mut local_file: String, remote_dir: String, username: String, password: String) { [INFO] [stdout] | ---------- move occurs because `remote_dir` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 95 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ^^^^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir.clone() + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for type `i32` in the current scope [INFO] [stdout] --> src/main.rs:148:57 [INFO] [stdout] | [INFO] [stdout] 148 | add_file_or_folder(local_file, &mut tar_builder, "").expect("Errore durante la compressione"); [INFO] [stdout] | ^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mmbackup` (bin "mmbackup") due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:191:61 [INFO] [stdout] | [INFO] [stdout] 191 | if let Err(_) = tar_builder.append_file(archive_path, file_or_folder) { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut std::fs::File` [INFO] [stdout] found reference `&Path` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tar-0.4.40/src/builder.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn append_file>(&mut self, path: P, file: &mut fs::File) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compressed_file` [INFO] [stdout] --> src/main.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | let mut compressed_file = compress_tar_gz(&local_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compressed_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | let mut compressed_file = compress_tar_gz(&local_file); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `remote_dir` [INFO] [stdout] --> src/main.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 89 | fn backup_loop(delay: u32, host: String, mut local_file: String, remote_dir: String, username: String, password: String) { [INFO] [stdout] | ---------- move occurs because `remote_dir` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 95 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ^^^^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 101 | send_file_sftp(host.clone(), local_file.clone(), (remote_dir.clone() + local_file.as_str()), username.clone(), password.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mmbackup` (bin "mmbackup" test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4f4e1633eb6d00aaf4d29229ac59bc0ef098daef4c973e015083536be395a67e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f4e1633eb6d00aaf4d29229ac59bc0ef098daef4c973e015083536be395a67e", kill_on_drop: false }` [INFO] [stdout] 4f4e1633eb6d00aaf4d29229ac59bc0ef098daef4c973e015083536be395a67e