|
313 | 313 | #![feature(panic_internals)]
|
314 | 314 | #![feature(panic_unwind)]
|
315 | 315 | #![feature(pin_static_ref)]
|
| 316 | +#![feature(platform_intrinsics)] |
316 | 317 | #![feature(portable_simd)]
|
317 | 318 | #![feature(prelude_import)]
|
318 | 319 | #![feature(ptr_as_uninit)]
|
@@ -465,8 +466,6 @@ pub use core::pin;
|
465 | 466 | pub use core::ptr;
|
466 | 467 | #[stable(feature = "rust1", since = "1.0.0")]
|
467 | 468 | pub use core::result;
|
468 |
| -#[unstable(feature = "portable_simd", issue = "86656")] |
469 |
| -pub use core::simd; |
470 | 469 | #[unstable(feature = "async_stream", issue = "79024")]
|
471 | 470 | pub use core::stream;
|
472 | 471 | #[stable(feature = "i128", since = "1.26.0")]
|
@@ -513,6 +512,25 @@ pub mod time;
|
513 | 512 | #[unstable(feature = "once_cell", issue = "74465")]
|
514 | 513 | pub mod lazy;
|
515 | 514 |
|
| 515 | +// Pull in `std_float` crate into libstd. The contents of |
| 516 | +// `std_float` are in a different repository: rust-lang/portable-simd. |
| 517 | +#[path = "../../portable-simd/crates/std_float/src/lib.rs"] |
| 518 | +#[allow(missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe)] |
| 519 | +#[allow(rustdoc::bare_urls)] |
| 520 | +#[unstable(feature = "portable_simd", issue = "86656")] |
| 521 | +#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics |
| 522 | +mod std_float; |
| 523 | + |
| 524 | +#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics |
| 525 | +#[doc = include_str!("../../portable-simd/crates/core_simd/src/core_simd_docs.md")] |
| 526 | +#[unstable(feature = "portable_simd", issue = "86656")] |
| 527 | +pub mod simd { |
| 528 | + #[doc(inline)] |
| 529 | + pub use crate::std_float::StdFloat; |
| 530 | + #[doc(inline)] |
| 531 | + pub use core::simd::*; |
| 532 | +} |
| 533 | + |
516 | 534 | #[stable(feature = "futures_api", since = "1.36.0")]
|
517 | 535 | pub mod task {
|
518 | 536 | //! Types and Traits for working with asynchronous tasks.
|
|
0 commit comments