bors[bot] d89a4f0e93
Merge #11173
11173: Allow adding partially resolved types r=Veykril a=SomeoneToIgnore

Sometimes when writing something like `let foo = Arc::new(Mutex::new(CrazyGenerics::new(HashMap::new())))`, I want/have to specify an explicit type for the expression.
Using turbofish isn't very readable and not always appreciated by guidelines, so `let foo: T` has to be filled.

To ease that, the PR enables the `add_explicit_type` assist on types that contain unknown types and some generics.
Fully unresolved types, arrays with unknown types and other known cases behave the same.

`_` placeholder was chosen to replace an unknown type:

```rust
let foo = HashMap::new();
// after assist usage, turns into
let foo: HashMap<_, _> = HashMap::new();
```

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2022-01-03 00:40:30 +00:00
..
2021-12-20 16:50:35 +00:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2022-01-02 16:49:40 +00:00
2022-01-02 19:03:38 +03:00
2022-01-02 22:23:05 +01:00
2021-12-20 13:45:35 +00:00
2021-12-28 19:17:34 +03:00
2021-12-16 01:56:12 +05:00
2022-01-02 16:49:40 +00:00
2022-01-02 18:50:32 +03:00
2021-12-16 01:56:12 +05:00
2021-12-20 13:45:35 +00:00
2021-12-20 13:45:35 +00:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2022-01-02 19:05:37 +03:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00
2021-12-16 01:56:12 +05:00