-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #104634 - RalfJung:core-arch, r=Mark-Simulacrum
move core::arch into separate file This works around #104633 which otherwise leads to warnings in miri-test-libstd.
- Loading branch information
Showing
2 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#![doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")] | ||
|
||
#[stable(feature = "simd_arch", since = "1.27.0")] | ||
pub use crate::core_arch::arch::*; | ||
|
||
/// Inline assembly. | ||
/// | ||
/// Refer to [rust by example] for a usage guide and the [reference] for | ||
/// detailed information about the syntax and available options. | ||
/// | ||
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html | ||
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html | ||
#[stable(feature = "asm", since = "1.59.0")] | ||
#[rustc_builtin_macro] | ||
pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) { | ||
/* compiler built-in */ | ||
} | ||
|
||
/// Module-level inline assembly. | ||
/// | ||
/// Refer to [rust by example] for a usage guide and the [reference] for | ||
/// detailed information about the syntax and available options. | ||
/// | ||
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html | ||
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html | ||
#[stable(feature = "global_asm", since = "1.59.0")] | ||
#[rustc_builtin_macro] | ||
pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) { | ||
/* compiler built-in */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters