diff options
| 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 |
| commit | 819247f179c0af011ea7219dc361209851eb487d (patch) | |
| tree | 0f618628aaebca74325a1e12d08dc997a9ccc12c /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 7637fd588bfee93d627474a18dcbf11a81803665 (diff) | |
| download | rust-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
