5543dd88c9
feat: Add an assist for inlining all type alias uses ## Description `inline_type_alias_uses` assist tries to inline all selected type alias occurrences. ### Currently Type alias used in `PathType` position are inlined. ### Not supported - Removing type alias declaration if all uses are inlined. - Removing redundant imports after inlining all uses in the file. - Type alias not in `PathType` position, such as: - `A::new()` - `let x = A {}` - `let bits = A::BITS` - etc. ## Demonstration ![example](https://user-images.githubusercontent.com/45790125/184905226-9cb8ac81-1439-4387-a13b-e18ad4ecf208.gif) ## Related Issues Partially fixes #10881 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |