about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-12 15:50:42 +0000
committerbors <bors@rust-lang.org>2022-09-12 15:50:42 +0000
commitf64c95600c0887dbb48a429a00700df47af75eaa (patch)
tree6c9a12fb9a0bfc988258443a3a81f73b427792a0 /compiler/rustc_plugin_impl/src
parentb1a4ba3e84f021dd3e8eeaaca0eecaa758f8d32c (diff)
parent54e9324e93646433e8404af106223890ef52105c (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions