-
Notifications
You must be signed in to change notification settings - Fork 924
thread 'main' panicked at lib.rs:376:47 because of empty code block in doc comment #4793
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
Comments
Important to note that rustup is the recommended and preferred way of getting the right components onto your system, but if you're going to download the pre-built binaries then I'd think for mingw you'd want to use rustfmt_windows-x86_64-gnu_v1.4.36.zip and not the msvc one, no? |
Thanks. The panic and line info is a reference to rustfmt, not your source input, and is related to some extra processing required in cases like formatting code blocks in comments. Could you please try to distill your input down into a smaller reproducible example? Even getting down to a single file would be a helpful starting point as opposed to an entire project. You may want to try running with |
Everything is fine after removing: sdl-ast/src/ast/loops/mod.rs So I think
gives this panic |
That's super helpful, thanks so much for reducing that to a minimal example! |
I get pretty much the same panic with some (broken) |
going to close this in favor of #5234, as the issue is clearer in that issue |
Describe the bug
It's very strange.
There is no
fn main() {}
in my project, nor 376 lines inlib.rs
To Reproduce
The project can be found here: sdl-rs/sdl-ast@fe2daf4
Expected behavior
Meta
v1.4.36
rustfmt_windows-x86_64-msvc_v1.4.36
Run
RUST_BACKTRACE=full cargo fmt
in MINGW64The text was updated successfully, but these errors were encountered: