two runs required on imports with leading :: #3943
Labels
a-imports
`use` syntax
bug
Panic, non-idempotency, invalid code, etc.
only-with-option
requires a non-default option value to reproduce
Formatting can take two runs when imports are using absolute paths and include leading
::
(when using the 2018 edition config option)Original source:
1st formatting result:
And then second formatting run to get the final result:
Seems to be related to the first run reducing
::{Foo}
to::Foo
but without fully sorting/reordering the set of imports, and then the second run sorting them to finish formatting.The text was updated successfully, but these errors were encountered: