Skip to content

Lint against named asm labels#87324

Merged
bors merged 8 commits intorust-lang:masterfrom
asquared31415:named-asm-labels
Aug 14, 2021
Merged

Lint against named asm labels#87324
bors merged 8 commits intorust-lang:masterfrom
asquared31415:named-asm-labels

Conversation

@asquared31415
Copy link
Copy Markdown
Contributor

This adds a deny-by-default lint to prevent the use of named labels in inline asm!. Without a solution to #81088 about whether the compiler should rewrite named labels or a special syntax for labels, a lint against them should prevent users from writing assembly that could break for internal compiler reasons, such as inlining or anything else that could change the number of actual inline assembly blocks emitted.

This does not resolve the issue with rewriting labels, that still needs a decision if the compiler should do any more work to try to make them work.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants