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
fix: skip removing self in imports if they are stacked like use self::self; (#6573)
This prevents an idempotence issue where each run of rustfmt removed another `self` from the import path.
For example, `use self::self::self;` -> `use self::self;` -> `use self;` -> `{import removed}`.
Now `use self::self;`, `use self::self::self`, etc. are all left unchanged, and users will get a compiler error if they try to compile code with these invalid imports.
This change does not impact normalizing `use foo::self;` -> `use foo;`.
0 commit comments