rust-analyzer/crates/completion/src/render
Nick Spain 14d0db0759 HasSource::source_old -> HasSource::source for places where proc-macros were special cased
In #6901 some special case handling for proc-macros was introduced to
prevent panicing as they have no AST. Now the new HasSource::source
method is used that returns an option.

Generally this was a pretty trivial change, the only thing of much
interest is that `hir::MacroDef` now implements `TryToNav` not `ToNav`
as this allows us to handle `HasSource::source` now returning an option.
2021-01-02 21:53:52 +11:00
..
builder_ext.rs Reduce some more code duplication 2020-12-22 19:00:38 +01:00
const_.rs Mark HasSource::source_old as deprecated but allow at all call sites 2021-01-02 21:53:51 +11:00
enum_variant.rs Reduce some more code duplication 2020-12-22 19:00:38 +01:00
function.rs Mark HasSource::source_old as deprecated but allow at all call sites 2021-01-02 21:53:51 +11:00
macro_.rs HasSource::source_old -> HasSource::source for places where proc-macros were special cased 2021-01-02 21:53:52 +11:00
pattern.rs Reduce some more code duplication 2020-12-22 19:00:38 +01:00
type_alias.rs Mark HasSource::source_old as deprecated but allow at all call sites 2021-01-02 21:53:51 +11:00