[INFO] cloning repository https://github.com/kmeisthax/rapidtar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmeisthax/rapidtar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Frapidtar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Frapidtar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ac476fb2617f1b78984518b8f8349ce696d5b37 [INFO] checking kmeisthax/rapidtar against try#a326ccb4ce868265c4f69a0270f3033164acc4f9 for pr-111063-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Frapidtar" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kmeisthax/rapidtar on toolchain a326ccb4ce868265c4f69a0270f3033164acc4f9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a326ccb4ce868265c4f69a0270f3033164acc4f9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kmeisthax/rapidtar [INFO] finished tweaking git repo https://github.com/kmeisthax/rapidtar [INFO] tweaked toml for git repo https://github.com/kmeisthax/rapidtar written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kmeisthax/rapidtar 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" "+a326ccb4ce868265c4f69a0270f3033164acc4f9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+a326ccb4ce868265c4f69a0270f3033164acc4f9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b87f954cb36dedcf0015e61adde807894b5c80d4aad849956fb0ed3e415597fd [INFO] running `Command { std: "docker" "start" "-a" "b87f954cb36dedcf0015e61adde807894b5c80d4aad849956fb0ed3e415597fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b87f954cb36dedcf0015e61adde807894b5c80d4aad849956fb0ed3e415597fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b87f954cb36dedcf0015e61adde807894b5c80d4aad849956fb0ed3e415597fd", kill_on_drop: false }` [INFO] [stdout] b87f954cb36dedcf0015e61adde807894b5c80d4aad849956fb0ed3e415597fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+a326ccb4ce868265c4f69a0270f3033164acc4f9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54033ef23bcc58d65c663f522e253971b296a8a80cf70419d9baad3ac28e9e19 [INFO] running `Command { std: "docker" "start" "-a" "54033ef23bcc58d65c663f522e253971b296a8a80cf70419d9baad3ac28e9e19", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling nix v0.10.0 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking pad v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Checking argparse v0.2.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking rand_jitter v0.1.2 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking librapidarchive v0.2.0 (/opt/rustwide/workdir/librapidarchive) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/tar/mod.rs:93:72 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut ArchivalSink) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut dyn ArchivalSink) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/tar/recovery.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut dyn ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result>>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/traverse.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 33 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/portable.rs:85:117 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> whe... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> where ffi::OsString: From

, P: Clone, I: 'static + Send + Clone + PartialEq { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/portable.rs:120:71 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn open_tape>(_tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | pub fn open_tape>(_tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:22:117 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> whe... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> where ffi::OsString: From

, P: Clone, I: 'static + Send + Clone + PartialEq { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:50:70 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn open_tape>(tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | pub fn open_tape>(tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/tar/mod.rs:93:72 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut ArchivalSink) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut dyn ArchivalSink) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/tar/recovery.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut dyn ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result>>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/traverse.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 33 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/portable.rs:85:117 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> whe... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> where ffi::OsString: From

, P: Clone, I: 'static + Send + Clone + PartialEq { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/portable.rs:120:71 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn open_tape>(_tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | pub fn open_tape>(_tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:22:117 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> whe... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn open_sink, I>(outfile: P, tuning: &Configuration, limit: Option) -> io::Result>> where ffi::OsString: From

, P: Clone, I: 'static + Send + Clone + PartialEq { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:50:70 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn open_tape>(tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | pub fn open_tape>(tapedev: P) -> io::Result> where ffi::OsString: From

, P: Clone { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> librapidarchive/src/traverse.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | IOError(err) => err.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> librapidarchive/src/traverse.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | IOError(err) => err.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `sink` [INFO] [stdout] --> librapidarchive/src/tar/recovery.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 76 | while let Some(zone) = iter.next() { [INFO] [stdout] | ---------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 107 | sink.resume_data_zone(new_ident, zone.committed_length.checked_sub(ident.header_length).unwrap_or(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 121 | io::copy(&mut file, sink).map(|_| ()) [INFO] [stdout] | ---- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `tarball` [INFO] [stdout] --> librapidarchive/src/tar/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut ArchivalSink) -> io::Result { [INFO] [stdout] | ------- move occurs because `tarball` has type `&mut dyn portable::ArchivalSink`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 118 | tarball_size += io::copy(&mut source_file, tarball)?; [INFO] [stdout] | ------- value moved here [INFO] [stdout] ... [INFO] [stdout] 132 | tarball.write_all(&vec![0; (512 - padding_needed) as usize])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut username; [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] warning: variable does not need to be mutable [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let mut groupname; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `sink` [INFO] [stdout] --> librapidarchive/src/tar/recovery.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn recover_data(sink: &mut ArchivalSink, format: TarFormat, lost: Vec>) -> io::Result`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 76 | while let Some(zone) = iter.next() { [INFO] [stdout] | ---------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 107 | sink.resume_data_zone(new_ident, zone.committed_length.checked_sub(ident.header_length).unwrap_or(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 121 | io::copy(&mut file, sink).map(|_| ()) [INFO] [stdout] | ---- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `tarball` [INFO] [stdout] --> librapidarchive/src/tar/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn serialize(traversal: &header::HeaderGenResult, tarball: &mut ArchivalSink) -> io::Result { [INFO] [stdout] | ------- move occurs because `tarball` has type `&mut dyn portable::ArchivalSink`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 118 | tarball_size += io::copy(&mut source_file, tarball)?; [INFO] [stdout] | ------- value moved here [INFO] [stdout] ... [INFO] [stdout] 132 | tarball.write_all(&vec![0; (512 - padding_needed) as usize])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `librapidarchive` (lib) due to 3 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut username; [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] warning: variable does not need to be mutable [INFO] [stdout] --> librapidarchive/src/fs/unix.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let mut groupname; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `librapidarchive` (lib test) due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "54033ef23bcc58d65c663f522e253971b296a8a80cf70419d9baad3ac28e9e19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54033ef23bcc58d65c663f522e253971b296a8a80cf70419d9baad3ac28e9e19", kill_on_drop: false }` [INFO] [stdout] 54033ef23bcc58d65c663f522e253971b296a8a80cf70419d9baad3ac28e9e19