diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-18 14:25:34 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-18 14:25:34 +0900 |
| commit | a22934bea1d02870cda58eb6297ff9332fcc2104 (patch) | |
| tree | f5f728efbdc651909b4eee8ca7e094a3b35f18df /compiler/rustc_codegen_llvm/src | |
| parent | 95e77648e466c780a9adce2fa3d3eb5e423dc04e (diff) | |
| download | rust-a22934bea1d02870cda58eb6297ff9332fcc2104.tar.gz rust-a22934bea1d02870cda58eb6297ff9332fcc2104.zip | |
avoid `Symbol` to `&str` conversions
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs index 5186aee57fb..80fd9726fc7 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs @@ -55,7 +55,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global<'ll>(cx: &CodegenCx<'ll, ' // The initial byte `4` instructs GDB that the following pretty printer // is defined inline as opposed to in a standalone file. section_contents.extend_from_slice(b"\x04"); - let vis_name = format!("pretty-printer-{}-{}\n", crate_name.as_str(), index); + let vis_name = format!("pretty-printer-{}-{}\n", crate_name, index); section_contents.extend_from_slice(vis_name.as_bytes()); section_contents.extend_from_slice(&visualizer.src); |
