Skip to content

Commit 5930509

Browse files
committed
Split AllocatorKind::fn_name in global_fn_name and default_fn_name
1 parent 002aa8e commit 5930509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/allocator.rs

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

66
use rustc_ast::expand::allocator::{
7-
alloc_error_handler_name, AllocatorKind, AllocatorTy, ALLOCATOR_METHODS,
7+
alloc_error_handler_name, default_fn_name, AllocatorKind, AllocatorTy, ALLOCATOR_METHODS,
88
};
99
use rustc_codegen_ssa::base::allocator_kind_for_codegen;
1010
use rustc_session::config::OomStrategy;
@@ -69,7 +69,7 @@ fn codegen_inner(
6969
unwind_context,
7070
sig,
7171
&format!("__rust_{}", method.name),
72-
&AllocatorKind::Default.fn_name(method.name),
72+
&default_fn_name(method.name),
7373
);
7474
}
7575
}

0 commit comments

Comments
 (0)