rust/crates/hir/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
..
semantics fix: Don't create hir::Locals from const path patterns 2022-04-09 01:08:13 +02:00
attrs.rs Move hir to new MacroId 2022-03-08 23:51:48 +01:00
db.rs Rename intern_macro -> intern_macro_call 2021-11-14 16:25:47 +01:00
diagnostics.rs Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
display.rs fix: Fix uncorrect use of double braces in HirDisplay implementations 2022-05-02 12:39:38 +02:00
from_id.rs fix clippy::useless_conversion 2022-03-12 16:50:49 +01:00
has_source.rs fix(ide-db): correct single-file module rename 2022-05-28 15:07:22 +03:00
lib.rs Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
semantics.rs internal: Simplify some completions 2022-06-20 21:55:33 +02:00
source_analyzer.rs the offset used for the completion cursor should always be relative to the original file and not to the marco file 2022-06-16 20:34:37 +08:00
symbols.rs fix: properly import all types of macros with #[macro_use] again 2022-03-23 14:34:27 +01:00