-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
String literals should be constant #879
Comments
I agree that it's unfortunate for string literals to be non-constant. Unless we give them type |
Subsumed into #2112, closing. |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 10, 2015
RFC to lex binary and octal literals more eagerly.
ZuseZ4
pushed a commit
to EnzymeAD/rust
that referenced
this issue
Mar 7, 2023
* Add addr replacement handling of memtransfer * Update test
coastalwhite
pushed a commit
to coastalwhite/rust
that referenced
this issue
Aug 5, 2023
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently string literals are allocated and copied from constant C strings on instantiation, which is quite wasteful.
The text was updated successfully, but these errors were encountered: