diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-18 15:13:03 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-18 15:13:03 +0000 |
commit | faff44b10931e6a6d31a9783994f9b8e0125cb9d (patch) | |
tree | cecbf9cb7ee8b6706d2d70aeb04bbf67a6c43ac0 /crates/hir_expand/src/eager.rs | |
parent | 3ab9b39dd47d99ffd97f485c27f38b8944e12a3e (diff) | |
parent | c05a1a6e37156b956380d57049a72cfe6f21095d (diff) |
Merge #8088
8088: Store an `AstId` for procedural macros r=jonas-schievink a=jonas-schievink
Point `HasSource` to the `ast::Fn`, and go to it in `TryToNav`.
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_expand/src/eager.rs')
-rw-r--r-- | crates/hir_expand/src/eager.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs index ddadaffd3..04f374a29 100644 --- a/crates/hir_expand/src/eager.rs +++ b/crates/hir_expand/src/eager.rs | |||
@@ -209,7 +209,7 @@ fn eager_macro_recur( | |||
209 | MacroDefKind::Declarative(_) | 209 | MacroDefKind::Declarative(_) |
210 | | MacroDefKind::BuiltIn(..) | 210 | | MacroDefKind::BuiltIn(..) |
211 | | MacroDefKind::BuiltInDerive(..) | 211 | | MacroDefKind::BuiltInDerive(..) |
212 | | MacroDefKind::ProcMacro(_) => { | 212 | | MacroDefKind::ProcMacro(..) => { |
213 | let res = lazy_expand(db, &def, curr.with_value(child.clone()), krate); | 213 | let res = lazy_expand(db, &def, curr.with_value(child.clone()), krate); |
214 | let val = diagnostic_sink.expand_result_option(res)?; | 214 | let val = diagnostic_sink.expand_result_option(res)?; |
215 | 215 | ||