

Stabilize asm! and global_asm! by Amanieu · Pull Request #91728 · rust-lang/rust...
source link: https://github.com/rust-lang/rust/pull/91728
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Tracking issue: #72016
It's been almost 2 years since the original RFC was posted and we're finally ready to stabilize this feature!
The main changes in this PR are:
- Removing
asm!
andglobal_asm!
from the prelude as per the decision in #87228. - Stabilizing the
asm
andglobal_asm
features. - Removing the unstable book pages for
asm
andglobal_asm
. The contents are moved to the reference and rust by example.- All links to these pages have been removed to satisfy the link checker. In a later PR these will be replaced with links to the reference or rust by example.
- Removing the automatic suggestion for using
llvm_asm!
instead ofasm!
if you're still using the old syntax, since it doesn't work anymore withasm!
no longer being in the prelude. This only affects code that predates the old LLVM-styleasm!
being renamed tollvm_asm!
. - Updating
stdarch
andcompiler-builtins
. - Updating all the tests.
Recommend
-
12
New issue Add try_insert #247
-
13
Copy link Collaborator rust-log-analyzer c...
-
10
Copy link Member RalfJung comm...
-
11
New issue Add bad_asm_style to HardwiredLints #84068
-
10
New issue Stabilize vec_extend_from_within #84642
-
7
This comment has been hidden.
-
6
Conversation Copy link Contributor
-
5
New issue Fix incorrect register conflict detection in asm! #93868
-
8
@@ -298,54 +299,87 @@ impl InlineAsmReg { arch: InlineAsmArch, targ...
-
6
Conversation Member...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK