about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-02-08 19:28:20 +0100
committerGitHub <noreply@github.com>2021-02-08 19:28:20 +0100
commitb9045fabf82ba0863892d74df998a5c70436ad09 (patch)
tree370fcaead00392a3256dc6aac0261a6e97cf7e26 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent480865d59505a72b53d1dd8dd99b998120099e6b (diff)
parent04a19b93c63d090b8c31ddea700859825bd28334 (diff)
downloadrust-b9045fabf82ba0863892d74df998a5c70436ad09.tar.gz
rust-b9045fabf82ba0863892d74df998a5c70436ad09.zip
Rollup merge of #81828 - davidhewitt:capture-raw-format-strings, r=estebank
parse_format: treat r" as a literal

This PR changes `format_args!` internal parsing machinery to treat raw strings starting `r"` as a literal.

Currently `"` and `r#` are recognised as valid starting combinations for string literals, but `r"` is not.

This was noticed when debugging https://github.com/rust-lang/rust/issues/67984#issuecomment-753413156

As well as fixing the behavior observed in that comment, this improves diagnostic spans for `r"` formatting strings.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions