-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Feature gate: #![feature(proc_macro_c_str_literals)]
This is a tracking issue for C String literals in proc macros under #105723 and #118560, with an implementation in #119651.
This feature adds an API to construct a proc_macro::Literal
C string directly.
Public API
let lit: Literal = Literal::c_string(&CString::new("Hello, world!").unwrap());
Steps / History
- Implementation: proc_macro: Add Literal::c_string constructor #119651
- Stabilization of Stabilize C string literals #117472
- Final Comment Period (FCP)
- Stabilization of this API
Unresolved Questions
MaxVerevkin, HadrienG2 and GrayJack
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.