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
Reserve guarded string literals (RFC 3593) #123951
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
In edition 2024 I'm seeing a panic inside |
In edition 2024 if I give this a string like I think it would be better if I got only the first warning. |
This comment has been minimized.
This comment has been minimized.
@mattheww good catch with the empty strings. I wasn't able to reproduce the "double-warning" issue with I think it's actually the correct behavior. When you fix the issue with Regardless, that case will be exceedingly rare if it exists in the wild at all, so I'm not going to spend any time on it. |
My stress-tester is now giving an ICE for |
This comment was marked as resolved.
This comment was marked as resolved.
bb1c797
to
8f57684
Compare
Implementation for RFC 3593, including:
This PR does not implement any special lexing of the string internals:
#
are denied#
"string"
Tracking issue: #123735
RFC: rust-lang/rfcs#3593