[INFO] cloning repository https://github.com/nsmryan/parcel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nsmryan/parcel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsmryan%2Fparcel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsmryan%2Fparcel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b30c58887cdd8b983a0d7ba3510e2d86d155d094 [INFO] testing nsmryan/parcel against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsmryan%2Fparcel" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nsmryan/parcel [INFO] finished tweaking git repo https://github.com/nsmryan/parcel [INFO] tweaked toml for git repo https://github.com/nsmryan/parcel written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nsmryan/parcel on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nsmryan/parcel 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termion v1.5.2 [INFO] [stderr] Downloaded env_logger v0.5.13 [INFO] [stderr] Downloaded thread-id v3.3.0 [INFO] [stderr] Downloaded quickcheck v0.6.2 [INFO] [stderr] Downloaded aho-corasick v0.7.3 [INFO] [stderr] Downloaded humantime v1.2.0 [INFO] [stderr] Downloaded flame v0.2.2 [INFO] [stderr] Downloaded regex-syntax v0.6.6 [INFO] [stderr] Downloaded regex v1.1.6 [INFO] [stderr] Downloaded libc v0.2.54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c626c9f493eff7cd7a98a11c87e72fb20b1ee053eaaaa79653d31dd476906487 [INFO] running `Command { std: "docker" "start" "-a" "c626c9f493eff7cd7a98a11c87e72fb20b1ee053eaaaa79653d31dd476906487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c626c9f493eff7cd7a98a11c87e72fb20b1ee053eaaaa79653d31dd476906487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c626c9f493eff7cd7a98a11c87e72fb20b1ee053eaaaa79653d31dd476906487", kill_on_drop: false }` [INFO] [stdout] c626c9f493eff7cd7a98a11c87e72fb20b1ee053eaaaa79653d31dd476906487 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 607118b56f0f465eafd9ac34cc02a1db49daf231dd7dce5e5a147642ab29ecc4 [INFO] running `Command { std: "docker" "start" "-a" "607118b56f0f465eafd9ac34cc02a1db49daf231dd7dce5e5a147642ab29ecc4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.54 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling hew v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:174:52 [INFO] [stdout] | [INFO] [stdout] 174 | fn buffered(mut input: R, mut output: W, f: &Fn(&mut [u8], &mut Vec)) [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 174 | fn buffered(mut input: R, mut output: W, f: &dyn Fn(&mut [u8], &mut Vec)) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_index` [INFO] [stdout] --> src/main.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut write_index: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_index` [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:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | let mut write_index: usize = 0; [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: unused variable: `write_index` [INFO] [stdout] --> src/main.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let mut write_index: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sep` [INFO] [stdout] --> src/main.rs:312:18 [INFO] [stdout] | [INFO] [stdout] 312 | sep: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | let mut write_index: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | let mut input_file = OpenOptions::new() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | let mut output_file = OpenOptions::new() [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WRITE_BUFFER_SIZE_BYTES` is never used [INFO] [stdout] --> src/main.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const WRITE_BUFFER_SIZE_BYTES: usize = 1024*16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_to_write_buffer` is never used [INFO] [stdout] --> src/main.rs:280:4 [INFO] [stdout] | [INFO] [stdout] 280 | fn push_to_write_buffer(output: &mut W, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.62s [INFO] running `Command { std: "docker" "inspect" "607118b56f0f465eafd9ac34cc02a1db49daf231dd7dce5e5a147642ab29ecc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "607118b56f0f465eafd9ac34cc02a1db49daf231dd7dce5e5a147642ab29ecc4", kill_on_drop: false }` [INFO] [stdout] 607118b56f0f465eafd9ac34cc02a1db49daf231dd7dce5e5a147642ab29ecc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 505b47e50faa2010fbc8ea390a150ff617f0d52c4e32153d4397a17c0e37bfcf [INFO] running `Command { std: "docker" "start" "-a" "505b47e50faa2010fbc8ea390a150ff617f0d52c4e32153d4397a17c0e37bfcf", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling cfg-if v0.1.7 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.6 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling quickcheck v0.6.2 [INFO] [stderr] Compiling hew v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:174:52 [INFO] [stdout] | [INFO] [stdout] 174 | fn buffered(mut input: R, mut output: W, f: &Fn(&mut [u8], &mut Vec)) [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 174 | fn buffered(mut input: R, mut output: W, f: &dyn Fn(&mut [u8], &mut Vec)) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 248 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:267:12 [INFO] [stdout] | [INFO] [stdout] 267 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | encode(input.as_bytes(), &mut output); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn encode(input: &mut R, output: &mut W) { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:361:10 [INFO] [stdout] | [INFO] [stdout] 361 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 361 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:378:10 [INFO] [stdout] | [INFO] [stdout] 378 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 378 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 385 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 385 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:401:10 [INFO] [stdout] | [INFO] [stdout] 401 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 401 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:408:10 [INFO] [stdout] | [INFO] [stdout] 408 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 408 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:415:10 [INFO] [stdout] | [INFO] [stdout] 415 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 415 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | decode(Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `Cursor>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn decode(input: &mut R, [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 422 | decode(&mut Cursor::new(input), &mut output, line_width, word_width, case, prefix, &sep); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_index` [INFO] [stdout] --> src/main.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut write_index: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_index` [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:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | let mut write_index: usize = 0; [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: unused variable: `write_index` [INFO] [stdout] --> src/main.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let mut write_index: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sep` [INFO] [stdout] --> src/main.rs:312:18 [INFO] [stdout] | [INFO] [stdout] 312 | sep: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | let mut write_index: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | let mut input_file = OpenOptions::new() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | let mut output_file = OpenOptions::new() [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hew` (bin "hew" test) due to 13 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "505b47e50faa2010fbc8ea390a150ff617f0d52c4e32153d4397a17c0e37bfcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "505b47e50faa2010fbc8ea390a150ff617f0d52c4e32153d4397a17c0e37bfcf", kill_on_drop: false }` [INFO] [stdout] 505b47e50faa2010fbc8ea390a150ff617f0d52c4e32153d4397a17c0e37bfcf