File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -524,16 +524,13 @@ impl<I: Interner> Zip<I> for FnSubst<I> {
524524 b : & Self ,
525525 ) -> Fallible < ( ) > {
526526 let interner = zipper. interner ( ) ;
527- if a. 0 . len ( interner) != b. 0 . len ( interner) {
528- return Err ( NoSolution ) ;
529- }
530527 // Parameters
531- for ( a , b ) in a . 0 . as_slice ( interner ) [ ..a . 0 . len ( interner ) - 1 ]
532- . iter ( )
533- . zip ( b . 0 . as_slice ( interner ) [ ..b . 0 . len ( interner ) - 1 ] . iter ( ) )
534- {
535- Zip :: zip_with ( zipper , variance . xform ( Variance :: Contravariant ) , a , b ) ? ;
536- }
528+ Zip :: zip_with (
529+ zipper ,
530+ variance . xform ( Variance :: Contravariant ) ,
531+ & a . 0 . as_slice ( interner ) [ ..a . 0 . len ( interner ) - 1 ] ,
532+ & b . 0 . as_slice ( interner ) [ ..b . 0 . len ( interner ) - 1 ] ,
533+ ) ? ;
537534 // Return type
538535 Zip :: zip_with (
539536 zipper,
You can’t perform that action at this time.
0 commit comments