Skip to content

Reimplement the lexing of c"…" string literals with backward compatibility in mind #113333

Closed
@fmease

Description

@fmease

The lexing of c"…" string literals as implemented in #108801 had to be reverted in #113334 since it isn't backward compatible.
It breaks code that uses a pre-2021 edition (i.e. the 2015 or the 2018 edition).
See #113235 (comment) for details.

@rustbot label C-bug T-compiler F-c_str_literals

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.F-c_str_literals`#![feature(c_str_literals)]`T-compilerRelevant to the compiler 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