avoid Symbol
to &str
conversions
This commit is contained in:
parent
95e77648e4
commit
a22934bea1
12 changed files with 28 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue