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-14 14:25:51 +08:00
2020-03-02 14:28:34 +01:00
2020-02-21 17:01:19 +01:00
2020-03-14 14:25:51 +08:00
2019-12-13 22:33:38 +01:00
2020-03-15 12:15:09 +00:00
2020-03-07 00:18:04 +01:00
2019-12-12 15:11:57 +01:00
2019-12-06 21:28:05 +01:00
2020-02-21 17:01:19 +01:00
2020-03-09 11:11:59 +01:00
2020-03-05 14:22:31 +01:00
2020-02-29 21:33:15 +01:00
2020-03-09 11:11:59 +01:00
2020-03-04 01:21:14 +08:00
2020-01-28 18:03:24 +02:00
2020-03-09 11:55:43 +01:00
2020-02-04 09:44:31 +00:00
2020-03-14 14:25:51 +08:00
2019-12-20 13:58:09 +01:00
2020-03-11 01:06:01 +08:00
2019-12-21 17:26:28 +01:00
2020-02-07 18:28:10 +01:00
2020-03-14 20:48:36 +01:00