diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index 692e42b1c1..015640a3ac 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -791,7 +791,7 @@ impl Accounts { ) } - pub fn load_to_collect_rent_eagerly>( + pub fn load_to_collect_rent_eagerly + std::fmt::Debug>( &self, ancestors: &Ancestors, range: R, diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 6b45dc84bf..959924e036 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -2733,7 +2733,7 @@ impl AccountsDb { where F: Fn(&mut A, Option<(&Pubkey, AccountSharedData, Slot)>), A: Default, - R: RangeBounds, + R: RangeBounds + std::fmt::Debug, { let mut collector = A::default(); self.accounts_index.range_scan_accounts( diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 908e79bf19..af80249f80 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -850,7 +850,7 @@ impl AccountsIndex { ) -> Result<(), ScanError> where F: FnMut(&Pubkey, (&T, Slot)), - R: RangeBounds, + R: RangeBounds + std::fmt::Debug, { { let locked_removed_bank_ids = self.removed_bank_ids.lock().unwrap(); @@ -1073,7 +1073,7 @@ impl AccountsIndex { collect_all_unsorted: bool, ) where F: FnMut(&Pubkey, (&T, Slot)), - R: RangeBounds, + R: RangeBounds + std::fmt::Debug, { self.do_scan_accounts( metric_name, @@ -1098,7 +1098,7 @@ impl AccountsIndex { collect_all_unsorted: bool, ) where F: FnMut(&Pubkey, (&T, Slot)), - R: RangeBounds, + R: RangeBounds + std::fmt::Debug, { // TODO: expand to use mint index to find the `pubkey_list` below more efficiently // instead of scanning the entire range @@ -1291,7 +1291,7 @@ impl AccountsIndex { func: F, ) where F: FnMut(&Pubkey, (&T, Slot)), - R: RangeBounds, + R: RangeBounds + std::fmt::Debug, { // Only the rent logic should be calling this, which doesn't need the safety checks self.do_unchecked_scan_accounts(