diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-09 10:26:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-09 10:26:34 +0000 |
| commit | d70ea759b3e6945749ee75fed088dc0a34f1ed26 (patch) | |
| tree | 1310d5153540cd3913ead577c576b03e164cc9a2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 4924072493393ae84b77250d53c6880a060c79cb (diff) | |
| parent | 2537ad0d9e53933a9c5a54ec78ea89d5a025de8b (diff) | |
| download | rust-d70ea759b3e6945749ee75fed088dc0a34f1ed26.tar.gz rust-d70ea759b3e6945749ee75fed088dc0a34f1ed26.zip | |
Merge #11663
11663: Internal: Add hir_def::MacroId, add Macro{Id} to ModuleDef{Id} r=Veykril a=Veykril
With this we can now handle macros like we handle ModuleDefs making them work more like other definitions and allowing us to remove a bunch of special cases. This also enables us to track the modules these macros are defined in, instead of only recording the crate they come from.
Introduces a new class of `MacroId`s (for each of the 3 macro kinds) into `hir_def`. We can't reuse `MacroDefId` as that is defined in `hir_expand` which doesn't know of modules, so now we have two different macro ids, this unfortunately requires some back and forth mapping between the two via database accesses which I hope won't be too expensive.
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
