rust/crates
bors 401a71d1d7 Auto merge of #12629 - flodiebold:proc-macro-error-improvement, r=Veykril
fix: Improve proc macro errors a bit

Distinguish between
 - there is no build data (for some reason?)
 - there is build data, but the cargo package didn't build a proc macro dylib
 - there is a proc macro dylib, but it didn't contain the proc macro we expected
 - the name did not resolve to any macro (this is now an
 unresolved_macro_call even for attributes)

I changed the handling of disabled attribute macro expansion to
immediately ignore the macro and report an unresolved_proc_macro,
because otherwise they would now result in loud unresolved_macro_call
errors. I hope this doesn't break anything.

Also try to improve error ranges for unresolved_macro_call / macro_error
by reusing the code for unresolved_proc_macro. It's not perfect but
probably better than before.
2022-06-24 12:27:59 +00:00
..
base-db Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
cfg internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
flycheck internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
hir Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
hir-def Improve comments 2022-06-24 14:19:18 +02:00
hir-expand Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
hir-ty internal: Simplify 2022-06-23 20:08:29 +02:00
ide clarify comment and add autolink test case 2022-06-23 19:02:30 -04:00
ide-assists restrict the assist so that it only appears if the cursor is on the loop keyword 2022-06-11 07:11:56 +08:00
ide-completion fix: completes non exhaustive variant within the defining crate 2022-06-24 00:00:51 +09:00
ide-db fix: inserted imports must come after a shebang if present 2022-06-15 19:42:43 +00:00
ide-diagnostics Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
ide-ssr internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
parser internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc-macro-api Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
proc-macro-srv Auto merge of #12502 - Veykril:deps, r=Veykril 2022-06-10 19:51:04 +00:00
proc-macro-test delete a generated swap file 2022-05-01 10:48:58 +00:00
profile internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
project-model Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
rust-analyzer fix: Fix auto-ref completions inserting into wrong locations 2022-06-20 18:59:57 +02:00
sourcegen internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
stdx internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
syntax internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
test-utils internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs-notify internal: Bump Dependencies 2022-06-10 17:30:02 +02:00