Skip to content

Commit c6009ca

Browse files
authored
Rollup merge of rust-lang#91625 - est31:remove_indexes, r=oli-obk
Remove redundant [..]s
2 parents 10a9b12 + b1d329b commit c6009ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/back/write.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_han
3232
if config.emit_asm {
3333
let _timer = cgcx
3434
.prof
35-
.generic_activity_with_arg("LLVM_module_codegen_emit_asm", &module.name[..]);
35+
.generic_activity_with_arg("LLVM_module_codegen_emit_asm", &*module.name);
3636
let path = cgcx.output_filenames.temp_path(OutputType::Assembly, module_name);
3737
context.compile_to_file(OutputKind::Assembler, path.to_str().expect("path to str"));
3838
}
@@ -41,7 +41,7 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_han
4141
EmitObj::ObjectCode(_) => {
4242
let _timer = cgcx
4343
.prof
44-
.generic_activity_with_arg("LLVM_module_codegen_emit_obj", &module.name[..]);
44+
.generic_activity_with_arg("LLVM_module_codegen_emit_obj", &*module.name);
4545
match &*module.name {
4646
"std_example.7rcbfp3g-cgu.15" => {
4747
println!("Dumping reproducer {}", module.name);

0 commit comments

Comments
 (0)