about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2021-02-17 10:46:35 +0100
committerest31 <MTest31@outlook.com>2021-02-17 11:25:55 +0100
commit003670748f88d22e19b449db4e24b35739b9e984 (patch)
treea72c03472e268294f205e025fa3d32cc4447b18e /compiler/rustc_codegen_llvm/src/allocator.rs
parent42a4673fbd40b09a99d057eaa9b3e5579b54c184 (diff)
downloadrust-003670748f88d22e19b449db4e24b35739b9e984.tar.gz
rust-003670748f88d22e19b449db4e24b35739b9e984.zip
Remove redundant to_string calls
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/allocator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/allocator.rs b/compiler/rustc_codegen_llvm/src/allocator.rs
index a5ea0b2a74c..068e5e99efe 100644
--- a/compiler/rustc_codegen_llvm/src/allocator.rs
+++ b/compiler/rustc_codegen_llvm/src/allocator.rs
@@ -93,7 +93,7 @@ pub(crate) unsafe fn codegen(
     let args = [usize, usize]; // size, align
 
     let ty = llvm::LLVMFunctionType(void, args.as_ptr(), args.len() as c_uint, False);
-    let name = "__rust_alloc_error_handler".to_string();
+    let name = "__rust_alloc_error_handler";
     let llfn = llvm::LLVMRustGetOrInsertFunction(llmod, name.as_ptr().cast(), name.len(), ty);
     // -> ! DIFlagNoReturn
     llvm::Attribute::NoReturn.apply_llfn(llvm::AttributePlace::Function, llfn);