[INFO] fetching crate mp4-merge 0.1.5... [INFO] checking mp4-merge-0.1.5 against try#a326ccb4ce868265c4f69a0270f3033164acc4f9 for pr-111063-1 [INFO] extracting crate mp4-merge 0.1.5 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate mp4-merge 0.1.5 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 crates.io crate mp4-merge 0.1.5 [INFO] finished tweaking crates.io crate mp4-merge 0.1.5 [INFO] tweaked toml for crates.io crate mp4-merge 0.1.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate mp4-merge 0.1.5 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 743b515aa38a98ee1b4160eb177cc46ef149360539dc03e47edd8293582bb559 [INFO] running `Command { std: "docker" "start" "-a" "743b515aa38a98ee1b4160eb177cc46ef149360539dc03e47edd8293582bb559", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "743b515aa38a98ee1b4160eb177cc46ef149360539dc03e47edd8293582bb559", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "743b515aa38a98ee1b4160eb177cc46ef149360539dc03e47edd8293582bb559", kill_on_drop: false }` [INFO] [stdout] 743b515aa38a98ee1b4160eb177cc46ef149360539dc03e47edd8293582bb559 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] f4071e5415ba9bfa5483d03e5e00235a85635543995d178b10548a3db4266b23 [INFO] running `Command { std: "docker" "start" "-a" "f4071e5415ba9bfa5483d03e5e00235a85635543995d178b10548a3db4266b23", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking mp4-merge v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 20 | let out_pos = output_file.stream_position()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 45 | for (fpath, mo, ms) in &desc.mdat_position { [INFO] [stdout] | ------------------------------------------ inside of this loop [INFO] [stdout] ... [INFO] [stdout] 49 | std::io::copy(&mut f.take(*ms), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 157 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here [INFO] [stdout] 22 | new_size = rewrite_from_desc(d, output_file, desc, tl_track, size - header_size as u64)?; [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 45 | for (fpath, mo, ms) in &desc.mdat_position { [INFO] [stdout] | ------------------------------------------ inside of this loop [INFO] [stdout] ... [INFO] [stdout] 49 | std::io::copy(&mut f.take(*ms), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 53 | patch_bytes(output_file, pos, &new_size.to_be_bytes())?; [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 157 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:69:41 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here [INFO] [stdout] ... [INFO] [stdout] 69 | if v == 1 { patch_bytes(output_file, pos+8+8+4, &desc.moov_mvhd_duration.to_be_bytes())?; } [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 20 | let out_pos = output_file.stream_position()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 45 | for (fpath, mo, ms) in &desc.mdat_position { [INFO] [stdout] | ------------------------------------------ inside of this loop [INFO] [stdout] ... [INFO] [stdout] 49 | std::io::copy(&mut f.take(*ms), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 157 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here [INFO] [stdout] 22 | new_size = rewrite_from_desc(d, output_file, desc, tl_track, size - header_size as u64)?; [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 21 | std::io::copy(&mut d.take(header_size as u64), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 45 | for (fpath, mo, ms) in &desc.mdat_position { [INFO] [stdout] | ------------------------------------------ inside of this loop [INFO] [stdout] ... [INFO] [stdout] 49 | std::io::copy(&mut f.take(*ms), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 53 | patch_bytes(output_file, pos, &new_size.to_be_bytes())?; [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 157 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `output_file` [INFO] [stdout] --> src/writer.rs:69:41 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rewrite_from_desc(d: &mut R, output_file: &mut W, desc: &mut Desc, track: usize, max_read: u64) -... [INFO] [stdout] | ----------- move occurs because `output_file` has type `&mut W`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | while let Ok((typ, offs, size, header_size)) = read_box(d) { [INFO] [stdout] | ---------------------------------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 65 | std::io::copy(&mut d.take(size), output_file)?; [INFO] [stdout] | ----------- value moved here [INFO] [stdout] ... [INFO] [stdout] 69 | if v == 1 { patch_bytes(output_file, pos+8+8+4, &desc.moov_mvhd_duration.to_be_bytes())?; } [INFO] [stdout] | ^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mp4-merge` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mp4-merge` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "f4071e5415ba9bfa5483d03e5e00235a85635543995d178b10548a3db4266b23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4071e5415ba9bfa5483d03e5e00235a85635543995d178b10548a3db4266b23", kill_on_drop: false }` [INFO] [stdout] f4071e5415ba9bfa5483d03e5e00235a85635543995d178b10548a3db4266b23