aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/interner.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-09 13:33:03 +0100
committerFlorian Diebold <[email protected]>2021-04-09 13:33:31 +0100
commit8a2c4820821a9b266ed979ed9321431362cdb1b3 (patch)
tree2cdda87caaacd9ad6df034a25192ece0b0faaf34 /crates/hir_ty/src/interner.rs
parent2f02977e56a44a5f78576a25547672cd8f910f13 (diff)
More cleanups
Diffstat (limited to 'crates/hir_ty/src/interner.rs')
-rw-r--r--crates/hir_ty/src/interner.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/hir_ty/src/interner.rs b/crates/hir_ty/src/interner.rs
index 02e26c04e..a1656115d 100644
--- a/crates/hir_ty/src/interner.rs
+++ b/crates/hir_ty/src/interner.rs
@@ -412,3 +412,12 @@ impl chalk_ir::interner::Interner for Interner {
412impl chalk_ir::interner::HasInterner for Interner { 412impl chalk_ir::interner::HasInterner for Interner {
413 type Interner = Self; 413 type Interner = Self;
414} 414}
415
416#[macro_export]
417macro_rules! has_interner {
418 ($t:ty) => {
419 impl HasInterner for $t {
420 type Interner = crate::Interner;
421 }
422 };
423}