This repository was archived by the owner on May 28, 2025. It is now read-only.
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 {
1293
1293
/// [unstable book]: ../unstable-book/library-features/asm.html
1294
1294
#[ unstable(
1295
1295
feature = "asm" ,
1296
- issue = "70173 " ,
1296
+ issue = "72016 " ,
1297
1297
reason = "inline assembly is not stable enough for use and is subject to change"
1298
1298
) ]
1299
1299
#[ rustc_builtin_macro]
1300
1300
#[ macro_export]
1301
1301
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
+ ) => {
1307
1306
/* compiler built-in */
1308
1307
} ;
1309
1308
}
1310
1309
1311
- /// Inline assembly.
1310
+ /// LLVM-style inline assembly.
1312
1311
///
1313
1312
/// Read the [unstable book] for the usage.
1314
1313
///
1315
1314
/// [unstable book]: ../unstable-book/library-features/llvm-asm.html
1316
1315
#[ unstable(
1317
1316
feature = "llvm_asm" ,
1318
1317
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 "
1320
1319
) ]
1321
1320
#[ rustc_builtin_macro]
1322
1321
#[ macro_export]
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ llvm_asm!("nop" "nop");
7
7
```
8
8
9
9
Considering 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:
11
11
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));
8
8
```
9
9
10
10
Considering 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:
12
12
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"
11
11
```
12
12
13
13
Considering 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:
15
15
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"
11
11
```
12
12
13
13
Considering 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:
15
15
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"
11
11
```
12
12
13
13
Considering 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:
15
15
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