Skip to content

Commit d50492d

Browse files
authored
Rollup merge of #92611 - Amanieu:asm-reference, r=m-ou-se
Add links to the reference and rust by example for asm! docs and lints These were previously removed in #91728 due to broken links. cc ``@ehuss`` since this updates the rust-by-example submodule
2 parents 6b8c33d + 725a732 commit d50492d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,25 @@ pub mod arch {
374374
pub use crate::core_arch::arch::*;
375375

376376
/// Inline assembly.
377+
///
378+
/// Refer to [rust by example] for a usage guide and the [reference] for
379+
/// detailed information about the syntax and available options.
380+
///
381+
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
382+
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
377383
#[stable(feature = "asm", since = "1.59.0")]
378384
#[rustc_builtin_macro]
379385
pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
380386
/* compiler built-in */
381387
}
382388
383389
/// Module-level inline assembly.
390+
///
391+
/// Refer to [rust by example] for a usage guide and the [reference] for
392+
/// detailed information about the syntax and available options.
393+
///
394+
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
395+
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
384396
#[stable(feature = "global_asm", since = "1.59.0")]
385397
#[rustc_builtin_macro]
386398
pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) {

0 commit comments

Comments
 (0)