Skip to content

Fix lexing byte literal #2320

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
Jun 30, 2023
Merged

Conversation

tamaroning
Copy link
Contributor

@tamaroning tamaroning commented Jun 24, 2023

closes #2308

gcc/rust/ChangeLog:

	* lex/rust-lex.cc (Lexer::parse_byte_char):add check for range of codepoint

gcc/testsuite/ChangeLog:

	* rust/compile/bytecharstring.rs:add test for it

NOTE: this pr depends on (includes commit from) PR #2307
so please merge this after PR #2307 is merged

Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM nice one i love how simple the fix was :)

gcc/rust/ChangeLog:

	* lex/rust-lex.cc (Lexer::parse_byte_char):add check for range of codepoint

gcc/testsuite/ChangeLog:

	* rust/compile/bytecharstring.rs:add test for it

Signed-off-by: Raiki Tamura <[email protected]>
@tamaroning
Copy link
Contributor Author

@philberty Thank you for your review :) Rebased now.

Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tamaroning
Copy link
Contributor Author

@CohenArthur Could you rerun tests also for this pr?

@CohenArthur
Copy link
Member

done @tamaroning :) I wonder why it kept failing. I think github was having some server issues. I hope it runs properly this time.

@tamaroning
Copy link
Contributor Author

Thank you!

@CohenArthur CohenArthur added this pull request to the merge queue Jun 30, 2023
Merged via the queue into Rust-GCC:master with commit abfb39e Jun 30, 2023
@tamaroning tamaroning deleted the fix-byte-literal branch June 30, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Byte literal does not propery handle with its character code.
3 participants