about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/src/lib.rs
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-07-04 09:26:12 +0200
committerJakub Beránek <berykubik@gmail.com>2025-07-22 20:17:06 +0200
commit5b2de8ab27e4a319e23817b61830a5cc6fd1745e (patch)
tree94d6ce5680690c678e56d907ec27145fb464eeed /library/stdarch/crates/std_detect/src/lib.rs
parent2e5367566819ca7878baa9600ae7a93eb0e37bbf (diff)
downloadrust-5b2de8ab27e4a319e23817b61830a5cc6fd1745e.tar.gz
rust-5b2de8ab27e4a319e23817b61830a5cc6fd1745e.zip
Move `std_detect` from `library/stdarch` to `library`
Diffstat (limited to 'library/stdarch/crates/std_detect/src/lib.rs')
-rw-r--r--library/stdarch/crates/std_detect/src/lib.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/library/stdarch/crates/std_detect/src/lib.rs b/library/stdarch/crates/std_detect/src/lib.rs
deleted file mode 100644
index ab1b77bad5b..00000000000
--- a/library/stdarch/crates/std_detect/src/lib.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-//! Run-time feature detection for the Rust standard library.
-//!
-//! To detect whether a feature is enabled in the system running the binary
-//! use one of the appropriate macro for the target:
-//!
-//! * `x86` and `x86_64`: [`is_x86_feature_detected`]
-//! * `arm`: [`is_arm_feature_detected`]
-//! * `aarch64`: [`is_aarch64_feature_detected`]
-//! * `riscv`: [`is_riscv_feature_detected`]
-//! * `mips`: [`is_mips_feature_detected`]
-//! * `mips64`: [`is_mips64_feature_detected`]
-//! * `powerpc`: [`is_powerpc_feature_detected`]
-//! * `powerpc64`: [`is_powerpc64_feature_detected`]
-//! * `loongarch`: [`is_loongarch_feature_detected`]
-//! * `s390x`: [`is_s390x_feature_detected`]
-
-#![unstable(feature = "stdarch_internal", issue = "none")]
-#![feature(staged_api, doc_cfg, allow_internal_unstable)]
-#![deny(rust_2018_idioms)]
-#![allow(clippy::shadow_reuse)]
-#![cfg_attr(test, allow(unused_imports))]
-#![no_std]
-#![allow(internal_features)]
-
-#[cfg(test)]
-#[macro_use]
-extern crate std;
-
-// rust-lang/rust#83888: removing `extern crate` gives an error that `vec_spare>
-#[cfg_attr(feature = "std_detect_file_io", allow(unused_extern_crates))]
-#[cfg(feature = "std_detect_file_io")]
-extern crate alloc;
-
-#[doc(hidden)]
-#[unstable(feature = "stdarch_internal", issue = "none")]
-pub mod detect;