rust/crates/hir/src
bors[bot] f4929fa9cc
Merge #6901
6901: Temp fixes panic caused by no ast for proc-macro r=maklad a=edwin0cheng

There are some panic when hover/goto definition for proc-macro. It is because in current design, we don't have `ast-node` for proc-macro and then it trigger [this](479d1f7eec/crates/hir/src/has_source.rs (L116)) line to panic.

This PR is a temp fix for all of these similar to bd4c352831/crates/completion/src/render/macro_.rs (L42)

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-12-18 02:30:51 +00:00
..
semantics Make macro def krate mandatory 2020-12-15 20:33:05 +01:00
attrs.rs Remove hir_def/docs.rs module 2020-12-07 19:58:17 +01:00
code_model.rs Merge #6901 2020-12-18 02:30:51 +00:00
db.rs Remove module_lang_items 2020-12-17 00:26:01 +01:00
diagnostics.rs Format code 2020-12-08 19:25:21 +00:00
from_id.rs Rename ImplDef -> Impl 2020-12-17 14:36:15 +03:00
has_source.rs Rename ImplDef -> Impl 2020-12-17 14:36:15 +03:00
lib.rs Rename ImplDef -> Impl 2020-12-17 14:36:15 +03:00
semantics.rs Rename ImplDef -> Impl 2020-12-17 14:36:15 +03:00
source_analyzer.rs Improve code structure 2020-12-11 17:06:21 +03:00