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

fix the string-extend-chars suggestion on slice #9741

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Oct 28, 2022

This adds the missing & to the suggestion if the target is a str slice (e.g. extending with "foo"[..].chars()).

This closes #9735.


changelog: fix the string-extend-chars suggestion for str slices

@rust-highfive
Copy link

r? @Manishearth

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 28, 2022
This adds the missing `&` to the suggestion if the target is a
`str` slice (e.g. extending with `"foo"[..].chars()`).
@llogiq llogiq force-pushed the fix-string-extend-chars-slice-ref branch from 544f51f to 7e68c71 Compare October 28, 2022 15:36
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 28, 2022

‼️ Invalid head SHA found, retrying: 0000000000000000000000000000000000000000

@bors
Copy link
Collaborator

bors commented Oct 28, 2022

📌 Commit 7e68c71 has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 28, 2022

⌛ Testing commit 7e68c71 with merge 71ddf81...

@bors
Copy link
Collaborator

bors commented Oct 28, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 71ddf81 to master...

@bors bors merged commit 71ddf81 into rust-lang:master Oct 28, 2022
@llogiq llogiq deleted the fix-string-extend-chars-slice-ref branch October 29, 2022 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion when calling .extend(_.chars()) doesn't compile when slicing
4 participants