- ) -> Option
{
[INFO] [stdout] | +++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> src/tests.rs:36:48
[INFO] [stdout] |
[INFO] [stdout] 36 | fn get_cut_point(cut_axis: &Axis, points: &mut Iterator- ) -> Option {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 36 | fn get_cut_point(cut_axis: &Axis, points: &mut dyn Iterator
- ) -> Option {
[INFO] [stdout] | +++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:261:12
[INFO] [stdout] |
[INFO] [stdout] 100 | axis_it: IA,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 101 | shapes_it: II,
[INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 102 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 103 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 104 | mut get_cp: CPF,
[INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 105 | mut cut_bv: CBF,
[INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 115 | let axis: Vec<_> = axis_it.into_iter().collect();
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 116 | let shapes: Vec<_> = shapes_it.into_iter().collect();
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 117 | let root_shapes: Vec<_> = shapes
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 138 | let mut ops_stack = vec![Op { node_shapes: root_shapes, instruction: Instruction::MakeNode { depth: 0, }, }];
[INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 139 | let mut ret_stack: Vec> = vec![];
[INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 259 | let root = ret_stack.pop().unwrap_or_else(|| unreachable!());
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 260 | assert!(ret_stack.is_empty());
[INFO] [stdout] 261 | Ok(KdvTree { root, axis, shapes, })
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:121:34
[INFO] [stdout] |
[INFO] [stdout] 121 | bounding_volume: get_bv.bounding_volume(s),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:313:26
[INFO] [stdout] |
[INFO] [stdout] 295 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 296 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 297 | cut_bv: CBF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 298 | dist_cp: DPF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 299 | dist_bv: DVF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 313 | nodes_queue: BinaryHeap::from_iter(iter::once(NearestNode {
[INFO] [stdout] | __________________________^
[INFO] [stdout] 314 | | dist: None,
[INFO] [stdout] 315 | | node: &self.root,
[INFO] [stdout] 316 | | needle_bv: get_bv.bounding_volume(shape),
[INFO] [stdout] 317 | | })),
[INFO] [stdout] | |_______________^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:318:25
[INFO] [stdout] |
[INFO] [stdout] 295 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 296 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 297 | cut_bv: CBF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 298 | dist_cp: DPF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 299 | dist_bv: DVF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 318 | neighbours: BinaryHeap::new(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:371:8
[INFO] [stdout] |
[INFO] [stdout] 363 | fn shape_owner(shape: &S, fragment: B, cut_axis: &A, cut_point: &P, cmp_p: &CMF, cut_bv: &mut CBF) ->
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 369 | let min_corner = fragment.min_corner();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 370 | let max_corner = fragment.max_corner();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 371 | Ok(match (cmp_p.cmp_points(&cut_axis, &min_corner, cut_point), cmp_p.cmp_points(&cut_axis, &max_corner, cut_point)) {
[INFO] [stdout] | ________^
[INFO] [stdout] 372 | | (Ordering::Less, Ordering::Less) | (Ordering::Less, Ordering::Equal) =>
[INFO] [stdout] 373 | | ShapeOwner::Left(fragment),
[INFO] [stdout] 374 | | (Ordering::Greater, Ordering::Greater) | (Ordering::Equal, Ordering::Greater) =>
[INFO] [stdout] ... |
[INFO] [stdout] 380 | | }
[INFO] [stdout] 381 | | })
[INFO] [stdout] | |_____^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout] --> src/lib.rs:511:71
[INFO] [stdout] |
[INFO] [stdout] 511 | ... shape_fragment: shape_fragment.clone(),
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: the type `ShapeFragment` does not implement `Clone`, so calling `clone` on `&ShapeFragment` copies the reference, which does not do anything and can be removed
[INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] help: remove this redundant call
[INFO] [stdout] |
[INFO] [stdout] 511 - shape_fragment: shape_fragment.clone(),
[INFO] [stdout] 511 + shape_fragment: shape_fragment,
[INFO] [stdout] |
[INFO] [stdout] help: if you meant to clone `ShapeFragment`, implement `Clone` for it
[INFO] [stdout] |
[INFO] [stdout] 334 + #[derive(Clone)]
[INFO] [stdout] 335 | struct ShapeFragment {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:614:43
[INFO] [stdout] |
[INFO] [stdout] 614 | ... dist: dist_bv.bv_to_bv_distance(&fragment.bounding_volume, needle_bv),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `kdvtree` (lib) due to 7 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:261:12
[INFO] [stdout] |
[INFO] [stdout] 100 | axis_it: IA,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 101 | shapes_it: II,
[INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 102 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 103 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 104 | mut get_cp: CPF,
[INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 105 | mut cut_bv: CBF,
[INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 115 | let axis: Vec<_> = axis_it.into_iter().collect();
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 116 | let shapes: Vec<_> = shapes_it.into_iter().collect();
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 117 | let root_shapes: Vec<_> = shapes
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 138 | let mut ops_stack = vec![Op { node_shapes: root_shapes, instruction: Instruction::MakeNode { depth: 0, }, }];
[INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 139 | let mut ret_stack: Vec> = vec![];
[INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 259 | let root = ret_stack.pop().unwrap_or_else(|| unreachable!());
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 260 | assert!(ret_stack.is_empty());
[INFO] [stdout] 261 | Ok(KdvTree { root, axis, shapes, })
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:121:34
[INFO] [stdout] |
[INFO] [stdout] 121 | bounding_volume: get_bv.bounding_volume(s),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:313:26
[INFO] [stdout] |
[INFO] [stdout] 295 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 296 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 297 | cut_bv: CBF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 298 | dist_cp: DPF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 299 | dist_bv: DVF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 313 | nodes_queue: BinaryHeap::from_iter(iter::once(NearestNode {
[INFO] [stdout] | __________________________^
[INFO] [stdout] 314 | | dist: None,
[INFO] [stdout] 315 | | node: &self.root,
[INFO] [stdout] 316 | | needle_bv: get_bv.bounding_volume(shape),
[INFO] [stdout] 317 | | })),
[INFO] [stdout] | |_______________^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:318:25
[INFO] [stdout] |
[INFO] [stdout] 295 | cmp_p: CMF,
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 296 | get_bv: BVF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 297 | cut_bv: CBF,
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 298 | dist_cp: DPF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 299 | dist_bv: DVF,
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 318 | neighbours: BinaryHeap::new(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:371:8
[INFO] [stdout] |
[INFO] [stdout] 363 | fn shape_owner(shape: &S, fragment: B, cut_axis: &A, cut_point: &P, cmp_p: &CMF, cut_bv: &mut CBF) ->
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 369 | let min_corner = fragment.min_corner();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 370 | let max_corner = fragment.max_corner();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 371 | Ok(match (cmp_p.cmp_points(&cut_axis, &min_corner, cut_point), cmp_p.cmp_points(&cut_axis, &max_corner, cut_point)) {
[INFO] [stdout] | ________^
[INFO] [stdout] 372 | | (Ordering::Less, Ordering::Less) | (Ordering::Less, Ordering::Equal) =>
[INFO] [stdout] 373 | | ShapeOwner::Left(fragment),
[INFO] [stdout] 374 | | (Ordering::Greater, Ordering::Greater) | (Ordering::Equal, Ordering::Greater) =>
[INFO] [stdout] ... |
[INFO] [stdout] 380 | | }
[INFO] [stdout] 381 | | })
[INFO] [stdout] | |_____^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout] --> src/lib.rs:511:71
[INFO] [stdout] |
[INFO] [stdout] 511 | ... shape_fragment: shape_fragment.clone(),
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: the type `ShapeFragment` does not implement `Clone`, so calling `clone` on `&ShapeFragment` copies the reference, which does not do anything and can be removed
[INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] help: remove this redundant call
[INFO] [stdout] |
[INFO] [stdout] 511 - shape_fragment: shape_fragment.clone(),
[INFO] [stdout] 511 + shape_fragment: shape_fragment,
[INFO] [stdout] |
[INFO] [stdout] help: if you meant to clone `ShapeFragment`, implement `Clone` for it
[INFO] [stdout] |
[INFO] [stdout] 334 + #[derive(Clone)]
[INFO] [stdout] 335 | struct ShapeFragment {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/lib.rs:614:43
[INFO] [stdout] |
[INFO] [stdout] 614 | ... dist: dist_bv.bv_to_bv_distance(&fragment.bounding_volume, needle_bv),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `kdvtree` (lib test) due to 7 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6f4c53a33dd79bc18d89696f5db15b88576ebce893bba88c3855ea61ec21a2cc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6f4c53a33dd79bc18d89696f5db15b88576ebce893bba88c3855ea61ec21a2cc", kill_on_drop: false }`
[INFO] [stdout] 6f4c53a33dd79bc18d89696f5db15b88576ebce893bba88c3855ea61ec21a2cc