Skip to content

Commit 92414ab

Browse files
committed
Make some functions private that are only ever used in the same module
1 parent 0b4cbee commit 92414ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_gcc/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ pub fn const_alloc_to_gcc<'gcc, 'tcx>(
349349
cx.const_struct(&llvals, true)
350350
}
351351

352-
pub fn codegen_static_initializer<'gcc, 'tcx>(
352+
fn codegen_static_initializer<'gcc, 'tcx>(
353353
cx: &CodegenCx<'gcc, 'tcx>,
354354
def_id: DefId,
355355
) -> Result<(RValue<'gcc>, ConstAllocation<'tcx>), ErrorHandled> {

compiler/rustc_codegen_llvm/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub fn const_alloc_to_llvm<'ll>(cx: &CodegenCx<'ll, '_>, alloc: ConstAllocation<
114114
cx.const_struct(&llvals, true)
115115
}
116116

117-
pub fn codegen_static_initializer<'ll, 'tcx>(
117+
fn codegen_static_initializer<'ll, 'tcx>(
118118
cx: &CodegenCx<'ll, 'tcx>,
119119
def_id: DefId,
120120
) -> Result<(&'ll Value, ConstAllocation<'tcx>), ErrorHandled> {

0 commit comments

Comments
 (0)