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

Insert #[must_use] in generate_is_empty_from_len #11740

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Insert #[must_use] in generate_is_empty_from_len #11740

merged 1 commit into from
Mar 17, 2022

Conversation

Walther
Copy link
Contributor

@Walther Walther commented Mar 17, 2022

Inserts #[must_use] for the generated is_empty methods. I also added the #[must_use] for the len() methods in the documentation examples and tests for this generator while at it, to make sure they too encourage the use of the annotation.

From discussion in #11736 and #11738

@lnicola
Copy link
Member

lnicola commented Mar 17, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 17, 2022

@bors bors bot merged commit 0a18e43 into rust-lang:master Mar 17, 2022
@Walther Walther deleted the must_use_for_generate_is_empty_from_len branch March 17, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants