This is a tracking issue for the RFC "`c"…"` string literals" (rust-lang/rfcs#3348). The feature gate for the issue is `#![feature(c_str_literals)]`. ### Steps / History - [x] Implement the RFC: #108801 - [x] Interaction with proc macros: #112820 - [x] #113235 - [x] #113334 - [x] #113333 - [x] #118560 - [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide]) - [x] Stabilization PR #117472 [stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr [doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs ### Unresolved Questions - [ ] Also add `c'…'` C character literals? (`u8`, `i8`, `c_char`, or something more flexible?) - [ ] Should we make `&CStr` a thin pointer before stabilizing this? (If so, how?) - [ ] Should the (unstable) [`concat_bytes` macro](https://github.com/rust-lang/rust/issues/87555) accept C string literals? (If so, should it evaluate to a C string or byte string?) - [ ] Should there be a valid UTF-8 C string type that `c"..."` string literals support? ([comment 1](https://github.com/rust-lang/rfcs/pull/3348#issuecomment-1320136482), [comment 2](https://github.com/rust-lang/rfcs/pull/3348#issuecomment-1347987098))
This is a tracking issue for the RFC "
c"…"string literals" (rust-lang/rfcs#3348).The feature gate for the issue is
#![feature(c_str_literals)].Steps / History
c"foo"literals #108801c"…"literals are handled incorrectly by proc_macro::Literal #112820c"…"string literals #113334c"…"string literals with backward compatibility in mind #113333Unresolved Questions
c'…'C character literals? (u8,i8,c_char, or something more flexible?)&CStra thin pointer before stabilizing this? (If so, how?)concat_bytesmacro accept C string literals? (If so, should it evaluate to a C string or byte string?)c"..."string literals support? (comment 1, comment 2)