bors[bot] daffdd8674
Merge #3179
3179: Introduce AsMacroCall trait r=matklad a=edwin0cheng

This PR introduce `AsMacroCall` trait to help convert `ast::MacroCall` to `MacroCallId`. The main goal here is to centralize various conversions to single place and make implementing eager macro calls without further ado.

```rust
pub trait AsMacroCall {
    fn as_call_id(
        &self,
        db: &(impl db::DefDatabase + AstDatabase),
        resolver: impl Fn(path::ModPath) -> Option<MacroDefId>,
    ) -> Option<MacroCallId>;
}
```

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-02-17 08:38:09 +00:00
..
2020-02-12 23:27:19 +02:00
2020-02-16 18:30:48 +01:00
2020-02-05 12:47:28 +02:00
2020-02-17 12:57:24 +08:00
2020-02-17 12:57:24 +08:00
2020-02-16 12:58:20 +01:00
2020-02-16 17:06:01 +01:00
2020-02-15 23:23:44 +01:00
2020-02-16 18:04:08 +01:00
2020-02-16 18:04:08 +01:00
2020-02-12 23:15:48 +01:00
2020-02-10 01:57:43 +02:00
2020-01-30 13:17:56 +01:00