Store derivable ability members statically

This commit is contained in:
Ayaz Hafiz 2022-07-19 16:52:32 -04:00
parent 10001876bb
commit 6035e45f25
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 13 additions and 9 deletions

View file

@ -86,7 +86,7 @@ impl PendingDerivesTable {
} in derives
{
debug_assert!(
ability.is_builtin_ability(),
ability.is_derivable_ability(),
"Not a builtin - should have been caught during can"
);
let derive_key = RequestedDeriveKey { opaque, ability };