about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.cov-map
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-09 23:03:47 +0200
committerGitHub <noreply@github.com>2024-10-09 23:03:47 +0200
commitb41e939cb566e21db21144184752e223bb16509d (patch)
tree52d2f45911d293be7bf327fa1157c3d68a1ac373 /tests/coverage/branch/lazy-boolean.cov-map
parenta1eceec00b2684f947481696ae2322e20d59db60 (diff)
parent321a5db7d4026cf703d6deebc413c855ba133142 (diff)
downloadrust-b41e939cb566e21db21144184752e223bb16509d.tar.gz
rust-b41e939cb566e21db21144184752e223bb16509d.zip
Rollup merge of #123951 - pitaj:reserve-guarded-strings, r=traviscross
Reserve guarded string literals (RFC 3593)

Implementation for RFC 3593, including:
- lexer / parser changes
- diagnostics
- migration lint
- tests

We reserve `#"`, `##"`, `###"`, `####`, and any other string of four or more repeated `#`. This avoids infinite lookahead in the lexer, though we still use infinite lookahead in the parser to provide better forward compatibility diagnostics.

This PR does not implement any special lexing of the string internals:
- strings preceded by one or more `#` are denied
- regardless of the number of trailing `#`
- string contents are lexed as if it was just a bare `"string"`

Tracking issue: #123735
RFC: rust-lang/rfcs#3593
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.cov-map')
0 files changed, 0 insertions, 0 deletions