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
- using RawByte as a function parameter or return type
- using RawByte as a local, graph, state, or request annotation
- nesting RawByte inside an array, tuple, Option, Result, reference, or function type
Canonical fixes
- wrap RawByte in a raw pointer type
Before:
read(buf: RawByte) : Int = 0
After:
read(buf: Ptr[RawByte]) : Int = 0
- use a concrete safe type when the value is not raw memory
Before:
value: RawByte = 0
After:
value: Int = 0
Code example
read(buf: RawByte) : Int = 0