about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-13 13:52:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-20 04:50:40 +1000
commitc6f78270b66b2ffc78742006445df76105b7d558 (patch)
tree724238e1977144f0c98be6629b94cd794f14390a /compiler/rustc_parse/src/errors.rs
parent7d9a92ba31122950f2c7f6a71ad6dee49b3e95e4 (diff)
downloadrust-c6f78270b66b2ffc78742006445df76105b7d558.tar.gz
rust-c6f78270b66b2ffc78742006445df76105b7d558.zip
Introduce `can_begin_string_literal`.
We currently use `can_begin_literal_maybe_minus` in a couple of places
where only string literals are allowed. This commit introduces a
more specific function, which makes things clearer. It doesn't change
behaviour because the two functions affected (`is_unsafe_foreign_mod`
and `check_keyword_case`) are always followed by a call to `parse_abi`,
which checks again for a string literal.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions