about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-25 18:09:03 +0100
committerGitHub <noreply@github.com>2025-03-25 18:09:03 +0100
commitb66e9320c53a2fddc2c493cd6ffb772bef206977 (patch)
tree390eb7b50c760f279a744a041dce77ec810b1a14 /compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs
parent5f6c1a9f573b2aab044c856589c9d9de3c821af3 (diff)
parent79b9664091e90c08a7abeab2bbc4a941bcdc3863 (diff)
downloadrust-b66e9320c53a2fddc2c493cd6ffb772bef206977.tar.gz
rust-b66e9320c53a2fddc2c493cd6ffb772bef206977.zip
Rollup merge of #137247 - dpaoliello:cleanllvm, r=Zalathar
cg_llvm: Reduce the visibility of types, modules and using declarations in `rustc_codegen_llvm`.

Final part of #135502

Reduces the visibility of types, modules and using declarations in the `rustc_codegen_llvm` to private or `pub(crate)` where possible, and marks unused fields and enum entries with `#[expect(dead_code)]`.

r? Zalathar
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs b/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs
index 63b2b15c514..51bcc4d123d 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs
@@ -5,17 +5,17 @@ use std::{slice, str};
 
 use rustc_fs_util::path_to_c_string;
 
-pub struct ArchiveRO {
+pub(crate) struct ArchiveRO {
     pub raw: &'static mut super::Archive,
 }
 
 unsafe impl Send for ArchiveRO {}
 
-pub struct Iter<'a> {
+pub(crate) struct Iter<'a> {
     raw: &'a mut super::ArchiveIterator<'a>,
 }
 
-pub struct Child<'a> {
+pub(crate) struct Child<'a> {
     pub raw: &'a mut super::ArchiveChild<'a>,
 }