Skip to content

Typed and type-erased Tensor variants, impl Index/Mut for Tensor #102

Typed and type-erased Tensor variants, impl Index/Mut for Tensor

Typed and type-erased Tensor variants, impl Index/Mut for Tensor #102

Triggered via pull request August 27, 2024 06:30
Status Failure
Total duration 1m 32s
Artifacts

develop.yaml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

5 errors
use of `offset` with a `usize` casted to an `isize`: src/lib.rs#L562
error: use of `offset` with a `usize` casted to an `isize` --> src/tensor.rs:562:20 | 562 | unsafe { &*base_ptr.offset(index as isize) } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `base_ptr.add(index)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast note: the lint level is defined here --> src/lib.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(clippy::ptr_offset_with_cast)]` implied by `#[deny(warnings)]`
use of `offset` with a `usize` casted to an `isize`: src/lib.rs#L575
error: use of `offset` with a `usize` casted to an `isize` --> src/tensor.rs:575:24 | 575 | unsafe { &mut *base_ptr.offset(index as isize) } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `base_ptr.add(index)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
aborting due to 2 previous errors
error: aborting due to 2 previous errors
ci (ubuntu-latest)
The job was canceled because "macos-latest" failed.
ci (ubuntu-latest)
The operation was canceled.