diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-02-11 01:02:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-11 01:02:40 -0500 |
| commit | 6153a8dceabb8b35abb074fdb96422d05fd2944a (patch) | |
| tree | 00df16ba16779b929eb7b8e10a664548b5bd2c6f /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 2996cfdcc3b9c46853f4a424079af1da6ce0e638 (diff) | |
| parent | 5f29273921f2a15a440e373c640d5525756fdf41 (diff) | |
| download | rust-6153a8dceabb8b35abb074fdb96422d05fd2944a.tar.gz rust-6153a8dceabb8b35abb074fdb96422d05fd2944a.zip | |
Rollup merge of #136721 - dpaoliello:cleanllvm2, r=Zalathar
cg_llvm: Reduce visibility of some items outside the `llvm` module Next piece of #135502 This reduces the visibility of items (other than those in the `llvm` module) so that dead code analysis will correctly identify unused items.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 53611c746a7..e72f8bdff84 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -303,7 +303,7 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea /// Must express features in the way Rust understands them. /// /// We do not have to worry about RUSTC_SPECIFIC_FEATURES here, those are handled outside codegen. -pub fn target_features_cfg(sess: &Session, allow_unstable: bool) -> Vec<Symbol> { +pub(crate) fn target_features_cfg(sess: &Session, allow_unstable: bool) -> Vec<Symbol> { let mut features: FxHashSet<Symbol> = Default::default(); // Add base features for the target. |
