rust/crates/ra_hir_def
bors[bot] efa72c899d
Merge #3591
3591: Support local macro_rules r=matklad a=edwin0cheng

This PR implement local `macro_rules` in function body, by adding following things:

1. While lowering, add a `MacroDefId` in body's `ItemScope` as a textual legacy macro. 
2. Make `Expander::enter_expand` search with given `ItemScope`.
3. Make `Resolver::resolve_path_as_macro` search with `LocalItemScope`.

Fix #2181

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-15 12:15:09 +00:00
..
src Merge #3591 2020-03-15 12:15:09 +00:00
Cargo.toml Updates insta to 0.15.0 and bumps console to 0.10.0 2020-03-09 10:28:30 -04:00