Skip to content

auto_mutability doesn't take structs into account #490

@VarLad

Description

@VarLad

There are a few structs which take a pointer to another struct as one of its fields. For example, in a certain generated code:

mutable struct A
  x::Ptr{B}
  y::C
end
struct B
  x::Ptr{B}
  y::D
end

In such cases, wouldn't it make more sense if B was mutable, and for auto_mutability to make B mutable as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrecordstruct/union/enum issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions