diff options
| author | bors <bors@rust-lang.org> | 2022-09-12 15:50:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-12 15:50:42 +0000 |
| commit | f64c95600c0887dbb48a429a00700df47af75eaa (patch) | |
| tree | 6c9a12fb9a0bfc988258443a3a81f73b427792a0 /compiler/rustc_plugin_impl/src/errors.rs | |
| parent | b1a4ba3e84f021dd3e8eeaaca0eecaa758f8d32c (diff) | |
| parent | 54e9324e93646433e8404af106223890ef52105c (diff) | |
| download | rust-f64c95600c0887dbb48a429a00700df47af75eaa.tar.gz rust-f64c95600c0887dbb48a429a00700df47af75eaa.zip | |
Auto merge of #13216 - DesmondWillowbrook:move_format_string_arg, r=DesmondWillowbrook
New assist: move_format_string_arg
The name might need some improving.
```rust
fn main() {
print!("{x + 1}");
}
```
to
```rust
fn main() {
print!("{}"$0, x + 1);
}
```
fixes #13180
ref to #5988 for similar work
* extracted `format_like`'s parser to it's own module in `ide-db`
* reworked the parser's API to be more direct
* added assist to extract expressions in format args
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
