Skip to content

Commit

Permalink
Fix recursive trait bounds exposed with rustc 1.75.0
Browse files Browse the repository at this point in the history
cargo llvm-cov was hitting this issue:

error[E0275]: overflow evaluating the requirement `<Runtime as pallet_grandpa::Config>::KeyOwnerProof == _`

which is documented upstream in
rust-lang/rust#117211
paritytech/polkadot-sdk#2641

and fixed in polkadot-sdk v1.6.0 and later, see
paritytech/polkadot-sdk#2644
  • Loading branch information
atodorov committed Mar 22, 2024
1 parent e24fd01 commit 8bda638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ impl pallet_grandpa::Config for Runtime {
type MaxAuthorities = MaxAuthorities;
type MaxNominators = MaxNominatorRewardedPerValidator;
type MaxSetIdSessionEntries = ();
type KeyOwnerProof = <Historical as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::Proof;
type KeyOwnerProof = sp_session::MembershipProof;
type EquivocationReportSystem =
pallet_grandpa::EquivocationReportSystem<Self, Offences, Historical, ReportLongevity>;
}
Expand Down Expand Up @@ -484,7 +484,7 @@ impl pallet_babe::Config for Runtime {
type EpochDuration = EpochDuration;
type ExpectedBlockTime = ExpectedBlockTime;
type EpochChangeTrigger = pallet_babe::ExternalTrigger;
type KeyOwnerProof = <Historical as KeyOwnerProofSystem<(KeyTypeId, BabeId)>>::Proof;
type KeyOwnerProof = sp_session::MembershipProof;
type EquivocationReportSystem =
pallet_babe::EquivocationReportSystem<Self, Offences, Historical, ReportLongevity>;
type WeightInfo = ();
Expand Down

0 comments on commit 8bda638

Please sign in to comment.