Closed as not planned
Description
I have a crate that uses some generated source code that fails whenever I run rustfmt before generating it with the following error
~/Code/rustfmthing (main ✗) rustfmt ./src/main.rs
Error writing files: failed to resolve mod `generated`: /Users/abrisco/Code/rustfmthing/src/generated.rs does not exist
The source file looks like this:
mod generated;
pub fn main() {
generated::greeting();
}
Is there a way to have rustfmt not attempt to resolve modules and instead simply format the file I passed?