-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meet panic when execute cargo fmt #6448
Comments
@atenjin if you can't share the code can you at least create a minimal reproduction? If not then there's nothing the team can do to help |
it's opensouce for now, this is the link, branch in the root dir, or enter dir |
It would be a great help if you could narrow down which file is being formatted when the panic occurs |
I can not ensure which file, but I can ensure in crate |
I tested, you can enter dir |
It's possible that the error is in one of the modules that |
#[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config>
where
T::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,
<<T as Config>::Extrinsic as Extrinsic>::SignaturePayload: SignaturePayloadExt,
<<<T as Config>::Extrinsic as Extrinsic>::SignaturePayload as SignaturePayload>::SignatureAddress: TryIntoEphPubKey,
{
ZkLoginExecuted { result: DispatchResult },
} This part, I copy it to a empty project and execute format can replay Especially, this line is the reason to cause this panic:
|
Thank you for taking the time to look into this. After reviewing the snippet and the panic details this is definitely a duplicate of #5738 |
When I execute cargo fmt in the root for my project, I meet this following error:
My
rustfmt.toml
isrustc version: 1.86.0-nightly (b1a7dfb91 2025-01-10)
platform: x86_64-unknown-linux-gnu
rustc-ice-2025-01-16T15_39_37-1352442.txt
Sorry for my code is private now, can not share with you.
Even I switch to stable toolchain, it still print same error:
The text was updated successfully, but these errors were encountered: