diff options
| author | bors <bors@rust-lang.org> | 2022-08-18 08:02:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-18 08:02:37 +0000 |
| commit | 5543dd88c98eca686d63fc032ae927a0565565b8 (patch) | |
| tree | e491d3881f490fcec0cc705b29c03856614ea958 /src/test/ui/function-pointer | |
| parent | 1d36aba57a279ef3a018626a41976ac831944c5e (diff) | |
| parent | 313b004ef76d3352f36e5128b16ca5212de97d49 (diff) | |
| download | rust-5543dd88c98eca686d63fc032ae927a0565565b8.tar.gz rust-5543dd88c98eca686d63fc032ae927a0565565b8.zip | |
Auto merge of #13036 - sancho20021:10881-inline_type_alias_uses, r=Veykril
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

## Related Issues
Partially fixes #10881
Diffstat (limited to 'src/test/ui/function-pointer')
0 files changed, 0 insertions, 0 deletions
