[INFO] fetching crate tract-onnx-opl 0.21.6... [INFO] checking tract-onnx-opl-0.21.6 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate tract-onnx-opl 0.21.6 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate tract-onnx-opl 0.21.6 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tract-onnx-opl 0.21.6 [INFO] finished tweaking crates.io crate tract-onnx-opl 0.21.6 [INFO] tweaked toml for crates.io crate tract-onnx-opl 0.21.6 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 145 packages to latest compatible versions [INFO] [stderr] Adding bit-set v0.5.3 (available: v0.8.0) [INFO] [stderr] Adding bit-vec v0.6.3 (available: v0.8.0) [INFO] [stderr] Adding derive-new v0.5.9 (available: v0.7.0) [INFO] [stderr] Adding env_logger v0.10.2 (available: v0.11.5) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding itertools v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding ndarray v0.15.6 (available: v0.16.1) [INFO] [stderr] Adding string-interner v0.15.0 (available: v0.17.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding tract-core v0.21.6 (available: v0.21.7) [INFO] [stderr] Adding tract-data v0.21.6 (available: v0.21.7) [INFO] [stderr] Adding tract-linalg v0.21.6 (available: v0.21.7) [INFO] [stderr] Adding tract-nnef v0.21.6 (available: v0.21.7) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1b852ed4fcc12902937f3a115e73d30f96e612ab2539fd185672c286fff1dd4 [INFO] running `Command { std: "docker" "start" "-a" "f1b852ed4fcc12902937f3a115e73d30f96e612ab2539fd185672c286fff1dd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1b852ed4fcc12902937f3a115e73d30f96e612ab2539fd185672c286fff1dd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1b852ed4fcc12902937f3a115e73d30f96e612ab2539fd185672c286fff1dd4", kill_on_drop: false }` [INFO] [stdout] f1b852ed4fcc12902937f3a115e73d30f96e612ab2539fd185672c286fff1dd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df7dc487c968f53e31788fe889c9bcea0fedaff40c0b917def85dc7f32bc460f [INFO] running `Command { std: "docker" "start" "-a" "df7dc487c968f53e31788fe889c9bcea0fedaff40c0b917def85dc7f32bc460f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling liquid-derive v0.26.8 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling rustfft v6.2.0 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking dyn-hash v0.2.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking transpose v0.2.3 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking primal-check v0.3.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling pest_meta v2.7.13 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Compiling pest_generator v2.7.13 [INFO] [stderr] Compiling kstring v2.0.2 [INFO] [stderr] Checking string-interner v0.15.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Compiling pest_derive v2.7.13 [INFO] [stderr] Checking xattr v1.3.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking tar v0.4.42 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking tract-data v0.21.6 [INFO] [stderr] Compiling liquid-core v0.26.9 [INFO] [stderr] Compiling liquid-lib v0.26.9 [INFO] [stderr] Compiling liquid v0.26.9 [INFO] [stderr] Compiling tract-linalg v0.21.6 [INFO] [stderr] Checking tract-core v0.21.6 [INFO] [stderr] Checking tract-nnef v0.21.6 [INFO] [stderr] Checking tract-onnx-opl v0.21.6 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tract_onnx_opl` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ml/tree.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ml/tree.rs:15:6 [INFO] [stderr] | [INFO] [stderr] 15 | ($cond: expr_2021, $($rest: expr_2021),* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ml/tree.rs:15:26 [INFO] [stderr] | [INFO] [stderr] 15 | ($cond: expr_2021, $($rest: expr_2021),* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/multinomial.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.gen::() * maximums[batch]; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ml/tree.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr_2021, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ml/tree.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr_2021),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | let keys = keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe fn new_t(keys: &Tensor) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:123:20 [INFO] [stdout] | [INFO] [stdout] 123 | let keys = self.keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | unsafe fn search_t(&self, needle: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let row = &self.nodes.as_slice_unchecked::()[node * 5..][..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn get_unchecked(&self, node: usize) -> TreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | let mut node_id = self.trees.as_slice_unchecked::()[tree] as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / unsafe fn get_leaf_unchecked(&self, tree: usize, input: &ArrayView1) -> LeafNode [INFO] [stdout] 133 | | where [INFO] [stdout] 134 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let node = self.get_unchecked(node_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let feature = *input.uget(b.feature_id as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_leaf_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let leaf = self.get_leaf_unchecked(tree, input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / unsafe fn eval_unchecked( [INFO] [stdout] 150 | | &self, [INFO] [stdout] 151 | | tree: usize, [INFO] [stdout] 152 | | input: &ArrayView1, [INFO] [stdout] ... | [INFO] [stdout] 156 | | A: AggregateFn, [INFO] [stdout] 157 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::to_array_view_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | for leaf in self [INFO] [stdout] | _____________________^ [INFO] [stdout] 161 | | .leaves [INFO] [stdout] 162 | | .to_array_view_unchecked::() [INFO] [stdout] | |_____________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 169 | let agg_fn = aggs.get_unchecked_mut(class_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | agg_fn.aggregate(weight, output.uget_mut(class_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::eval_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | self.data.eval_unchecked(t, input, output, aggs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | / unsafe fn eval_one_unchecked( [INFO] [stdout] 303 | | &self, [INFO] [stdout] 304 | | input: &ArrayView1, [INFO] [stdout] 305 | | output: &mut ArrayViewMut1, [INFO] [stdout] ... | [INFO] [stdout] 308 | | A: AggregateFn, [INFO] [stdout] 309 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:54 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | if let Ok(cmp) = ((row[4] & 0xFF) as u8).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 120 ~ match ((row[4] & 0xFF) as u8).try_into() { Ok(cmp) => { [INFO] [stdout] 121 | let feature_id = row[0]; [INFO] [stdout] ... [INFO] [stdout] 126 | TreeNode::Branch(BranchNode { cmp, feature_id, value, true_id, false_id, nan_is_true }) [INFO] [stdout] 127 ~ } _ => { [INFO] [stdout] 128 | TreeNode::Leaf(LeafNode { start_id: row[0] as usize, end_id: row[1] as usize }) [INFO] [stdout] 129 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 380 | } else if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ------------ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | } else if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 372 ~ match input.view().into_dimensionality::() { Ok(input) => { [INFO] [stdout] 373 | Ok(match self.aggregate_fn { [INFO] [stdout] ... [INFO] [stdout] 379 | .into_dyn()) [INFO] [stdout] 380 ~ } _ => { match input.view().into_dimensionality::() { Ok(input) => { [INFO] [stdout] 381 | Ok(match self.aggregate_fn { [INFO] [stdout] ... [INFO] [stdout] 387 | .into_dyn()) [INFO] [stdout] 388 ~ } _ => { [INFO] [stdout] 389 | bail!("Invalid input dimensionality for tree ensemble: {:?}", input.shape()); [INFO] [stdout] 390 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/multinomial.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | let input_shape = if let Some(s) = inputs[0].shape.as_concrete() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/multinomial.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 117 ~ let input_shape = match inputs[0].shape.as_concrete() { Some(s) => { [INFO] [stdout] 118 | s [INFO] [stdout] 119 ~ } _ => { [INFO] [stdout] 120 | bail!("Only constant input shape are supported in Multinomial") [INFO] [stdout] 121 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/non_max_suppression.rs:252:18 [INFO] [stdout] | [INFO] [stdout] 252 | let inv = if let Some(score_threshold) = score_threshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/non_max_suppression.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 252 ~ let inv = match score_threshold { Some(score_threshold) => { [INFO] [stdout] 253 | invocation( [INFO] [stdout] ... [INFO] [stdout] 257 | ) [INFO] [stdout] 258 ~ } _ => { [INFO] [stdout] 259 | invocation( [INFO] [stdout] ... [INFO] [stdout] 263 | ) [INFO] [stdout] 264 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tract_onnx_opl` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ml/tree.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ml/tree.rs:15:6 [INFO] [stderr] | [INFO] [stderr] 15 | ($cond: expr_2021, $($rest: expr_2021),* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ml/tree.rs:15:26 [INFO] [stderr] | [INFO] [stderr] 15 | ($cond: expr_2021, $($rest: expr_2021),* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/multinomial.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.gen::() * maximums[batch]; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ml/tree.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr_2021, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ml/tree.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr),* $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($cond: expr, $($rest: expr_2021),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | let keys = keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe fn new_t(keys: &Tensor) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:123:20 [INFO] [stdout] | [INFO] [stdout] 123 | let keys = self.keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | unsafe fn search_t(&self, needle: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let row = &self.nodes.as_slice_unchecked::()[node * 5..][..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn get_unchecked(&self, node: usize) -> TreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | let mut node_id = self.trees.as_slice_unchecked::()[tree] as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / unsafe fn get_leaf_unchecked(&self, tree: usize, input: &ArrayView1) -> LeafNode [INFO] [stdout] 133 | | where [INFO] [stdout] 134 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let node = self.get_unchecked(node_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let feature = *input.uget(b.feature_id as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_leaf_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let leaf = self.get_leaf_unchecked(tree, input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / unsafe fn eval_unchecked( [INFO] [stdout] 150 | | &self, [INFO] [stdout] 151 | | tree: usize, [INFO] [stdout] 152 | | input: &ArrayView1, [INFO] [stdout] ... | [INFO] [stdout] 156 | | A: AggregateFn, [INFO] [stdout] 157 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::to_array_view_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | for leaf in self [INFO] [stdout] | _____________________^ [INFO] [stdout] 161 | | .leaves [INFO] [stdout] 162 | | .to_array_view_unchecked::() [INFO] [stdout] | |_____________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 169 | let agg_fn = aggs.get_unchecked_mut(class_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | agg_fn.aggregate(weight, output.uget_mut(class_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::eval_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | self.data.eval_unchecked(t, input, output, aggs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | / unsafe fn eval_one_unchecked( [INFO] [stdout] 303 | | &self, [INFO] [stdout] 304 | | input: &ArrayView1, [INFO] [stdout] 305 | | output: &mut ArrayViewMut1, [INFO] [stdout] ... | [INFO] [stdout] 308 | | A: AggregateFn, [INFO] [stdout] 309 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:54 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | if let Ok(cmp) = ((row[4] & 0xFF) as u8).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 120 ~ match ((row[4] & 0xFF) as u8).try_into() { Ok(cmp) => { [INFO] [stdout] 121 | let feature_id = row[0]; [INFO] [stdout] ... [INFO] [stdout] 126 | TreeNode::Branch(BranchNode { cmp, feature_id, value, true_id, false_id, nan_is_true }) [INFO] [stdout] 127 ~ } _ => { [INFO] [stdout] 128 | TreeNode::Leaf(LeafNode { start_id: row[0] as usize, end_id: row[1] as usize }) [INFO] [stdout] 129 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 380 | } else if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ------------ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | } else if let Ok(input) = input.view().into_dimensionality::() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ml/tree.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 372 ~ match input.view().into_dimensionality::() { Ok(input) => { [INFO] [stdout] 373 | Ok(match self.aggregate_fn { [INFO] [stdout] ... [INFO] [stdout] 379 | .into_dyn()) [INFO] [stdout] 380 ~ } _ => { match input.view().into_dimensionality::() { Ok(input) => { [INFO] [stdout] 381 | Ok(match self.aggregate_fn { [INFO] [stdout] ... [INFO] [stdout] 387 | .into_dyn()) [INFO] [stdout] 388 ~ } _ => { [INFO] [stdout] 389 | bail!("Invalid input dimensionality for tree ensemble: {:?}", input.shape()); [INFO] [stdout] 390 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/multinomial.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | let input_shape = if let Some(s) = inputs[0].shape.as_concrete() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/multinomial.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 117 ~ let input_shape = match inputs[0].shape.as_concrete() { Some(s) => { [INFO] [stdout] 118 | s [INFO] [stdout] 119 ~ } _ => { [INFO] [stdout] 120 | bail!("Only constant input shape are supported in Multinomial") [INFO] [stdout] 121 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/non_max_suppression.rs:252:18 [INFO] [stdout] | [INFO] [stdout] 252 | let inv = if let Some(score_threshold) = score_threshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/non_max_suppression.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 252 ~ let inv = match score_threshold { Some(score_threshold) => { [INFO] [stdout] 253 | invocation( [INFO] [stdout] ... [INFO] [stdout] 257 | ) [INFO] [stdout] 258 ~ } _ => { [INFO] [stdout] 259 | invocation( [INFO] [stdout] ... [INFO] [stdout] 263 | ) [INFO] [stdout] 264 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.37s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking tract-onnx-opl v0.21.6 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/multinomial.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.gen::() * maximums[batch]; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.r#gen::() * maximums[batch]; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/multinomial.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.gen::() * maximums[batch]; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 69 | let mut rand = rng.r#gen::() * maximums[batch]; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | let keys = keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe fn new_t(keys: &Tensor) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:123:20 [INFO] [stdout] | [INFO] [stdout] 123 | let keys = self.keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | unsafe fn search_t(&self, needle: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let row = &self.nodes.as_slice_unchecked::()[node * 5..][..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn get_unchecked(&self, node: usize) -> TreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | let mut node_id = self.trees.as_slice_unchecked::()[tree] as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / unsafe fn get_leaf_unchecked(&self, tree: usize, input: &ArrayView1) -> LeafNode [INFO] [stdout] 133 | | where [INFO] [stdout] 134 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let node = self.get_unchecked(node_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let feature = *input.uget(b.feature_id as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | let keys = keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe fn new_t(keys: &Tensor) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_leaf_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let leaf = self.get_leaf_unchecked(tree, input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / unsafe fn eval_unchecked( [INFO] [stdout] 150 | | &self, [INFO] [stdout] 151 | | tree: usize, [INFO] [stdout] 152 | | input: &ArrayView1, [INFO] [stdout] ... | [INFO] [stdout] 156 | | A: AggregateFn, [INFO] [stdout] 157 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::to_array_view_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | for leaf in self [INFO] [stdout] | _____________________^ [INFO] [stdout] 161 | | .leaves [INFO] [stdout] 162 | | .to_array_view_unchecked::() [INFO] [stdout] | |_____________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 169 | let agg_fn = aggs.get_unchecked_mut(class_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | agg_fn.aggregate(weight, output.uget_mut(class_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/category_mapper.rs:123:20 [INFO] [stdout] | [INFO] [stdout] 123 | let keys = self.keys.as_slice_unchecked::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/category_mapper.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | unsafe fn search_t(&self, needle: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::eval_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | self.data.eval_unchecked(t, input, output, aggs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | / unsafe fn eval_one_unchecked( [INFO] [stdout] 303 | | &self, [INFO] [stdout] 304 | | input: &ArrayView1, [INFO] [stdout] 305 | | output: &mut ArrayViewMut1, [INFO] [stdout] ... | [INFO] [stdout] 308 | | A: AggregateFn, [INFO] [stdout] 309 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:54 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let row = &self.nodes.as_slice_unchecked::()[node * 5..][..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn get_unchecked(&self, node: usize) -> TreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::as_slice_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | let mut node_id = self.trees.as_slice_unchecked::()[tree] as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / unsafe fn get_leaf_unchecked(&self, tree: usize, input: &ArrayView1) -> LeafNode [INFO] [stdout] 133 | | where [INFO] [stdout] 134 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let node = self.get_unchecked(node_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let feature = *input.uget(b.feature_id as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::get_leaf_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let leaf = self.get_leaf_unchecked(tree, input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / unsafe fn eval_unchecked( [INFO] [stdout] 150 | | &self, [INFO] [stdout] 151 | | tree: usize, [INFO] [stdout] 152 | | input: &ArrayView1, [INFO] [stdout] ... | [INFO] [stdout] 156 | | A: AggregateFn, [INFO] [stdout] 157 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::prelude::Tensor::to_array_view_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | for leaf in self [INFO] [stdout] | _____________________^ [INFO] [stdout] 161 | | .leaves [INFO] [stdout] 162 | | .to_array_view_unchecked::() [INFO] [stdout] | |_____________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 169 | let agg_fn = aggs.get_unchecked_mut(class_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | agg_fn.aggregate(weight, output.uget_mut(class_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ml::tree::TreeEnsembleData::eval_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | self.data.eval_unchecked(t, input, output, aggs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/ml/tree.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | / unsafe fn eval_one_unchecked( [INFO] [stdout] 303 | | &self, [INFO] [stdout] 304 | | input: &ArrayView1, [INFO] [stdout] 305 | | output: &mut ArrayViewMut1, [INFO] [stdout] ... | [INFO] [stdout] 308 | | A: AggregateFn, [INFO] [stdout] 309 | | T: AsPrimitive, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_nnef::ndarray::impl_methods::>::uget_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/ml/tree.rs:315:54 [INFO] [stdout] | [INFO] [stdout] 315 | aggs.get_unchecked_mut(i).post_aggregate(output.uget_mut(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tract-onnx-opl` (lib) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tract-onnx-opl` (lib test) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "df7dc487c968f53e31788fe889c9bcea0fedaff40c0b917def85dc7f32bc460f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df7dc487c968f53e31788fe889c9bcea0fedaff40c0b917def85dc7f32bc460f", kill_on_drop: false }` [INFO] [stdout] df7dc487c968f53e31788fe889c9bcea0fedaff40c0b917def85dc7f32bc460f