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

Rust: Model clone #18676

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Rust: Model clone #18676

wants to merge 2 commits into from

Conversation

paldepind
Copy link
Contributor

@paldepind paldepind commented Feb 4, 2025

The clone method is very common in Rust and implementations should always make an exact clone of the input. So allowing value flow through any clone method seems useful.

I wasn't sure how to implement this. In C/C++ I think we have a way of adding flow that is based on data flow nodes, but here I extended SummarizedCallable::Range which is based on strings and thus feels a bit odd. Maybe we will want another way to add additional flow steps later, but for now this seems to work just fine.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Feb 4, 2025
@paldepind paldepind marked this pull request as ready for review February 5, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant