Skip to content

Commit 2e7f4f9

Browse files
committed
Fix nits
1 parent 0b541be commit 2e7f4f9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

chalk-derive/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ pub fn derive_fold(item: TokenStream) -> TokenStream {
3434
&self,
3535
folder: &mut dyn Folder < 'i, #arg, #arg >,
3636
binders: usize,
37-
) -> ::chalk_engine::fallible::Fallible<Self::Result>
38-
where
39-
#arg: 'i,
40-
{
37+
) -> ::chalk_engine::fallible::Fallible<Self::Result> {
4138
#body
4239
}
4340
}

chalk-ir/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,16 +952,12 @@ pub struct ProgramClauseImplication<I: Interner> {
952952
pub conditions: Goals<I>,
953953
}
954954

955-
#[derive(Clone, PartialEq, Eq, Hash)]
955+
#[derive(Clone, PartialEq, Eq, Hash, HasInterner)]
956956
pub enum ProgramClause<I: Interner> {
957957
Implies(ProgramClauseImplication<I>),
958958
ForAll(Binders<ProgramClauseImplication<I>>),
959959
}
960960

961-
impl<I: Interner> HasInterner for ProgramClause<I> {
962-
type Interner = I;
963-
}
964-
965961
impl<I: Interner> ProgramClause<I> {
966962
pub fn into_from_env_clause(self, interner: &I) -> ProgramClause<I> {
967963
match self {

0 commit comments

Comments
 (0)