-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generator: Emit new
c""
CStr
literals
These will land in Rust 1.76 and automatically append a `\0` terminator in the compiler without having to have a checked or `unsafe`-unchecked constructor on `CStr`. Hacking in an invalid `\0` anywhere in the string is disallowed with a compiler error. Note that `proc-macro`, and by extension `proc-macro2` only has support for parsing this literal, but not for emitting it yet.
- Loading branch information
Showing
6 changed files
with
1,127 additions
and
3,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.