]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Support resolving non-trivial bounds from parent generic contexts
authorMatt Corallo <git@bluematt.me>
Sun, 31 Oct 2021 23:27:11 +0000 (23:27 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Nov 2021 16:54:45 +0000 (16:54 +0000)
c-bindings-gen/src/types.rs

index 14fd918e2be81cb267a01f08f18206bf0bbd1b7b..9f4d6a039569560620380c00e1625910250cf8df 100644 (file)
@@ -371,8 +371,8 @@ impl<'a, 'b, 'c: 'a + 'b> ResolveType<'c> for Option<&GenericTypes<'a, 'b>> {
                                }
                                _ => {},
                        }
-               }
-               ty
+                       us.parent.resolve_type(ty)
+               } else { ty }
        }
 }