-
Notifications
You must be signed in to change notification settings - Fork 861
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
Internal error when trying to format code with inline block comment #6200
Comments
@Sorseg linking to the file is definitely useful. When you get a chance could you try to create a minimal test case that someone could use to reproduce the issue. |
I was able to boil it down to this struct S {
f: u32,
}
fn main() {
let s = Some(S { f: 42 });
match s {
Some( S{f: /* some special value */3}) => { }
_ => {}
}
}
Is this workable? Thank you for taking a look |
If you set You should see an error similar to this:
|
I believe we'd need to make adjustments in the Lines 385 to 433 in e494418
|
When formatting this file
cargo +nightly fmt
does not modify the file and reports this error:Removing the block comment on this line allows rustfmt to format the file again.
Thank you for maintaining this! 🧡
The text was updated successfully, but these errors were encountered: