Skip to content

Tracking Issue for c"…" string literals #105723

Closed
@tmandry

Description

@tmandry

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

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 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, comment 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-c_str_literals`#![feature(c_str_literals)]`T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions