Skip to content

Commit

Permalink
Make std_detect::check_for unstably public
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Apr 7, 2024
1 parent 967e7af commit e76fcdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/std_detect/src/detect/arch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cfg_if! {
} else {
// Unimplemented architecture:
#[doc(hidden)]
pub(crate) enum Feature {
pub enum Feature {
Null
}
#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion crates/std_detect/src/detect/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ macro_rules! features {
#[repr(u8)]
#[unstable(feature = "stdarch_internal", issue = "none")]
#[cfg($cfg)]
pub(crate) enum Feature {
pub enum Feature {
$(
$(#[$feature_comment])*
$feature,
Expand Down
4 changes: 2 additions & 2 deletions crates/std_detect/src/detect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ cfg_if! {

/// Performs run-time feature detection.
#[inline]
#[allow(dead_code)]
fn check_for(x: Feature) -> bool {
#[unstable(feature = "stdarch_internal", issue = "none")]
pub fn check_for(x: Feature) -> bool {
cache::test(x as u32)
}

Expand Down

0 comments on commit e76fcdc

Please sign in to comment.