rust-analyzer/crates/hir-expand/src
Florian Diebold c80c34867f 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 13:45:19 +02:00
..
ast_id_map.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
builtin_attr_macro.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
builtin_derive_macro.rs minor: Simplify 2022-05-20 16:52:10 +02:00
builtin_fn_macro.rs Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, r=jonas-schievink" 2022-05-13 15:08:14 +02:00
db.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
eager.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
fixup.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
hygiene.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lib.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
mod_path.rs internal: Simplify 2022-06-23 20:08:29 +02:00
name.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
proc_macro.rs Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
quote.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00