Skip to content

Commit a1d0a90

Browse files
committed
Use global_fn_name instead of format!
1 parent 5930509 commit a1d0a90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/allocator.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use crate::prelude::*;
55

66
use rustc_ast::expand::allocator::{
7-
alloc_error_handler_name, default_fn_name, AllocatorKind, AllocatorTy, ALLOCATOR_METHODS,
7+
alloc_error_handler_name, default_fn_name, global_fn_name, AllocatorKind, AllocatorTy,
8+
ALLOCATOR_METHODS,
89
};
910
use rustc_codegen_ssa::base::allocator_kind_for_codegen;
1011
use rustc_session::config::OomStrategy;
@@ -68,7 +69,7 @@ fn codegen_inner(
6869
module,
6970
unwind_context,
7071
sig,
71-
&format!("__rust_{}", method.name),
72+
&global_fn_name(method.name),
7273
&default_fn_name(method.name),
7374
);
7475
}

0 commit comments

Comments
 (0)