about summary refs log tree commit diff
path: root/docs/dev/debugging.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-17 08:38:09 +0000
committerGitHub <noreply@github.com>2020-02-17 08:38:09 +0000
commitdaffdd86749bc2d62b50ff9e0c869032d7932373 (patch)
tree49405ddd5a074867664141717772c3dd8aece308 /docs/dev/debugging.md
parent32fc890de87e25c342b7c141ef98b07cb1471128 (diff)
parent2d4e79e1e6e39719d566bb58e04a7839588238fe (diff)
downloadrust-daffdd86749bc2d62b50ff9e0c869032d7932373.tar.gz
rust-daffdd86749bc2d62b50ff9e0c869032d7932373.zip
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>
Diffstat (limited to 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions