Skip to content

Allow rustdoc to handle asm! of foreign architectures#82838

Merged
bors merged 2 commits intorust-lang:masterfrom
Amanieu:rustdoc_asm
Mar 16, 2021
Merged

Allow rustdoc to handle asm! of foreign architectures#82838
bors merged 2 commits intorust-lang:masterfrom
Amanieu:rustdoc_asm

Conversation

@Amanieu
Copy link
Copy Markdown
Member

@Amanieu Amanieu commented Mar 6, 2021

This allows rustdoc to process code containing asm! for architectures other than the current one. Since this never reaches codegen, we just replace target-specific registers and register classes with a dummy one.

Fixes #82869

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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE on nested items when asm! has errors

8 participants