rust/crates/ide-assists
bors 2d9ed4fd48 Auto merge of #13641 - DesmondWillowbrook:fix-move-format-string, r=Veykril
fix: format expression parsing edge-cases

- Handle positional arguments with formatting options (i.e. `{:b}`). Previously copied `:b` as an argument, producing broken code.

- Handle indexed positional arguments (`{0}`) ([reference](https://doc.rust-lang.org/std/fmt/#positional-parameters)). Previously copied over `0` as an argument.

Note: the assist also breaks when named arguments are used (`"{name}$0", name = 2 + 2` is converted to `"{}"$0, name`. I'm working on fix for that as well.
2022-11-19 12:46:29 +00:00
..
src Auto merge of #13641 - DesmondWillowbrook:fix-move-format-string, r=Veykril 2022-11-19 12:46:29 +00:00
Cargo.toml Bump Cargo rust-version fields to latest stable 2022-11-07 12:59:51 +01:00