Push on main #31
codeql
on: dynamic
Matrix: analyze
Annotations
1 warning
implicit autoref creates a reference to the dereference of a raw pointer:
benchmark/src/runner/counter.rs#L32
warning: implicit autoref creates a reference to the dereference of a raw pointer
--> benchmark/src/runner/counter.rs:32:13
|
32 | (*self.costs.get())[idx] = cost;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
= note: `#[warn(dangerous_implicit_autorefs)]` on by default
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
|
32 | (&mut (*self.costs.get()))[idx] = cost;
| +++++ +
|