Skip to content

Implement conventions for ownership variants #16810

New issue

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

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

Already on GitHub? # to your account

Closed
alexcrichton opened this issue Aug 28, 2014 · 1 comment · Fixed by #17268
Closed

Implement conventions for ownership variants #16810

alexcrichton opened this issue Aug 28, 2014 · 1 comment · Fixed by #17268
Assignees
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.

Comments

@alexcrichton
Copy link
Member

Tracking RFC for rust-lang/rfcs#199

@aturon
Copy link
Member

aturon commented Aug 28, 2014

cc #13660

bors added a commit that referenced this issue Sep 16, 2014
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.

Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.

Closes #13660
Closes #16810

[breaking-change]
bors added a commit that referenced this issue Sep 16, 2014
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.

Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.

Closes #13660
Closes #16810

[breaking-change]
bors added a commit to rust-lang-ci/rust that referenced this issue Mar 17, 2024
feat: add fix for unused_variables

add a leading underscore for unused variable
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants