rust/crates/assists/src
bors[bot] 3877421373
Merge #5989
5989: Rewrite import merging r=jonas-schievink a=Veykril

Rewrites how import merging is being handled. It is now a recursive function to properly handle merging of intermediate levels in the import trees. With this ordering the imports is also now possible tho it doesn't quite order it the same way as `rustfmt` does yet, namely it orders lowercase identifiers after uppercase identifiers as that is the standard character order that rust uses. This also fixes a few weird behaviors that were visible in some of the `replace_qualified_name_with_use.rs` tests.

This really took longer than I was hoping for, fighting with import trees is quite the exhausting task 😅 

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-09-16 20:03:41 +00:00
..
handlers Merge #5989 2020-09-16 20:03:41 +00:00
tests Remove unnecessary comma 2020-09-04 22:58:50 +03:00
utils Merge #5989 2020-09-16 20:03:41 +00:00
assist_config.rs Make MergeBehaviour configurable 2020-09-12 12:11:16 +02:00
assist_context.rs Use Definition::find_usages for finding used items in expand glob import 2020-08-20 21:34:53 +03:00
ast_transform.rs Unify naming 2020-09-03 12:18:46 +02:00
lib.rs Initial implementation of the #5085 issue 2020-09-03 14:47:07 +03:00
tests.rs Rename ra_assists -> assists 2020-08-13 17:33:38 +02:00
utils.rs Make MergeBehaviour configurable 2020-09-12 12:11:16 +02:00