Skip to content

inbounds propagation mostly missing in base/genericmemory.jl? #56145

@nsajko

Description

@nsajko

I'm not sure if this is intentional, and I'd have to remind myself of the details of how inbounds propagation works to understand this better, but it seems that, for example, setindex!(::Memory, ::Any, ::Int) isn't propagating inbounds. Discovered by @giordano in JuliaArrays/FixedSizeArrays.jl#65.

Perhaps it's just necessary to add @_propagate_inbounds_meta to some methods in genericmemory.jl 🤷.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions