Auto merge of #117372 - Amanieu:stdarch_update, r=Mark-Simulacrum
Update stdarch submodule Splits up #27731 into multiple tracking issues. Closes #27731
This commit is contained in:
commit
ea37e8091f
12 changed files with 105 additions and 32 deletions
|
@ -428,10 +428,6 @@ pub mod primitive;
|
|||
deprecated_in_future
|
||||
)]
|
||||
#[allow(rustdoc::bare_urls)]
|
||||
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
|
||||
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
|
||||
#[allow(clashing_extern_declarations)]
|
||||
#[unstable(feature = "stdsimd", issue = "48556")]
|
||||
mod core_arch;
|
||||
|
||||
#[stable(feature = "simd_arch", since = "1.27.0")]
|
||||
|
|
|
@ -7,9 +7,12 @@ use core::arch::arm::*;
|
|||
#[cfg(target_arch = "aarch64")]
|
||||
use core::arch::aarch64::*;
|
||||
|
||||
#[cfg(any(
|
||||
target_arch = "aarch64",
|
||||
all(target_arch = "arm", target_feature = "v7"),
|
||||
#[cfg(all(
|
||||
any(
|
||||
target_arch = "aarch64",
|
||||
all(target_arch = "arm", target_feature = "v7"),
|
||||
),
|
||||
target_endian = "little"
|
||||
))]
|
||||
mod neon {
|
||||
use super::*;
|
||||
|
|
|
@ -262,6 +262,7 @@
|
|||
)]
|
||||
#![cfg_attr(any(windows, target_os = "uefi"), feature(round_char_boundary))]
|
||||
#![cfg_attr(target_os = "xous", feature(slice_ptr_len))]
|
||||
#![cfg_attr(target_family = "wasm", feature(stdarch_wasm_atomic_wait))]
|
||||
//
|
||||
// Language features:
|
||||
// tidy-alphabetical-start
|
||||
|
@ -364,6 +365,11 @@
|
|||
#![feature(panic_unwind)]
|
||||
// tidy-alphabetical-end
|
||||
//
|
||||
// Library features (std_detect):
|
||||
// tidy-alphabetical-start
|
||||
#![feature(stdarch_internal)]
|
||||
// tidy-alphabetical-end
|
||||
//
|
||||
// Only for re-exporting:
|
||||
// tidy-alphabetical-start
|
||||
#![feature(assert_matches)]
|
||||
|
@ -379,7 +385,6 @@
|
|||
#![feature(get_many_mut)]
|
||||
#![feature(lazy_cell)]
|
||||
#![feature(log_syntax)]
|
||||
#![feature(stdsimd)]
|
||||
#![feature(test)]
|
||||
#![feature(trace_macros)]
|
||||
// tidy-alphabetical-end
|
||||
|
@ -618,13 +623,16 @@ pub mod arch {
|
|||
|
||||
#[stable(feature = "simd_aarch64", since = "1.60.0")]
|
||||
pub use std_detect::is_aarch64_feature_detected;
|
||||
#[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")]
|
||||
pub use std_detect::is_arm_feature_detected;
|
||||
#[unstable(feature = "is_riscv_feature_detected", issue = "111192")]
|
||||
pub use std_detect::is_riscv_feature_detected;
|
||||
#[stable(feature = "simd_x86", since = "1.27.0")]
|
||||
pub use std_detect::is_x86_feature_detected;
|
||||
#[unstable(feature = "stdsimd", issue = "48556")]
|
||||
pub use std_detect::{
|
||||
is_arm_feature_detected, is_mips64_feature_detected, is_mips_feature_detected,
|
||||
is_powerpc64_feature_detected, is_powerpc_feature_detected, is_riscv_feature_detected,
|
||||
};
|
||||
#[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
|
||||
pub use std_detect::{is_mips64_feature_detected, is_mips_feature_detected};
|
||||
#[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")]
|
||||
pub use std_detect::{is_powerpc64_feature_detected, is_powerpc_feature_detected};
|
||||
}
|
||||
|
||||
// This was stabilized in the crate root so we have to keep it there.
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
//! These tests just check that the macros are available in std.
|
||||
|
||||
#![cfg_attr(
|
||||
any(
|
||||
all(target_arch = "arm", any(target_os = "linux", target_os = "android")),
|
||||
all(target_arch = "powerpc", target_os = "linux"),
|
||||
all(target_arch = "powerpc64", target_os = "linux"),
|
||||
),
|
||||
feature(stdsimd)
|
||||
all(target_arch = "arm", any(target_os = "linux", target_os = "android")),
|
||||
feature(stdarch_arm_feature_detection)
|
||||
)]
|
||||
#![cfg_attr(
|
||||
all(target_arch = "powerpc", target_os = "linux"),
|
||||
feature(stdarch_powerpc_feature_detection)
|
||||
)]
|
||||
#![cfg_attr(
|
||||
all(target_arch = "powerpc64", target_os = "linux"),
|
||||
feature(stdarch_powerpc_feature_detection)
|
||||
)]
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f4528dd6e85d97bb802240d7cd048b6e1bf72540
|
||||
Subproject commit 5ef6eb42bdcfef6891517a6e4c77a89c18722f18
|
Loading…
Add table
Add a link
Reference in a new issue