rust/crates
bors[bot] 6574a6f448
Merge #5988
5988: Postfix completions for fmt-like string literals r=matklad a=popzxc

This pull request adds a bunch of new postfix completions for `format`-like string literls.

For example, `"{32} {some_var:?}".println` will expand to `println!("{} {:?}", 32, some_var)`.

Postfix completions were added for most common format-like macros:

- `println` -> `println!(...)`
- `fmt` -> `format!(...)`
- `panic` -> `panic!(...)`
- `log` macros:
  + `logi` -> `log::info!(...)`
  + `logw` -> `log::warn!(...)`
  + `loge` -> `log::error!(...)`
  + `logt` -> `log::trace!(...)`
  + `logd` -> `log::debug!(...)`

![fmt_postfix](https://user-images.githubusercontent.com/12111581/92998650-a048af80-f523-11ea-8fd8-410146de8caa.gif)



Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
2020-10-02 12:13:53 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Merge #6105 2020-10-02 09:30:25 +00:00
base_db Move most of the logic into the completion module 2020-09-10 01:42:20 +03:00
cfg Add description for crates that will be published 2020-08-24 13:07:22 +02:00
flycheck Spawn a flycheck instance per workspace 2020-09-27 19:41:54 +02:00
hir Minor clippy performance suggestions 2020-09-30 15:22:49 -04:00
hir_def Merge #6019 2020-09-29 10:29:33 +00:00
hir_expand Merge #6033 2020-09-28 11:03:47 +00:00
hir_ty Update chalk to 0.30.0 2020-09-28 14:24:11 -04:00
ide Use expect_test to make format_str_parser test more data-driven 2020-10-02 14:51:20 +03:00
ide_db Remove periodic gc stub 2020-09-29 21:22:48 +02:00
mbe Bump smol_str from 0.1.16 to 0.1.17 2020-09-24 16:39:08 +02:00
parser Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_srv Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Add description for crates that will be published 2020-08-24 13:07:22 +02:00
project_model Merge #6018 2020-09-20 19:25:09 +00:00
rust-analyzer Fix failing test 2020-10-02 12:35:25 +03:00
ssr Minor clippy performance suggestions 2020-09-30 15:22:49 -04:00
stdx Add panic_context module for better panic messages 2020-09-29 20:20:47 +02:00
syntax Merge #6104 2020-10-02 08:07:42 +00:00
test_utils Add description for crates that will be published 2020-08-24 13:07:22 +02:00
text_edit Actually assert disjointness 2020-09-03 13:37:36 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs Rename the method to avoid false promises 2020-09-10 01:45:49 +03:00
vfs-notify Add description for crates that will be published 2020-08-24 13:07:22 +02:00