diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-10 22:40:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 22:40:36 +0100 |
| commit | 40988591ecd806fbbfe61db8b5cd05cff33e22d6 (patch) | |
| tree | 5c5e486f63cb5c203d88fb5274b1639abf7a986f /compiler/rustc_codegen_gcc/src/back/write.rs | |
| parent | 6cfe9af6a074b842198176d21170e49ee0cc6add (diff) | |
| parent | 15de4cbc4b49be2fbf082fe02f877d5f774569a5 (diff) | |
| download | rust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.tar.gz rust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.zip | |
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
Remove redundant [..]s
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/back/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/back/write.rs b/compiler/rustc_codegen_gcc/src/back/write.rs index c3e3847823d..4962d016152 100644 --- a/compiler/rustc_codegen_gcc/src/back/write.rs +++ b/compiler/rustc_codegen_gcc/src/back/write.rs @@ -32,7 +32,7 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_han if config.emit_asm { let _timer = cgcx .prof - .generic_activity_with_arg("LLVM_module_codegen_emit_asm", &module.name[..]); + .generic_activity_with_arg("LLVM_module_codegen_emit_asm", &*module.name); let path = cgcx.output_filenames.temp_path(OutputType::Assembly, module_name); context.compile_to_file(OutputKind::Assembler, path.to_str().expect("path to str")); } @@ -41,7 +41,7 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_han EmitObj::ObjectCode(_) => { let _timer = cgcx .prof - .generic_activity_with_arg("LLVM_module_codegen_emit_obj", &module.name[..]); + .generic_activity_with_arg("LLVM_module_codegen_emit_obj", &*module.name); match &*module.name { "std_example.7rcbfp3g-cgu.15" => { println!("Dumping reproducer {}", module.name); |
