about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-03-26 11:23:51 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-03-26 11:23:51 +0300
commit819247f179c0af011ea7219dc361209851eb487d (patch)
tree0f618628aaebca74325a1e12d08dc997a9ccc12c /compiler/rustc_codegen_llvm/src/builder.rs
parent7637fd588bfee93d627474a18dcbf11a81803665 (diff)
downloadrust-819247f179c0af011ea7219dc361209851eb487d.tar.gz
rust-819247f179c0af011ea7219dc361209851eb487d.zip
Update char::escape_debug_ext to handle different escapes in strings vs. chars
Fixes #83046

The program

    fn main() {
        println!("{:?}", '"');
        println!("{:?}", "'");
    }

would previously print

    '\"'
    "\'"

With this patch it now prints:

    '"'
    "'"
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions