[INFO] cloning repository https://github.com/jitterist/advent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jitterist/advent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjitterist%2Fadvent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjitterist%2Fadvent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f22906df44a3b8605aea40ef441c87b67de5b78 [INFO] testing jitterist/advent against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjitterist%2Fadvent" "/workspace/builds/worker-88/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-88/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jitterist/advent on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jitterist/advent [INFO] finished tweaking git repo https://github.com/jitterist/advent [INFO] tweaked toml for git repo https://github.com/jitterist/advent written to /workspace/builds/worker-88/source/Cargo.toml [INFO] crate git repo https://github.com/jitterist/advent already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stopwatch v0.0.7 [INFO] [stderr] Downloaded regex v1.1.2 [INFO] [stderr] Downloaded ref_eq v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d840f45b98f70995571d8c1c55da5fd99ee5938a136c62efc3024e27d225d68 [INFO] running `Command { std: "docker" "start" "-a" "7d840f45b98f70995571d8c1c55da5fd99ee5938a136c62efc3024e27d225d68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d840f45b98f70995571d8c1c55da5fd99ee5938a136c62efc3024e27d225d68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d840f45b98f70995571d8c1c55da5fd99ee5938a136c62efc3024e27d225d68", kill_on_drop: false }` [INFO] [stdout] 7d840f45b98f70995571d8c1c55da5fd99ee5938a136c62efc3024e27d225d68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93c10e4f91fbb459d6ee394d1f5bc06e2e3703ec9ced381bc72c6789633391dc [INFO] running `Command { std: "docker" "start" "-a" "93c10e4f91fbb459d6ee394d1f5bc06e2e3703ec9ced381bc72c6789633391dc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling cfg-if v0.1.7 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling regex v1.1.2 [INFO] [stderr] Compiling either v1.5.1 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling ref_eq v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.6.5 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling num_cpus v1.10.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling num-bigint v0.1.44 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling stopwatch v0.0.7 [INFO] [stderr] Compiling advent v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day_5/utils.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 27 | fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 27 - fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] 27 + fn react_polymer(polymer: &str, reaction_fn: &dyn Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 37 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 38 | surrounding_points.push(Point { x: last_point.x, y: last_point.y - 1 }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 49 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 50 | surrounding_points.push(Point { x: last_point.x, y: last_point.y + 1 }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 31 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 32 | surrounding_points.push(Point { x: last_point.x - 1, y: last_point.y }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 43 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 44 | surrounding_points.push(Point { x: last_point.x + 1, y: last_point.y }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `serial_number` [INFO] [stdout] --> src/day_11/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | serial_number: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.28s [INFO] running `Command { std: "docker" "inspect" "93c10e4f91fbb459d6ee394d1f5bc06e2e3703ec9ced381bc72c6789633391dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93c10e4f91fbb459d6ee394d1f5bc06e2e3703ec9ced381bc72c6789633391dc", kill_on_drop: false }` [INFO] [stdout] 93c10e4f91fbb459d6ee394d1f5bc06e2e3703ec9ced381bc72c6789633391dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8deae0160ecfe7e66e5c0a8c3d8318ad0cb1d985515b391dbacebe8c3b275b3 [INFO] running `Command { std: "docker" "start" "-a" "d8deae0160ecfe7e66e5c0a8c3d8318ad0cb1d985515b391dbacebe8c3b275b3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling advent v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day_5/utils.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 27 | fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 27 - fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] 27 + fn react_polymer(polymer: &str, reaction_fn: &dyn Fn(&str) -> Polymer) -> Polymer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 37 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 38 | surrounding_points.push(Point { x: last_point.x, y: last_point.y - 1 }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 49 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 50 | surrounding_points.push(Point { x: last_point.x, y: last_point.y + 1 }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 31 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 32 | surrounding_points.push(Point { x: last_point.x - 1, y: last_point.y }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day_6/types.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 43 | let last_point = surrounding_points.last().unwrap(); [INFO] [stdout] | ------------------------- immutable borrow occurs here [INFO] [stdout] 44 | surrounding_points.push(Point { x: last_point.x + 1, y: last_point.y }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `serial_number` [INFO] [stdout] --> src/day_11/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | serial_number: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.46s [INFO] running `Command { std: "docker" "inspect" "d8deae0160ecfe7e66e5c0a8c3d8318ad0cb1d985515b391dbacebe8c3b275b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8deae0160ecfe7e66e5c0a8c3d8318ad0cb1d985515b391dbacebe8c3b275b3", kill_on_drop: false }` [INFO] [stdout] d8deae0160ecfe7e66e5c0a8c3d8318ad0cb1d985515b391dbacebe8c3b275b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e56ae86ec56bf881602b4a3c8da4fcf4fbbdc002fcf7b55430c91d23f278fd15 [INFO] running `Command { std: "docker" "start" "-a" "e56ae86ec56bf881602b4a3c8da4fcf4fbbdc002fcf7b55430c91d23f278fd15", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/day_5/utils.rs:27:47 [INFO] [stderr] | [INFO] [stderr] 27 | fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 27 - fn react_polymer(polymer: &str, reaction_fn: &Fn(&str) -> Polymer) -> Polymer { [INFO] [stderr] 27 + fn react_polymer(polymer: &str, reaction_fn: &dyn Fn(&str) -> Polymer) -> Polymer { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/day_6/types.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 37 | let last_point = surrounding_points.last().unwrap(); [INFO] [stderr] | ------------------------- immutable borrow occurs here [INFO] [stderr] 38 | surrounding_points.push(Point { x: last_point.x, y: last_point.y - 1 }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/day_6/types.rs:50:13 [INFO] [stderr] | [INFO] [stderr] 49 | let last_point = surrounding_points.last().unwrap(); [INFO] [stderr] | ------------------------- immutable borrow occurs here [INFO] [stderr] 50 | surrounding_points.push(Point { x: last_point.x, y: last_point.y + 1 }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/day_6/types.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 31 | let last_point = surrounding_points.last().unwrap(); [INFO] [stderr] | ------------------------- immutable borrow occurs here [INFO] [stderr] 32 | surrounding_points.push(Point { x: last_point.x - 1, y: last_point.y }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `surrounding_points` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/day_6/types.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 43 | let last_point = surrounding_points.last().unwrap(); [INFO] [stderr] | ------------------------- immutable borrow occurs here [INFO] [stderr] 44 | surrounding_points.push(Point { x: last_point.x + 1, y: last_point.y }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: field is never read: `serial_number` [INFO] [stderr] --> src/day_11/types.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | serial_number: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `advent` (bin "advent" test) generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/advent-383b9c2e140a73fc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e56ae86ec56bf881602b4a3c8da4fcf4fbbdc002fcf7b55430c91d23f278fd15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e56ae86ec56bf881602b4a3c8da4fcf4fbbdc002fcf7b55430c91d23f278fd15", kill_on_drop: false }` [INFO] [stdout] e56ae86ec56bf881602b4a3c8da4fcf4fbbdc002fcf7b55430c91d23f278fd15