jonahgao opened a new issue, #9281:
URL: https://github.com/apache/arrow-datafusion/issues/9281

   ### Describe the bug
   
   Found in #9271 and occurred in the 'datafusion-functions' crate.
   
   `cargo-fmt` starts at the crate root and traverses submodules to find files, 
but it does not parse modules declared inside macros, thus files within these 
modules will not be processed. Additionally, only certain macros are 
exceptions, such as `cfg_if`.
   
   Upstream issue: https://github.com/rust-lang/rustfmt/issues/3253
   
   ### To Reproduce
   
   Run the shell commands under the repo directory.
   ```sh
   rustfmt datafusion/functions/src/*/*.rs
   git status
   ```
   
   And here is also a minimal 
[repo](https://github.com/jonahgao/fmt-test/blob/master/src/mymod.rs) to 
reproduce it.
   
   ### Expected behavior
   
   All rust files should be formatted.
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to