aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src/name.rs
diff options
context:
space:
mode:
authorlf- <[email protected]>2020-12-15 09:05:20 +0000
committerlf- <[email protected]>2020-12-15 09:06:53 +0000
commit090a59970df049bcb3d8c232b6ea6d77101c9853 (patch)
treefefe6eeeb5f1007b50260b6b812fd596faadaf20 /crates/hir_expand/src/name.rs
parent34f7b5383af61d8896c97e407888cfde2ba35350 (diff)
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!(""); } ```
Diffstat (limited to 'crates/hir_expand/src/name.rs')
-rw-r--r--crates/hir_expand/src/name.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_expand/src/name.rs b/crates/hir_expand/src/name.rs
index 6ec5ca0a9..69d8e6803 100644
--- a/crates/hir_expand/src/name.rs
+++ b/crates/hir_expand/src/name.rs
@@ -199,6 +199,8 @@ pub mod known {
199 format_args_nl, 199 format_args_nl,
200 env, 200 env,
201 option_env, 201 option_env,
202 llvm_asm,
203 asm,
202 // Builtin derives 204 // Builtin derives
203 Copy, 205 Copy,
204 Clone, 206 Clone,