-
Notifications
You must be signed in to change notification settings - Fork 892
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
Crash when formatting complex file #6137
Comments
Thanks for the report. This feels like it's related to #5738. Here's a smaller reproducible test case: enum MZReaderType<
D: DeconvolutedCentroidLike + Default + From<DeconvolutedPeak> + BuildFromArrayMap=DeconvolutedPeak
> {} |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I'm going to minimize some of these comments as they feel orthogonal to this particular issue, and are representative of issues experienced by a user (@iddm) that have been reported across multiple issues (#2615) @iddm as I stated on #2615 a new issue would be helpful for discussion. The issue seems to be specific to you/your local environment, if libcore was panicking for everyone everywhere then yes, that'd be quite a high priority issue across a number of tools and teams. |
- related issues: rust-lang#5738, rust-lang#6137, rust-lang#6318, rust-lang#6378 - instead of calling unwrap(), restore original snippet when we fail to format generics in enum - we need to propagate this rewrite failure later
cargo fmt
andcargo rustfmt
crash when processing https://github.com/mobiusklein/mzdata/blob/34b2d6feb3201140991fa66b53960ab8141c7ed7/src/io/infer_format.rs. See below for traceback.Toolchain: stable-x86_64-pc-windows-msvc
Version: rustc 1.76.0 (07dca489a 2024-02-04)
Platform: Windows 10
Supposition
This file specifically started to crash the formatter when I added a few large, complex generic algebraic types,
Source
andSink
, and another generic-heavy trait to consume them,MassSpectrometryReadWriteProcess
.Traceback:
Details
The text was updated successfully, but these errors were encountered: