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

Add ignoreUnusedReturnValue attribute for functions #720

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

marcauberer
Copy link
Member

Add ignoreUnusedResultValue attribute for functions

Can be used like this:

#[ignoreUnusedReturnValue]
f<int> foo() {
  return 1;
}

@marcauberer marcauberer added the enhancement New feature or request label Jan 19, 2025
@marcauberer marcauberer added this to the 0.21.0 milestone Jan 19, 2025
@marcauberer marcauberer self-assigned this Jan 19, 2025
@marcauberer marcauberer requested review from a team as code owners January 19, 2025 16:24
@github-actions github-actions bot added std Prs / issues regarding the standard lib bootstrap Change regarding the bootstrap compiler labels Jan 19, 2025
@marcauberer marcauberer enabled auto-merge (squash) January 19, 2025 16:24
@marcauberer marcauberer merged commit d9bb728 into main Jan 19, 2025
5 checks passed
@marcauberer marcauberer deleted the feature/ignore-unused-return-value-attr branch January 19, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootstrap Change regarding the bootstrap compiler enhancement New feature or request size/L std Prs / issues regarding the standard lib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant