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

Resolve macro-error diagnostics on asm & llvm_asm #6889

Merged
merged 1 commit into from Dec 15, 2020
Merged

Resolve macro-error diagnostics on asm & llvm_asm #6889

merged 1 commit into from Dec 15, 2020

Conversation

lf-
Copy link
Contributor

@lf- lf- commented Dec 15, 2020

We currently stub these out as returning unit.

This fixes spurious RA macro-error diagnostics introduced somewhere around 0.2.400 in the following:

unsafe { asm!(""); llvm_asm!(""); }

I'd ideally like to write a unit test for this, but I'm not familiar with where the tests for hir_expand are.

Thanks to @edwin0cheng for help on resolving this issue.

We currently stub these out as returning unit.

This fixes spurious RA diagnostics in the following:
```rust
unsafe { asm!(""); llvm_asm!(""); }
```
@matklad
Copy link
Member

matklad commented Dec 15, 2020

bors r+

👍

@bors
Copy link
Contributor

bors bot commented Dec 15, 2020

@bors bors bot merged commit a9d1920 into rust-lang:master Dec 15, 2020
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.

None yet

2 participants