Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline-asm: Update for new style #623

Merged
merged 3 commits into from
Jun 22, 2020

Conversation

joshtriplett
Copy link
Member

rust-lang/rust#73364 implemented support for
providing multiple lines of assembly as separate arguments to asm!;
update the blog post to use that new syntax, so that people who find it
will use that style as an example.

rust-lang/rust#73364 implemented support for
providing multiple lines of assembly as separate arguments to `asm!`;
update the blog post to use that new syntax, so that people who find it
will use that style as an example.
@rust-highfive
Copy link

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@joshtriplett
Copy link
Member Author

cc @Amanieu

@XAMPPRocky
Copy link
Member

@joshtriplett LGTM, should I wait for @Amanieu's review or should I just merge it?

@Amanieu
Copy link
Member

Amanieu commented Jun 20, 2020

I don't think we should indent the asm code inside the strings (i.e. keep the labels and instructions on the same indent level).

@joshtriplett
Copy link
Member Author

@Amanieu I don't have a strong preference, I just wanted to show the ability to do so. Happy to change it.

@Amanieu
Copy link
Member

Amanieu commented Jun 21, 2020

You should update the playground link as well.

@joshtriplett
Copy link
Member Author

@Amanieu Good catch, done.

@Amanieu
Copy link
Member

Amanieu commented Jun 21, 2020

LGTM

@XAMPPRocky
Copy link
Member

Thank you for your PR!

@XAMPPRocky XAMPPRocky merged commit f46beea into rust-lang:master Jun 22, 2020
@joshtriplett joshtriplett deleted the inline-asm-multiple-lines branch June 22, 2020 16:59
jackh726 pushed a commit to jackh726/blog.rust-lang.org that referenced this pull request Jul 26, 2021
* inline-asm: Update for new style

rust-lang/rust#73364 implemented support for
providing multiple lines of assembly as separate arguments to `asm!`;
update the blog post to use that new syntax, so that people who find it
will use that style as an example.

* inline-asm: Outdent

* inline asm: Update play link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants