Skip to content

Commit ebe62c2

Browse files
committed
Auto merge of #622 - jackh726:issue_621, r=nikomatsakis
Don't panic on unimplemented types for auto traits Closes #621
2 parents 9b581ad + 9663ae0 commit ebe62c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chalk-solve/src/clauses.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ pub fn push_auto_trait_impls<I: Interner>(
164164
push_auto_trait_impls_generator_witness(builder, auto_trait_id, generator_id);
165165
}
166166

167+
// Unimplemented
168+
TypeName::OpaqueType(_) => {}
169+
TypeName::AssociatedType(_) => {}
170+
167171
// app_ty implements AutoTrait if all constituents of app_ty implement AutoTrait
168172
_ => {
169173
let conditions = constituent_types(builder.db, app_ty)

0 commit comments

Comments
 (0)