diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-05-20 19:51:09 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-05-20 20:04:54 -0400 |
| commit | 49c82f31a85f04a709810de4ccfb8ba765c1377b (patch) | |
| tree | dbcbf74a4c0cef46af19b4b24f04dd2e79e3ea23 /compiler/rustc_codegen_llvm/src/back | |
| parent | 536020c5f97883aa9f2a90897a5adb520486d2e1 (diff) | |
| download | rust-49c82f31a85f04a709810de4ccfb8ba765c1377b.tar.gz rust-49c82f31a85f04a709810de4ccfb8ba765c1377b.zip | |
Remove `crate` visibility usage in compiler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/lto.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index d0724baf9e0..c7497bfd355 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -354,14 +354,14 @@ fn fat_lto( Ok(LtoModuleCodegen::Fat { module, _serialized_bitcode: serialized_bitcode }) } -crate struct Linker<'a>(&'a mut llvm::Linker<'a>); +pub(crate) struct Linker<'a>(&'a mut llvm::Linker<'a>); impl<'a> Linker<'a> { - crate fn new(llmod: &'a llvm::Module) -> Self { + pub(crate) fn new(llmod: &'a llvm::Module) -> Self { unsafe { Linker(llvm::LLVMRustLinkerNew(llmod)) } } - crate fn add(&mut self, bytecode: &[u8]) -> Result<(), ()> { + pub(crate) fn add(&mut self, bytecode: &[u8]) -> Result<(), ()> { unsafe { if llvm::LLVMRustLinkerAdd( self.0, |
