diff options
author | Florian Diebold <[email protected]> | 2021-04-09 13:33:03 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-09 13:33:31 +0100 |
commit | 8a2c4820821a9b266ed979ed9321431362cdb1b3 (patch) | |
tree | 2cdda87caaacd9ad6df034a25192ece0b0faaf34 /crates/hir_ty/src/interner.rs | |
parent | 2f02977e56a44a5f78576a25547672cd8f910f13 (diff) |
More cleanups
Diffstat (limited to 'crates/hir_ty/src/interner.rs')
-rw-r--r-- | crates/hir_ty/src/interner.rs | 9 |
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 { | |||
412 | impl chalk_ir::interner::HasInterner for Interner { | 412 | impl chalk_ir::interner::HasInterner for Interner { |
413 | type Interner = Self; | 413 | type Interner = Self; |
414 | } | 414 | } |
415 | |||
416 | #[macro_export] | ||
417 | macro_rules! has_interner { | ||
418 | ($t:ty) => { | ||
419 | impl HasInterner for $t { | ||
420 | type Interner = crate::Interner; | ||
421 | } | ||
422 | }; | ||
423 | } | ||