rust/crates/hir-def/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
..
body fix: f32 and f64 representation during lowering 2022-05-26 20:03:05 +05:30
item_tree remove inherit_visibility test case in item_tree 2022-06-14 23:24:48 +08:00
macro_expansion_tests feat: Support $$ in macros. 2022-06-02 21:48:28 +02:00
nameres Improve proc macro errors a bit 2022-06-24 13:45:19 +02:00
path style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
adt.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
attr.rs fix: add docs and remove unnecessary check 2022-05-05 13:41:33 +09:00
body.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
builtin_attr.rs Remove handling of #[rustc_deprecated] 2022-05-04 22:25:58 -04:00
builtin_type.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
child_by_source.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
data.rs check if the container is trait and inherit the visibility 2022-06-15 07:47:06 +08:00
db.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
dyn_map.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
expr.rs fix: float display impl 2022-05-31 10:13:03 +05:30
find_path.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
generics.rs internal: Simplify 2022-06-23 20:08:29 +02:00
import_map.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
intern.rs internal: Update dashmap and freeze its version 2022-06-10 16:19:52 +02:00
item_scope.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
item_tree.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
keys.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lang_item.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lib.rs revert hir-def lib.rs 2022-06-15 07:48:34 +08:00
macro_expansion_tests.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
nameres.rs Use the correct crates proc-macro loading error message 2022-06-15 18:06:33 +02:00
path.rs internal: Simplify 2022-06-23 20:08:29 +02:00
per_ns.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
resolver.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
src.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
test_db.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
trace.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
type_ref.rs internal: Simplify 2022-06-23 20:08:29 +02:00
visibility.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00