summaryrefslogtreecommitdiffstats
path: root/library/stdarch/crates/core_arch/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/core_arch/src/lib.rs')
-rw-r--r--library/stdarch/crates/core_arch/src/lib.rs74
1 files changed, 74 insertions, 0 deletions
diff --git a/library/stdarch/crates/core_arch/src/lib.rs b/library/stdarch/crates/core_arch/src/lib.rs
new file mode 100644
index 000000000..9240d0e84
--- /dev/null
+++ b/library/stdarch/crates/core_arch/src/lib.rs
@@ -0,0 +1,74 @@
+#![doc = include_str!("core_arch_docs.md")]
+#![allow(improper_ctypes_definitions)]
+#![allow(dead_code)]
+#![allow(unused_features)]
+#![deny(rust_2018_idioms)]
+#![feature(
+ custom_inner_attributes,
+ link_llvm_intrinsics,
+ platform_intrinsics,
+ repr_simd,
+ simd_ffi,
+ proc_macro_hygiene,
+ stmt_expr_attributes,
+ core_intrinsics,
+ no_core,
+ rustc_attrs,
+ stdsimd,
+ staged_api,
+ doc_cfg,
+ tbm_target_feature,
+ sse4a_target_feature,
+ arm_target_feature,
+ cmpxchg16b_target_feature,
+ avx512_target_feature,
+ mips_target_feature,
+ powerpc_target_feature,
+ wasm_target_feature,
+ abi_unadjusted,
+ rtm_target_feature,
+ f16c_target_feature,
+ allow_internal_unstable,
+ decl_macro,
+ bench_black_box,
+ asm_const
+)]
+#![cfg_attr(test, feature(test, abi_vectorcall))]
+#![deny(clippy::missing_inline_in_public_items)]
+#![allow(
+ clippy::inline_always,
+ clippy::too_many_arguments,
+ clippy::cast_sign_loss,
+ clippy::cast_lossless,
+ clippy::cast_possible_wrap,
+ clippy::cast_possible_truncation,
+ clippy::cast_precision_loss,
+ clippy::shadow_reuse,
+ clippy::cognitive_complexity,
+ clippy::similar_names,
+ clippy::many_single_char_names
+)]
+#![cfg_attr(test, allow(unused_imports))]
+#![no_std]
+#![unstable(feature = "stdsimd", issue = "27731")]
+#![doc(
+ test(attr(deny(warnings))),
+ test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
+)]
+
+#[cfg(test)]
+#[macro_use]
+extern crate std;
+#[cfg(test)]
+#[macro_use]
+extern crate std_detect;
+#[path = "mod.rs"]
+mod core_arch;
+
+pub mod arch {
+ pub use crate::core_arch::arch::*;
+ pub use core::arch::asm;
+}
+
+#[allow(unused_imports)]
+use core::{convert, ffi, hint, intrinsics, marker, mem, ops, ptr, sync};