roife
3449222ab1
fix: self type replacement in inline-function
2023-12-13 23:13:55 +08:00
Lukas Wirth
d2cd30007c
Implicit format args support
2023-12-05 17:07:00 +01:00
bors
2ededa2f14
Auto merge of #15432 - alibektas:deunwrap/inline_call, r=Veykril
...
minor : Deunwrap inline call
#15398 subtask 4. There is still one instance of unwrap, which I found pretty hard to change.
2023-09-22 07:03:02 +00:00
Ryan Mehri
ea11846490
fix parens when inlining closure in body of function
2023-09-21 21:55:10 -07:00
Ali Bektas
893e19137e
Make assist lazy again
2023-09-11 13:33:26 +02:00
Ali Bektas
38491fcf07
v3
2023-09-10 22:39:07 +02:00
Ali Bektas
68d24b69d4
Deunwrap inline call v2
2023-09-10 22:39:07 +02:00
Ali Bektas
5683df2965
Deunwrap inline call
2023-09-10 22:39:07 +02:00
Josiah Bills
b9cef03230
Updated search to expose some more functions and to make search take the search scope by reference.
2023-07-09 17:30:21 -04:00
bors
f99348578a
Auto merge of #15074 - oxalica:fix/inline-async-fn, r=lowr
...
Correctly handle inlining of async fn
Fixes #10198
2023-06-19 15:46:55 +00:00
oxalica
52f1ce17aa
Correctly handle inlining of async fn
2023-06-19 17:14:17 +08:00
ponyii
7e08933a26
the "implement missing members" assist's const transformation patched
2023-06-16 20:34:44 +04:00
Ryo Yoshida
01bf0725b1
fix: don't replace SyntaxToken
with SyntaxNode
2023-03-15 17:18:09 +09:00
Yuri Astrakhan
e341e996f7
Clippy-fix explicit auto-deref
...
Seems like these can be safely fixed. With one, I was particularly
surprised -- `Some(pats) => &**pats,` in body.rs?
```
cargo clippy --fix -- -A clippy::all -D clippy::explicit_auto_deref
```
2022-12-23 02:52:14 -05:00
bors
25b1d6f3f9
Auto merge of #13435 - DropDemBits:assists-format-args-capture-pt3, r=Veykril
...
Migrate assists to format args captures, part 3
Continuation of https://github.com/rust-lang/rust-analyzer/pull/13379
Migrates:
- `inline_call`
- `inline_local_variable`
- `introduce_named_lifetime`
- `merge_match_arms`
- `move_from_mod_rs`
- `move_guard`
- `move_module_to_file`
- `move_to_mod_rs`
- `number_representation`
- `qualify_method_call`
- `qualify_path`
- `raw_string`
- `remove_dbg`
- `replace_derive_with_manual_impl`
- `replace_or_with_or_else`
- `replace_turbofish_with_explicit_type`
- `unwrap_tuple`
- `wrap_return_type_in_result`
2022-11-05 12:41:23 +00:00
Justin Mott
e4ef0e5df9
addressed https://github.com/rust-lang/rust-analyzer/issues/12536
2022-10-21 13:28:59 -04:00
DropDemBits
b1909a80af
Migrate assists to format args captures, part 3
2022-10-12 02:28:41 -04:00
ice1000
79e5c366cd
Extract shared logic
2022-09-02 21:18:36 +00:00
ice1000
148bdf85f2
Do not substitute Self
when in same impl block
2022-08-23 01:52:47 -04:00
ice1000
5a6c51ebb8
fix: use functional programming
2022-08-19 01:22:43 +00:00
ice1000
b6fe46055b
feat: Improved inline_call to replace Self
2022-08-19 01:06:00 +00:00
Zachary S
add33b65dd
Remove FIXME comment for unreachable fallback.
2022-07-26 10:59:19 -05:00
Zachary S
e45a250f8c
fix: Insert spaces when inlining a function defined in a macro.
2022-07-25 15:45:17 -05:00
Amos Wenger
816f7fe12a
Run cargo fix --edition-idioms
2022-07-20 15:02:08 +02:00
Lukas Wirth
976d07e53e
fix: Fix unresolved proc macro diagnostics pointing to macro expansions
2022-07-05 12:46:09 +02:00
Peh
1f011fa4a3
style: rename crates to kebab case
2022-05-01 10:48:58 +00:00