Skip to content

Commit 697f54f

Browse files
committed
Auto merge of rust-lang#117372 - Amanieu:stdarch_update, r=Mark-Simulacrum
Update stdarch submodule Splits up rust-lang#27731 into multiple tracking issues. Closes rust-lang#27731
2 parents 78c988f + 7e7fedd commit 697f54f

File tree

11 files changed

+98
-29
lines changed

11 files changed

+98
-29
lines changed

Cargo.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ dependencies = [
3737

3838
[[package]]
3939
name = "ahash"
40-
version = "0.8.6"
40+
version = "0.8.7"
4141
source = "registry+https://github.com/rust-lang/crates.io-index"
42-
checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a"
42+
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
4343
dependencies = [
4444
"cfg-if",
4545
"once_cell",
@@ -6364,18 +6364,18 @@ dependencies = [
63646364

63656365
[[package]]
63666366
name = "zerocopy"
6367-
version = "0.7.28"
6367+
version = "0.7.32"
63686368
source = "registry+https://github.com/rust-lang/crates.io-index"
6369-
checksum = "7d6f15f7ade05d2a4935e34a457b936c23dc70a05cc1d97133dc99e7a3fe0f0e"
6369+
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
63706370
dependencies = [
63716371
"zerocopy-derive",
63726372
]
63736373

63746374
[[package]]
63756375
name = "zerocopy-derive"
6376-
version = "0.7.28"
6376+
version = "0.7.32"
63776377
source = "registry+https://github.com/rust-lang/crates.io-index"
6378-
checksum = "dbbad221e3f78500350ecbd7dfa4e63ef945c05f4c61cb7f4d3f84cd0bba649b"
6378+
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
63796379
dependencies = [
63806380
"proc-macro2",
63816381
"quote",

compiler/rustc_codegen_cranelift/Cargo.lock

+58-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ version = 3
44

55
[[package]]
66
name = "ahash"
7-
version = "0.8.3"
7+
version = "0.8.7"
88
source = "registry+https://github.com/rust-lang/crates.io-index"
9-
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
9+
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
1010
dependencies = [
1111
"cfg-if",
1212
"once_cell",
1313
"version_check",
14+
"zerocopy",
1415
]
1516

1617
[[package]]
@@ -293,6 +294,24 @@ version = "1.18.0"
293294
source = "registry+https://github.com/rust-lang/crates.io-index"
294295
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
295296

297+
[[package]]
298+
name = "proc-macro2"
299+
version = "1.0.75"
300+
source = "registry+https://github.com/rust-lang/crates.io-index"
301+
checksum = "907a61bd0f64c2f29cd1cf1dc34d05176426a3f504a78010f08416ddb7b13708"
302+
dependencies = [
303+
"unicode-ident",
304+
]
305+
306+
[[package]]
307+
name = "quote"
308+
version = "1.0.35"
309+
source = "registry+https://github.com/rust-lang/crates.io-index"
310+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
311+
dependencies = [
312+
"proc-macro2",
313+
]
314+
296315
[[package]]
297316
name = "regalloc2"
298317
version = "0.9.3"
@@ -360,12 +379,29 @@ version = "1.2.0"
360379
source = "registry+https://github.com/rust-lang/crates.io-index"
361380
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
362381

382+
[[package]]
383+
name = "syn"
384+
version = "2.0.47"
385+
source = "registry+https://github.com/rust-lang/crates.io-index"
386+
checksum = "1726efe18f42ae774cc644f330953a5e7b3c3003d3edcecf18850fe9d4dd9afb"
387+
dependencies = [
388+
"proc-macro2",
389+
"quote",
390+
"unicode-ident",
391+
]
392+
363393
[[package]]
364394
name = "target-lexicon"
365395
version = "0.12.12"
366396
source = "registry+https://github.com/rust-lang/crates.io-index"
367397
checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a"
368398

399+
[[package]]
400+
name = "unicode-ident"
401+
version = "1.0.12"
402+
source = "registry+https://github.com/rust-lang/crates.io-index"
403+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
404+
369405
[[package]]
370406
name = "version_check"
371407
version = "0.9.4"
@@ -470,3 +506,23 @@ name = "windows_x86_64_msvc"
470506
version = "0.48.5"
471507
source = "registry+https://github.com/rust-lang/crates.io-index"
472508
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
509+
510+
[[package]]
511+
name = "zerocopy"
512+
version = "0.7.32"
513+
source = "registry+https://github.com/rust-lang/crates.io-index"
514+
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
515+
dependencies = [
516+
"zerocopy-derive",
517+
]
518+
519+
[[package]]
520+
name = "zerocopy-derive"
521+
version = "0.7.32"
522+
source = "registry+https://github.com/rust-lang/crates.io-index"
523+
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
524+
dependencies = [
525+
"proc-macro2",
526+
"quote",
527+
"syn",
528+
]

library/core/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,6 @@ pub mod primitive;
425425
deprecated_in_future
426426
)]
427427
#[allow(rustdoc::bare_urls)]
428-
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
429-
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
430-
#[allow(clashing_extern_declarations)]
431-
#[unstable(feature = "stdsimd", issue = "48556")]
432428
mod core_arch;
433429

434430
#[stable(feature = "simd_arch", since = "1.27.0")]

library/std/src/lib.rs

+13-6
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@
365365
#![feature(panic_unwind)]
366366
// tidy-alphabetical-end
367367
//
368+
// Library features (std_detect):
369+
// tidy-alphabetical-start
370+
#![feature(stdarch_internal)]
371+
// tidy-alphabetical-end
372+
//
368373
// Only for re-exporting:
369374
// tidy-alphabetical-start
370375
#![feature(assert_matches)]
@@ -380,7 +385,6 @@
380385
#![feature(get_many_mut)]
381386
#![feature(lazy_cell)]
382387
#![feature(log_syntax)]
383-
#![feature(stdsimd)]
384388
#![feature(test)]
385389
#![feature(trace_macros)]
386390
// tidy-alphabetical-end
@@ -619,13 +623,16 @@ pub mod arch {
619623

620624
#[stable(feature = "simd_aarch64", since = "1.60.0")]
621625
pub use std_detect::is_aarch64_feature_detected;
626+
#[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")]
627+
pub use std_detect::is_arm_feature_detected;
628+
#[unstable(feature = "is_riscv_feature_detected", issue = "111192")]
629+
pub use std_detect::is_riscv_feature_detected;
622630
#[stable(feature = "simd_x86", since = "1.27.0")]
623631
pub use std_detect::is_x86_feature_detected;
624-
#[unstable(feature = "stdsimd", issue = "48556")]
625-
pub use std_detect::{
626-
is_arm_feature_detected, is_mips64_feature_detected, is_mips_feature_detected,
627-
is_powerpc64_feature_detected, is_powerpc_feature_detected, is_riscv_feature_detected,
628-
};
632+
#[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
633+
pub use std_detect::{is_mips64_feature_detected, is_mips_feature_detected};
634+
#[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")]
635+
pub use std_detect::{is_powerpc64_feature_detected, is_powerpc_feature_detected};
629636
}
630637

631638
// This was stabilized in the crate root so we have to keep it there.

library/std/tests/run-time-detect.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
//! These tests just check that the macros are available in std.
22
33
#![cfg_attr(
4-
any(
5-
all(target_arch = "arm", any(target_os = "linux", target_os = "android")),
6-
all(target_arch = "powerpc", target_os = "linux"),
7-
all(target_arch = "powerpc64", target_os = "linux"),
8-
),
9-
feature(stdsimd)
4+
all(target_arch = "arm", any(target_os = "linux", target_os = "android")),
5+
feature(stdarch_arm_feature_detection)
6+
)]
7+
#![cfg_attr(
8+
all(target_arch = "powerpc", target_os = "linux"),
9+
feature(stdarch_powerpc_feature_detection)
10+
)]
11+
#![cfg_attr(
12+
all(target_arch = "powerpc64", target_os = "linux"),
13+
feature(stdarch_powerpc_feature_detection)
1014
)]
1115

1216
#[test]

library/stdarch

Submodule stdarch updated 119 files

src/tools/miri/tests/pass/intrinsics-x86-aes-vaes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//@ignore-target-wasm32
1010
//@compile-flags: -C target-feature=+aes,+vaes,+avx512f
1111

12-
#![feature(avx512_target_feature, stdsimd)]
12+
#![feature(avx512_target_feature, stdarch_x86_avx512)]
1313

1414
use core::mem::transmute;
1515
#[cfg(target_arch = "x86")]

src/tools/miri/tests/pass/intrinsics-x86-avx512.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq
1111

1212
#![feature(avx512_target_feature)]
13-
#![feature(stdsimd)]
13+
#![feature(stdarch_x86_avx512)]
1414

1515
#[cfg(target_arch = "x86")]
1616
use std::arch::x86::*;

src/tools/tidy/src/deps.rs

+6
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,17 @@ const PERMITTED_CRANELIFT_DEPENDENCIES: &[&str] = &[
460460
"mach",
461461
"memchr",
462462
"object",
463+
"proc-macro2",
464+
"quote",
463465
"regalloc2",
464466
"region",
465467
"rustc-hash",
466468
"slice-group-by",
467469
"smallvec",
468470
"stable_deref_trait",
471+
"syn",
469472
"target-lexicon",
473+
"unicode-ident",
470474
"version_check",
471475
"wasmtime-jit-icache-coherence",
472476
"winapi",
@@ -481,6 +485,8 @@ const PERMITTED_CRANELIFT_DEPENDENCIES: &[&str] = &[
481485
"windows_x86_64_gnu",
482486
"windows_x86_64_gnullvm",
483487
"windows_x86_64_msvc",
488+
"zerocopy",
489+
"zerocopy-derive",
484490
// tidy-alphabetical-end
485491
];
486492

tests/ui/asm/aarch64/type-check-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// only-aarch64
22
// compile-flags: -C target-feature=+neon
33

4-
#![feature(repr_simd, stdsimd, asm_const)]
4+
#![feature(repr_simd, asm_const)]
55

66
use std::arch::aarch64::float64x2_t;
77
use std::arch::{asm, global_asm};

tests/ui/asm/aarch64/type-check-4.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// only-aarch64
22
// compile-flags: -C target-feature=+neon
33

4-
#![feature(repr_simd, stdsimd, asm_const)]
4+
#![feature(repr_simd, asm_const)]
55

66
use std::arch::aarch64::float64x2_t;
77
use std::arch::{asm, global_asm};

0 commit comments

Comments
 (0)