diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-02-17 12:30:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 12:30:13 +0000 |
| commit | 0c9c489355a25ad6c89f6b009743a780b2ac97bd (patch) | |
| tree | 7dc4e427cc53a909fe61c9f68086084073a58fff /compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs | |
| parent | 2a0d16f3c481cdf28366f88d3824f4a30ff806c9 (diff) | |
| parent | 952bfae057206f01c3afd126752389eef353b56a (diff) | |
| download | rust-0c9c489355a25ad6c89f6b009743a780b2ac97bd.tar.gz rust-0c9c489355a25ad6c89f6b009743a780b2ac97bd.zip | |
Merge pull request #19169 from lnicola/sync-from-rust
minor: Sync from downstream
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs | 6 |
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 4dabde55e98..63b2b15c514 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs @@ -26,7 +26,7 @@ impl ArchiveRO { /// /// If this archive is used with a mutable method, then an error will be /// raised. - pub fn open(dst: &Path) -> Result<ArchiveRO, String> { + pub(crate) fn open(dst: &Path) -> Result<ArchiveRO, String> { unsafe { let s = path_to_c_string(dst); let ar = super::LLVMRustOpenArchive(s.as_ptr()).ok_or_else(|| { @@ -36,7 +36,7 @@ impl ArchiveRO { } } - pub fn iter(&self) -> Iter<'_> { + pub(crate) fn iter(&self) -> Iter<'_> { unsafe { Iter { raw: super::LLVMRustArchiveIteratorNew(self.raw) } } } } @@ -71,7 +71,7 @@ impl<'a> Drop for Iter<'a> { } impl<'a> Child<'a> { - pub fn name(&self) -> Option<&'a str> { + pub(crate) fn name(&self) -> Option<&'a str> { unsafe { let mut name_len = 0; let name_ptr = super::LLVMRustArchiveChildName(self.raw, &mut name_len); |
