diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-27 18:55:05 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-27 18:55:05 +0000 |
commit | a1fea0d34ee8f3436aefd87d4c133a7ff50ffbb0 (patch) | |
tree | 9afc05a20e5e51f757317a71906dc45a97861415 /.github | |
parent | 75f6ab208a2b3e5fea9e8b6362df3fad7308a0d5 (diff) | |
parent | f016d8b900792c8ae4fce268920edea3035b6559 (diff) |
Merge #3745
3745: Fix merge-imports assist for wildcard imports r=matklad a=piotr-szpetkowski
Refs #3728
Besides the case mentioned in issue merging two diff-prefix wildcard uses will now work as well e.g.
```rust
use std::cell::*;
use std::str::*;
```
will translate into:
```rust
use std::{cell::*, str::*}
```
I'd also like to explore usage of the `merge-imports` for same-prefix uses to simplify redundancy, but it seems like an idea for another issue and I'm not sure if it's something that this assist should do e.g.:
```rust
use std::cell::Cell;
use std::cell::*;
```
into:
```rust
use std::cell::*;
```
Co-authored-by: Piotr Szpetkowski <[email protected]>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions