@@ -826,7 +826,7 @@ impl ir::Program {
826
826
program_clauses. extend ( self . struct_data . values ( ) . flat_map ( |d| d. to_program_clauses ( self ) ) ) ;
827
827
program_clauses. extend ( self . trait_data . values ( ) . flat_map ( |d| d. to_program_clauses ( self ) ) ) ;
828
828
program_clauses. extend ( self . associated_ty_data . values ( ) . flat_map ( |d| d. to_program_clauses ( self ) ) ) ;
829
- program_clauses. extend ( self . default_impl_data . iter ( ) . map ( |d| d. to_program_clause ( self ) ) ) ;
829
+ program_clauses. extend ( self . default_impl_data . iter ( ) . map ( |d| d. to_program_clause ( ) ) ) ;
830
830
831
831
for datum in self . impl_data . values ( ) {
832
832
// If we encounter a negative impl, do not generate any rule. Negative impls
@@ -894,18 +894,17 @@ impl ir::DefaultImplDatum {
894
894
/// (Box<Option<MyList<T>>>: Send), WF(Box<Option<MyList<T>>>: Send)
895
895
/// }
896
896
/// ```
897
- fn to_program_clause ( & self , program : & ir :: Program ) -> ir:: ProgramClause {
897
+ fn to_program_clause ( & self ) -> ir:: ProgramClause {
898
898
ir:: ProgramClause {
899
899
implication : self . binders . map_ref ( |bound| {
900
900
ir:: ProgramClauseImplication {
901
901
consequence : bound. trait_ref . clone ( ) . cast ( ) ,
902
902
conditions : {
903
- let wc = bound. accessible_tys . iter ( ) . cloned ( ) . flat_map ( |ty| {
904
- let goal : ir :: DomainGoal = ir:: TraitRef {
903
+ let wc = bound. accessible_tys . iter ( ) . cloned ( ) . map ( |ty| {
904
+ ir:: TraitRef {
905
905
trait_id : bound. trait_ref . trait_id ,
906
906
parameters : vec ! [ ir:: ParameterKind :: Ty ( ty) ] ,
907
- } . cast ( ) ;
908
- goal. expanded ( program)
907
+ }
909
908
} ) ;
910
909
911
910
wc. casted ( ) . collect ( )
0 commit comments