diff options
| author | bors <bors@rust-lang.org> | 2022-09-26 09:35:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-26 09:35:59 +0000 |
| commit | 1a24003eb6bc8377e76cd9f70bf6700bc842e99b (patch) | |
| tree | c44013a47c1f8c769395da24566ab96fd088f7fe /tests/debuginfo/enum-thinlto.rs | |
| parent | 1f929659acff378adad85fcea747f8b19a0f819f (diff) | |
| parent | c2dc32c48e8a7027390738b63e88fe220e4e56d9 (diff) | |
| download | rust-1a24003eb6bc8377e76cd9f70bf6700bc842e99b.tar.gz rust-1a24003eb6bc8377e76cd9f70bf6700bc842e99b.zip | |
Auto merge of #13248 - harudagondi:unwrap-tuple, r=Veykril
Feature: Add assist to unwrap tuple declarations
> Implement #12923 for only tuples.
>
> Does not implement unwrapping for structs, as mentioned in the issue.
Add assist to unwrap tuples declarations to separate declarations.
```rust
fn main() {
$0let (foo, bar, baz) = (1.0, "example", String::new())
}
```
becomes:
```rust
fn main() {
let foo = 1.0;
let bar = "example";
let baz = String::new();
}
```
## Changelog
### Feature
- Added assist to unwrap tuple declarations.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
