diff options
author | Florian Diebold <[email protected]> | 2021-04-08 13:35:15 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-08 13:36:14 +0100 |
commit | d992736e796501b2a5ae232644924a3dfefede92 (patch) | |
tree | 5af343156b092f0e2a3cd0c26390428d1f1a3983 /crates/hir_ty/src/chalk_cast.rs | |
parent | 8040f4a5e3792f95b3194e21b3f6d375fb7499c5 (diff) |
Remove unused
Diffstat (limited to 'crates/hir_ty/src/chalk_cast.rs')
-rw-r--r-- | crates/hir_ty/src/chalk_cast.rs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/crates/hir_ty/src/chalk_cast.rs b/crates/hir_ty/src/chalk_cast.rs index 8bdd32ad6..f27dee3fd 100644 --- a/crates/hir_ty/src/chalk_cast.rs +++ b/crates/hir_ty/src/chalk_cast.rs | |||
@@ -1,14 +1,8 @@ | |||
1 | //! Implementations of the Chalk `Cast` trait for our types. | 1 | //! Implementations of the Chalk `Cast` trait for our types. |
2 | 2 | ||
3 | use chalk_ir::{ | 3 | use chalk_ir::interner::HasInterner; |
4 | cast::{Cast, CastTo}, | ||
5 | interner::HasInterner, | ||
6 | }; | ||
7 | 4 | ||
8 | use crate::{ | 5 | use crate::{CallableSig, ReturnTypeImplTraits}; |
9 | AliasEq, CallableSig, DomainGoal, GenericArg, GenericArgData, Interner, PolyFnSig, | ||
10 | ReturnTypeImplTraits, TraitRef, Ty, WhereClause, | ||
11 | }; | ||
12 | 6 | ||
13 | macro_rules! has_interner { | 7 | macro_rules! has_interner { |
14 | ($t:ty) => { | 8 | ($t:ty) => { |
@@ -18,15 +12,5 @@ macro_rules! has_interner { | |||
18 | }; | 12 | }; |
19 | } | 13 | } |
20 | 14 | ||
21 | macro_rules! transitive_impl { | ||
22 | ($a:ty, $b:ty, $c:ty) => { | ||
23 | impl CastTo<$c> for $a { | ||
24 | fn cast_to(self, interner: &Interner) -> $c { | ||
25 | self.cast::<$b>(interner).cast(interner) | ||
26 | } | ||
27 | } | ||
28 | }; | ||
29 | } | ||
30 | |||
31 | has_interner!(CallableSig); | 15 | has_interner!(CallableSig); |
32 | has_interner!(ReturnTypeImplTraits); | 16 | has_interner!(ReturnTypeImplTraits); |