You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding a comment here caused an unrelated diff in a semicolon formatting:
ArgValue::Lit(other) => {
+ // FIXME: add a ui test for this
return Err(syn::Error::new(
other.span(),
"expected boolean, path, or string literal",
- ))+ ));
}
at least it doesn't depend much on the exact position of the comment, just whether it sees one?
e => {
return Err(syn::Error::new(
+ // FIXME: add a UI test for this
input.span(),
format!("Invalid option `{e}` inside `{ident} {input}`"),
- ))+ ));
}
This sort of thing should not matter.
The text was updated successfully, but these errors were encountered:
@workingjubilee If you could take this diff and create a snippet that someone can direclty run rustfmt on to reproduce the issue that would be very helpful. Also, what version of rustfmt are you using, and are you using any configurations?
fnmain(){match x {ArgValue::Lit(other) => {// FIXME: add a ui test for thisreturnErr(syn::Error::new(
other.span(),"expected boolean, path, or string literal",))}}}
the presence/absence of the comma in the initial input influences the output. I believe there's something intentional here but I don't recall the specifics
adding a comment here caused an unrelated diff in a semicolon formatting:
at least it doesn't depend much on the exact position of the comment, just whether it sees one?
This sort of thing should not matter.
The text was updated successfully, but these errors were encountered: