summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-25 14:33:59 +0100
committerGitHub <noreply@github.com>2021-02-25 14:33:59 +0100
commit00aa3e68806e50431d51fc7f6ce66f2a4548f4cd (patch)
tree835b6499a81807a46506ae76711a6b574b7db6d5 /compiler/rustc_codegen_llvm/src
parent199095afc69e208de659aceb9269bfa2940d074d (diff)
parent003670748f88d22e19b449db4e24b35739b9e984 (diff)
downloadrust-00aa3e68806e50431d51fc7f6ce66f2a4548f4cd.tar.gz
rust-00aa3e68806e50431d51fc7f6ce66f2a4548f4cd.zip
Rollup merge of #82214 - est31:no_to_string, r=oli-obk
Remove redundant to_string calls
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-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);