Rellum Rellum

S0143: RawByte is only valid as a pointer element type

Generated from rellum-diagnostics/src/db.rs.

Explanation

RawByte represents an untyped memory byte for raw pointer interop. It is not a safe standalone value type and may only appear directly inside Ptr[RawByte] or MutPtr[RawByte].

Common causes

Canonical fixes

Before:

read(buf: RawByte) : Int = 0

After:

read(buf: Ptr[RawByte]) : Int = 0

Before:

value: RawByte = 0

After:

value: Int = 0

Code example

read(buf: RawByte) : Int = 0