]> git.lizzy.rs Git - rust.git/commit
Resolve `macro-error` diagnostics on asm & llvm_asm
authorlf- <lf-@users.noreply.github.com>
Tue, 15 Dec 2020 09:05:20 +0000 (01:05 -0800)
committerlf- <lf-@users.noreply.github.com>
Tue, 15 Dec 2020 09:06:53 +0000 (01:06 -0800)
commit090a59970df049bcb3d8c232b6ea6d77101c9853
treefefe6eeeb5f1007b50260b6b812fd596faadaf20
parent34f7b5383af61d8896c97e407888cfde2ba35350
Resolve `macro-error` diagnostics on asm & llvm_asm

We currently stub these out as returning unit.

This fixes spurious RA diagnostics in the following:
```rust
unsafe { asm!(""); llvm_asm!(""); }
```
crates/hir_expand/src/builtin_macro.rs
crates/hir_expand/src/name.rs