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: add diagnostics messages for chars and byte literal errors #15744

Merged

Conversation

pvalletbo
Copy link
Contributor

@pvalletbo pvalletbo commented Oct 11, 2023

This PR adds error messages for different invalid byte or character literals.
Fixes #15395

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

Veykril commented Oct 11, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 11, 2023

📌 Commit 1fe6ac8 has been approved by Veykril

It is now in the queue for this repository.

@Veykril Veykril changed the title add diagnosis messages for chars and byte literal errors fix: add diagnostics messages for chars and byte literal errors Oct 11, 2023
@bors
Copy link
Collaborator

bors commented Oct 11, 2023

⌛ Testing commit 1fe6ac8 with merge 19514f3...

bors added a commit that referenced this pull request Oct 11, 2023
…se, r=Veykril

fix: add diagnostics messages for chars and byte literal errors

This PR adds error messages for different invalid byte or character literals.
Fixes #15395
@bors
Copy link
Collaborator

bors commented Oct 11, 2023

💔 Test failed - checks-actions

@Veykril
Copy link
Member

Veykril commented Oct 11, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 11, 2023

📌 Commit f58a825 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 11, 2023

⌛ Testing commit f58a825 with merge c387361...

@bors
Copy link
Collaborator

bors commented Oct 11, 2023

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

1 similar comment
@bors
Copy link
Collaborator

bors commented Oct 11, 2023

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

@bors bors merged commit c387361 into rust-lang:master Oct 11, 2023
10 checks passed
@bors
Copy link
Collaborator

bors commented Oct 11, 2023

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

@lnicola
Copy link
Member

lnicola commented Oct 16, 2023

image

bors added a commit that referenced this pull request Oct 16, 2023
String literals diagnose

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.
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.

Diagnose character literal may only contain one codepoint
5 participants