Skip to content

Field sensitivity lost with nested structs. #167

@JustusAdam

Description

@JustusAdam

In this example the graph contains a dependency from the old img.user when the field is overwritten.

struct User {
    name: String,
}

struct Image {
    user: User,
    name: String,
}

for mut img in Image::for_user(&user) {
    img.user = User {
        name: "dummy".to_string(),
    };
    img.name = "dummy".to_string();
    img.delete()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingflow-analysisConcerns the PDG construction component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions