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
// max_width here is 100// fn_call_width here is 90mod a {// max_width here is 96// fn_call_width here is 90macro_rules! b {() => {// max_width here is 88// fn_call_width here is 90};}}
Uh oh!
There was an error while loading. Please reload this page.
When running
cargo fmt
, I get the following warning message printed out to my terminal:rust version 1.78.0-nightly (ee9c7c940 2024-02-14)
The following macro somehow triggers the warning:
When you have a
.rustfmt.toml
config set up file like this:Increasing max_width to 102, or changing the macro to the following will make the warning go away:
See this repo for how to reproduce:
https://github.com/bergkvist/rustfmt-bug
The text was updated successfully, but these errors were encountered: