1
Fork 0

rustc_codegen_llvm: Mark items as pub(crate) outside of the llvm module

This commit is contained in:
Daniel Paoliello 2025-02-07 16:42:55 -08:00
parent a9e7b30487
commit 5f29273921
6 changed files with 8 additions and 8 deletions

View file

@ -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.