Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field sensitivity lost with nested structs. #167

Open
JustusAdam opened this issue Oct 2, 2024 · 0 comments
Open

Field sensitivity lost with nested structs. #167

JustusAdam opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working flow-analysis Concerns the PDG construction component

Comments

@JustusAdam
Copy link
Collaborator

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()
}
@JustusAdam JustusAdam added bug Something isn't working flow-analysis Concerns the PDG construction component labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flow-analysis Concerns the PDG construction component
Projects
None yet
Development

No branches or pull requests

1 participant