Skip to content

fix: Don't say "a reference to" for Copy types in the generate getter assist #11062

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

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

patrick-gu
Copy link
Contributor

This changes the generate getter assist to not say "a reference to" in the documentation stub if the type is Copy, as the getter does not return a reference.

To determine whether the type is Copy, I have added an is_copy method to ReferenceConversion.

This changes the generate getter assist to not say "a reference to" in the documentation stub if the type is Copy, as the getter does not return a reference.
@Veykril
Copy link
Member

Veykril commented Dec 20, 2021

Thanks!
bors r+

@bors
Copy link
Contributor

bors bot commented Dec 20, 2021

@bors bors bot merged commit 2ca3834 into rust-lang:master Dec 20, 2021
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.

2 participants