From b19d91af4e8321c71f0641007907b73d71410832 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 15 Nov 2022 14:37:33 +0100 Subject: [PATCH] =?UTF-8?q?Add=20c'=E2=80=A6'=20idea.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text/3348-c-str-literal.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/text/3348-c-str-literal.md b/text/3348-c-str-literal.md index faac2f5fa14..23bab31aafd 100644 --- a/text/3348-c-str-literal.md +++ b/text/3348-c-str-literal.md @@ -95,7 +95,12 @@ Interactions with string related macros: # Unresolved questions [unresolved-questions]: #unresolved-questions +- Also add `c'…'` as [`c_char`](https://doc.rust-lang.org/stable/core/ffi/type.c_char.html) literal? + + It'd be identical to `b'…'`, except it'd be a `c_char` (`i8`) instead of `u8`. + - 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?) # Future possibilities