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
I can't find any great documentation on the topic, but the two cases you mention aren't equivalent. The best resource I can link you to are the discussions in #3568, #4681, and rust-lang/rust#60941
A brief summary of the issue is that each import brings different things into scope so converting use foo::{self}; to use foo; could cause compilation problems. rustfmt can't safely make that transformation and leaves the import alone.
is collapsed to:
But this:
is kept as is.
Used
rustfmt
from master (2022 Jun 22) withrustfmt.toml
fromrustfmt
repo.This behavior doesn't look intentional.
The text was updated successfully, but these errors were encountered: