aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/chalk_cast.rs
blob: f27dee3fdedf42c343b4228b3caf294008fcf88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Implementations of the Chalk `Cast` trait for our types.

use chalk_ir::interner::HasInterner;

use crate::{CallableSig, ReturnTypeImplTraits};

macro_rules! has_interner {
    ($t:ty) => {
        impl HasInterner for $t {
            type Interner = crate::Interner;
        }
    };
}

has_interner!(CallableSig);
has_interner!(ReturnTypeImplTraits);