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
..
2020-03-13 18:02:04 +01:00
2020-03-11 11:04:02 +08:00
2020-03-13 13:04:32 +01:00
2020-03-15 12:15:09 +00:00
2020-03-12 02:00:56 +08:00
2020-03-14 14:25:51 +08:00
2020-03-15 12:15:09 +00:00
2020-03-09 08:56:58 +00:00
2020-03-13 13:54:14 +01:00
2020-03-13 13:54:14 +01:00
2020-03-13 14:01:29 +00:00
2020-03-13 12:20:42 +01:00