about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-02-26 17:43:18 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-03-12 05:53:46 +0000
commit8fdfbf54ff95987f2f9a8c96e7f28386b3bdd7be (patch)
tree3e4ae2505625db468bbef74a094c5c0f83f4e76f /src
parente3a9b1dbec93d904432351cb78786566cef1cd19 (diff)
downloadrust-8fdfbf54ff95987f2f9a8c96e7f28386b3bdd7be.tar.gz
rust-8fdfbf54ff95987f2f9a8c96e7f28386b3bdd7be.zip
Make some functions private that are only ever used in the same module
Diffstat (limited to 'src')
-rw-r--r--src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consts.rs b/src/consts.rs
index 740956f6fdf..3d73a60b255 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -349,7 +349,7 @@ pub fn const_alloc_to_gcc<'gcc, 'tcx>(
     cx.const_struct(&llvals, true)
 }
 
-pub fn codegen_static_initializer<'gcc, 'tcx>(
+fn codegen_static_initializer<'gcc, 'tcx>(
     cx: &CodegenCx<'gcc, 'tcx>,
     def_id: DefId,
 ) -> Result<(RValue<'gcc>, ConstAllocation<'tcx>), ErrorHandled> {