Skip to content
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

formatting takes too long #6397

Closed
ohad-starkware opened this issue Nov 17, 2024 · 1 comment
Closed

formatting takes too long #6397

ohad-starkware opened this issue Nov 17, 2024 · 1 comment

Comments

@ohad-starkware
Copy link

I have an auto-gen artifact such as this:

let op1_as_rel_imm_cond_col225 = ((pc_update_jnz_col15) + (((((((((((((((((((((((((((((((((((((((((((((((((((((((((const_0))
) + (v))) + (c))) + 
(e))) + (f))) + 
(g))) + (h))) + (a))) + (a))) + (a))) + (a))) + (a))) + (a))) +
 (a))) + (ab))) + (dst_limb_15_col37))) + (a))) + (a))) + (a))) + (aa))))) +
  (a))) + (a))) + (dst_limb_23_ol45))) + (a))) + (a))) + (a))) + (a))));
    });

fmt runs forever!
but if you reduce some characters from some variable names, it runs instantly.

@ytmimi
Copy link
Contributor

ytmimi commented Nov 18, 2024

Thanks for the report. I'm fairly certain that this is a duplicate of #6357.

If you're using a nightly rustfmt and you don't mind your autogenerated files not being formatted you can add a //@generated comment to the top of the file and set format_generated_files=false. rustfmt will ignore these files and the process won't take forever to run.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants