File tree Expand file tree Collapse file tree 7 files changed +695
-18
lines changed
doc/unstable-book/src/library-features
librustc_error_codes/error_codes Expand file tree Collapse file tree 7 files changed +695
-18
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -1293,30 +1293,29 @@ pub(crate) mod builtin {
12931293 /// [unstable book]: ../unstable-book/library-features/asm.html
12941294 #[ unstable(
12951295 feature = "asm" ,
1296- issue = "70173 " ,
1296+ issue = "72016 " ,
12971297 reason = "inline assembly is not stable enough for use and is subject to change"
12981298 ) ]
12991299 #[ rustc_builtin_macro]
13001300 #[ macro_export]
13011301 macro_rules! asm {
1302- ( "assembly template"
1303- : $( "output" ( operand) , ) *
1304- : $( "input" ( operand) , ) *
1305- : $( "clobbers" , ) *
1306- : $( "options" , ) * ) => {
1302+ ( "assembly template" ,
1303+ $( operands, ) *
1304+ $( options( $( option) ,* ) ) ?
1305+ ) => {
13071306 /* compiler built-in */
13081307 } ;
13091308 }
13101309
1311- /// Inline assembly.
1310+ /// LLVM-style inline assembly.
13121311 ///
13131312 /// Read the [unstable book] for the usage.
13141313 ///
13151314 /// [unstable book]: ../unstable-book/library-features/llvm-asm.html
13161315 #[ unstable(
13171316 feature = "llvm_asm" ,
13181317 issue = "70173" ,
1319- reason = "inline assembly is not stable enough for use and is subject to change "
1318+ reason = "LLVM-style inline assembly will never be stabilized, prefer using asm! instead "
13201319 ) ]
13211320 #[ rustc_builtin_macro]
13221321 #[ macro_export]
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ llvm_asm!("nop" "nop");
77```
88
99Considering that this would be a long explanation, we instead recommend you
10- take a look at the [ ` asm ` ] chapter of the Unstable book:
10+ take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
1111
12- [ asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/asm.html
12+ [ llvm_asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm- asm.html
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ llvm_asm!("nop" : "r"(a));
88```
99
1010Considering that this would be a long explanation, we instead recommend you
11- take a look at the [ ` asm ` ] chapter of the Unstable book:
11+ take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
1212
13- [ asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/asm.html
13+ [ llvm_asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm- asm.html
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ llvm_asm!("xor %eax, %eax"
1111```
1212
1313Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` asm ` ] chapter of the Unstable book:
14+ take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
1515
16- [ asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/asm.html
16+ [ llvm_asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm- asm.html
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ llvm_asm!("xor %eax, %eax"
1111```
1212
1313Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` asm ` ] chapter of the Unstable book:
14+ take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
1515
16- [ asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/asm.html
16+ [ llvm_asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm- asm.html
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ llvm_asm!("mov $$0x200, %eax"
1111```
1212
1313Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` asm ` ] chapter of the Unstable book:
14+ take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
1515
16- [ asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/asm.html
16+ [ llvm_asm ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm- asm.html
You can’t perform that action at this time.
0 commit comments