[INFO] cloning repository https://github.com/wagnerf42/grouille [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wagnerf42/grouille" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwagnerf42%2Fgrouille", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwagnerf42%2Fgrouille'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3650dfe57192a1a72c39b2d5d0e11c224882dfdc [INFO] checking wagnerf42/grouille against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwagnerf42%2Fgrouille" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wagnerf42/grouille [INFO] finished tweaking git repo https://github.com/wagnerf42/grouille [INFO] tweaked toml for git repo https://github.com/wagnerf42/grouille written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wagnerf42/grouille on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wagnerf42/grouille 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f97f018369006d60622172fe11687421f7259b6f6f2bdae5e131b2fc4b7cefb7 [INFO] running `Command { std: "docker" "start" "-a" "f97f018369006d60622172fe11687421f7259b6f6f2bdae5e131b2fc4b7cefb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f97f018369006d60622172fe11687421f7259b6f6f2bdae5e131b2fc4b7cefb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f97f018369006d60622172fe11687421f7259b6f6f2bdae5e131b2fc4b7cefb7", kill_on_drop: false }` [INFO] [stdout] f97f018369006d60622172fe11687421f7259b6f6f2bdae5e131b2fc4b7cefb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 167dc8923cc047c549199674fbed12e74aded30e02f555fccdb319421aa5bac3 [INFO] running `Command { std: "docker" "start" "-a" "167dc8923cc047c549199674fbed12e74aded30e02f555fccdb319421aa5bac3", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.41 [INFO] [stderr] Compiling num-traits v0.2.4 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking byteorder v1.2.3 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Checking cfg-if v0.1.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Compiling serde v1.0.66 [INFO] [stderr] Compiling num-integer v0.1.38 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking lazy_static v1.0.1 [INFO] [stderr] Checking rand_core v0.2.0 [INFO] [stderr] Checking cast v0.2.2 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking log v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.6 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Compiling pest v1.0.6 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking itoa v0.4.1 [INFO] [stderr] Checking rustc-demangle v0.1.8 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking term v0.5.1 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking atty v0.2.10 [INFO] [stderr] Checking rand v0.5.0 [INFO] [stderr] Compiling quote v0.6.3 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking streaming-iterator v0.1.4 [INFO] [stderr] Checking thread-scoped v1.0.2 [INFO] [stderr] Compiling syn v0.14.2 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Checking clap v2.31.2 [INFO] [stderr] Checking criterion-plot v0.2.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking criterion-stats v0.2.3 [INFO] [stderr] Checking grouille v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking itertools-num v0.1.1 [INFO] [stdout] warning: unused import: `empty` [INFO] [stdout] --> src/intersections.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{empty, once, repeat}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/overlap.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | unimplemented!("TODO: we cannot call remove_overlaps here"); [INFO] [stdout] | ----------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 52 | // because these segments are ORIENTED [INFO] [stdout] 53 | / remaining_paths.into_iter().chain( [INFO] [stdout] 54 | | remove_overlaps(elementary_segments) [INFO] [stdout] 55 | | .into_iter() [INFO] [stdout] 56 | | .map(|s| ElementaryPath::Segment(s)), [INFO] [stdout] 57 | | ) [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Checking chrono v0.4.2 [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/slice.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | unimplemented!("we need to go on with heaven and hell"); [INFO] [stdout] | ------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 28 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pest_derive v1.0.7 [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/hashes.rs:63:38 [INFO] [stdout] | [INFO] [stdout] 63 | let exp_u64 = u64::from(unsafe { mem::transmute::(exp) }); [INFO] [stdout] | --------------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i16::cast_unsigned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/overlap.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 14 - for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] 14 + for (i, p) in [1, -1].iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 14 - for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] 14 + for (i, p) in IntoIterator::into_iter([1, -1]).zip(segment.ordered_points().iter()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/intersections.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | mem::replace(&mut intersections[i1], Some(Vec::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = mem::replace(&mut intersections[i1], Some(Vec::new())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/intersections.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | mem::replace(&mut intersections[i2], Some(Vec::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = mem::replace(&mut intersections[i2], Some(Vec::new())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Checking simplelog v0.5.2 [INFO] [stderr] Checking backtrace v0.3.8 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.66 [INFO] [stderr] Checking serde_json v1.0.20 [INFO] [stderr] Checking handlebars v0.31.0 [INFO] [stderr] Checking criterion v0.2.3 [INFO] [stdout] error[E0271]: type mismatch resolving `<&Vec as IntoIterator>::Item == Segment` [INFO] [stdout] --> examples/classify.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | let remaining_segments = remove_overlaps(&slice); [INFO] [stdout] | --------------- ^^^^^^ expected `Segment`, found `&Segment` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `remove_overlaps` [INFO] [stdout] --> /opt/rustwide/workdir/src/overlap.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn remove_overlaps>(segments: S) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `remove_overlaps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `empty` [INFO] [stdout] --> src/intersections.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{empty, once, repeat}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `grouille` (example "classify") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0271]: type mismatch resolving `<&Vec as IntoIterator>::Item == Segment` [INFO] [stdout] --> benches/classifier.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | let remaining_segments = remove_overlaps(&slice); [INFO] [stdout] | --------------- ^^^^^^ expected `Segment`, found `&Segment` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `remove_overlaps` [INFO] [stdout] --> /opt/rustwide/workdir/src/overlap.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn remove_overlaps>(segments: S) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `remove_overlaps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `<&Vec as IntoIterator>::Item == Segment` [INFO] [stdout] --> examples/overlap.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 35 | let remaining_segments = remove_overlaps(&segments); [INFO] [stdout] | --------------- ^^^^^^^^^ expected `Segment`, found `&Segment` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `remove_overlaps` [INFO] [stdout] --> /opt/rustwide/workdir/src/overlap.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn remove_overlaps>(segments: S) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `remove_overlaps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> examples/clique.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Quadrant` [INFO] [stdout] --> examples/offsetter.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | use grouille::{HoledPolygon, Point, Quadrant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grouille` (example "overlap") due to 1 previous error [INFO] [stderr] error: could not compile `grouille` (bench "classifier") due to 1 previous error [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> benches/stl_cut.rs:10:60 [INFO] [stdout] | [INFO] [stdout] 10 | c.bench_function("cut cordoba", move |b| b.iter(|| stl.cut(0.1))); [INFO] [stdout] | ^^^----- argument #2 of type `&mut PointsHash` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/stl/mod.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn cut(&mut self, thickness: f64, points_hasher: &mut PointsHash) -> Vec> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 10 | c.bench_function("cut cordoba", move |b| b.iter(|| stl.cut(0.1, /* &mut PointsHash */))); [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grouille` (bench "stl_cut") due to 1 previous error [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/overlap.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | unimplemented!("TODO: we cannot call remove_overlaps here"); [INFO] [stdout] | ----------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 52 | // because these segments are ORIENTED [INFO] [stdout] 53 | / remaining_paths.into_iter().chain( [INFO] [stdout] 54 | | remove_overlaps(elementary_segments) [INFO] [stdout] 55 | | .into_iter() [INFO] [stdout] 56 | | .map(|s| ElementaryPath::Segment(s)), [INFO] [stdout] 57 | | ) [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/slice.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | unimplemented!("we need to go on with heaven and hell"); [INFO] [stdout] | ------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 28 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/hashes.rs:63:38 [INFO] [stdout] | [INFO] [stdout] 63 | let exp_u64 = u64::from(unsafe { mem::transmute::(exp) }); [INFO] [stdout] | --------------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i16::cast_unsigned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/overlap.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 14 - for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] 14 + for (i, p) in [1, -1].iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 14 - for (i, p) in [1, -1].into_iter().zip(segment.ordered_points().iter()) { [INFO] [stdout] 14 + for (i, p) in IntoIterator::into_iter([1, -1]).zip(segment.ordered_points().iter()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/intersections.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | mem::replace(&mut intersections[i1], Some(Vec::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = mem::replace(&mut intersections[i1], Some(Vec::new())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/intersections.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | mem::replace(&mut intersections[i2], Some(Vec::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = mem::replace(&mut intersections[i2], Some(Vec::new())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "167dc8923cc047c549199674fbed12e74aded30e02f555fccdb319421aa5bac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "167dc8923cc047c549199674fbed12e74aded30e02f555fccdb319421aa5bac3", kill_on_drop: false }` [INFO] [stdout] 167dc8923cc047c549199674fbed12e74aded30e02f555fccdb319421aa5bac3