about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:40:36 +0100
committerGitHub <noreply@github.com>2021-12-10 22:40:36 +0100
commitc6009ca30f13a00a025e0470be23e4d47803198d (patch)
tree6d7f4416fcb0d5a5f508e1dfd0587682d0162dee /src
parent10a9b1202bdeb96b1af051df02e2d39bc3c9e19b (diff)
parentb1d329ba5564be80195aea4c45f61779ac5e126d (diff)
downloadrust-c6009ca30f13a00a025e0470be23e4d47803198d.tar.gz
rust-c6009ca30f13a00a025e0470be23e4d47803198d.zip
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
Remove redundant [..]s
Diffstat (limited to 'src')
-rw-r--r--src/back/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/back/write.rs b/src/back/write.rs
index c3e3847823d..4962d016152 100644
--- a/src/back/write.rs
+++ b/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);