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: String literals diagnose #15746

Merged
merged 5 commits into from Oct 16, 2023
Merged

Conversation

pvalletbo
Copy link
Contributor

Continues the work from #15744 to add diagnosis errors to Str, ByteStr, and CStr literal kinds.

Also replaces unescape_char for unescape_byte to use the correct method for Byte literals.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 11, 2023
@pvalletbo
Copy link
Contributor Author

Getting the text within the quotes for RawStr, RawByteStr, and RawCStr requires more work compared to the non raw Str kinds. I haven't had enough time to work on it yet, that's why they are not being handled in the PR yet.

Happy to work on it as soon as possible.

@Veykril
Copy link
Member

Veykril commented Oct 16, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 16, 2023

📌 Commit 6845c80 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 16, 2023

⌛ Testing commit 6845c80 with merge d6afb4f...

@bors
Copy link
Collaborator

bors commented Oct 16, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing d6afb4f to master...

@bors bors merged commit d6afb4f into rust-lang:master Oct 16, 2023
10 checks passed
@lnicola lnicola changed the title String literals diagnose fix: String literals diagnose Oct 17, 2023
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.

None yet

4 participants