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: Add data flow tests for operator overloading #18312

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Dec 18, 2024

Adds a few data flow tests that illustrate the current shortcomings of flow through operator calls.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Dec 18, 2024
@hvitved hvitved marked this pull request as ready for review December 18, 2024 09:37
@hvitved hvitved requested a review from paldepind December 18, 2024 09:37
Comment on lines 103 to 104
fn add(self, other: MyInt) -> MyInt {
// Ignore `other` to get value flow for `self.value`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for coming up with one more nitpick comment 🙈

Suggested change
fn add(self, other: MyInt) -> MyInt {
// Ignore `other` to get value flow for `self.value`
fn add(self, _other: MyInt) -> MyInt {
// Ignore `_other` to get value flow for `self.value`

@hvitved hvitved force-pushed the rust/operator-overloading-test branch from 843e0a2 to 2f9f574 Compare December 18, 2024 11:46
Co-authored-by: Simon Friis Vindum <[email protected]>
@hvitved hvitved force-pushed the rust/operator-overloading-test branch from 2f9f574 to 3a63dbc Compare December 18, 2024 11:46
@hvitved hvitved requested a review from paldepind December 18, 2024 12:39
@hvitved hvitved merged commit 00688eb into github:main Dec 18, 2024
12 checks passed
@hvitved hvitved deleted the rust/operator-overloading-test branch December 18, 2024 12:58
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.

2 participants