Registry Mirror
Skip to content

Conversation

@nagisa

@nagisa nagisa commented Jan 14, 2015

Copy link
Copy Markdown
Member

Fixes #21045

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nick29581

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

@pczarn

pczarn commented Jan 14, 2015

Copy link
Copy Markdown
Contributor

This is worth labelling as a "breaking-change".
For me, concat! works as well, but some people may write code like this:

asm!("nop;"
     "nop;");

@nagisa

nagisa commented Jan 14, 2015

Copy link
Copy Markdown
Member Author

It doesn’t work like that. It will currently only use the last string encountered as the assembly string. See #21045 for details.

EDIT: For all its worth

asm!("nop;
      nop;"); 

works just as fine

@pczarn

pczarn commented Jan 14, 2015

Copy link
Copy Markdown
Contributor

Oh, it's certainly a bug.

@nagisa nagisa changed the title Disallow a form of invalid asm! macro [r+] Disallow a form of invalid asm! macro Jan 14, 2015
@nrc nrc assigned alexcrichton and unassigned nrc Jan 14, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 15, 2015
@bors
bors merged commit 31261fd into rust-lang:master Jan 16, 2015
lnicola pushed a commit to lnicola/rust that referenced this pull request Dec 1, 2025
…-crate-comp

Fix complete after `extern`, add `crate` completion
makai410 pushed a commit to makai410/rust that referenced this pull request Dec 16, 2025
…-crate-comp

Fix complete after `extern`, add `crate` completion
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.

asm!("asdflol" "nop"); compiles

6 participants