-
Notifications
You must be signed in to change notification settings - Fork 904
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
rustfmt fails on Rust 2018 "path clarity" submodules #3427
Comments
The rustc parser uses |
…rom_file, r=Centril Expose new_sub_parser_from_file This function is useful when external tools like rustfmt want to parse internal files without parsing a whole crate. cc rust-lang/rustfmt#3427.
I originally reported this in #2407, but on further reflection I think it deserves its own issue.
rustfmt
fails for Rust 2018 submodules that don't usemod.rs
(because of path clarity). Example:For clarity, the file structure is:
Here,
foo.rs
is the Rust 2018 equivalent of Rust 2015'sfoo/mod.rs
.The text was updated successfully, but these errors were encountered: