Laurențiu Nicola
7b1b711ecc
Bump eslint
2022-07-09 23:07:31 +03:00
Laurențiu Nicola
1b138b11cf
Bump esbuild
2022-07-09 23:06:45 +03:00
Laurențiu Nicola
b43708c930
Bump d3 and d3-graphviz
2022-07-09 23:06:06 +03:00
Laurențiu Nicola
03a62c180e
Bump vscode-languageclient
2022-07-09 23:04:14 +03:00
bors
666343b759
Auto merge of #12727 - DorianListens:dscheidt/extract-var-field-name, r=jonas-schievink
...
fix: Improve suggested names for extracted variables
When extracting a field expression, if RA was unable to resolve the type of the
field, we would previously fall back to using "var_name" as the variable name.
Now, when the `Expr` being extracted matches a `FieldExpr`, we can use the
`NameRef`'s ident token as a fallback option.
fixes #10035
2022-07-09 13:08:57 +00:00
hi-rustin
638abba05c
Fix test
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-07-09 11:42:19 +08:00
Dorian Scheidt
21062f9201
fix: Improve suggested names for extracted variables
...
When extracting a field expression, if RA was unable to resolve the type of the
field, we would previously fall back to using "var_name" as the variable name.
Now, when the `Expr` being extracted matches a `FieldExpr`, we can use the
`NameRef`'s ident token as a fallback option.
fixes #10035
2022-07-08 18:35:04 -05:00
bors
2836dd15f7
Auto merge of #12706 - DorianListens:dscheidt/closure-args, r=DorianListens
...
fix: Extract Function misses locals used in closures
This change fixes #12705 .
In `FunctionBody::analyze`, we need to search any `ClosureExpr`s we encounter
for any `NameRef`s, to ensure they aren't missed.
2022-07-08 15:02:02 +00:00
Dorian Scheidt
603b6fcc68
fix: Extract Function misses locals used in closures
...
This change fixes #12705 .
In `FunctionBody::analyze`, we need to search any `ClosureExpr`s we encounter
for any `NameRef`s, to ensure they aren't missed.
2022-07-08 09:52:01 -05:00
bors
c419aa9775
Auto merge of #12719 - davidlattimore:format-args-no-unsafe, r=jonas-schievink
...
Remove unnecessary unsafe from format_args expansion
2022-07-08 14:10:19 +00:00
bors
7181a39d4c
Auto merge of #12676 - DorianListens:dscheidt/extract-fun-trait-impl, r=jonas-schievink
...
fix: Extract function from trait impl
This change fixes #10036 , "Extract to function assist implements nonexistent
trait methods".
When we detect that the extraction is coming from within a trait impl, and that
a `self` param will be necessary, we adjust which `SyntaxNode` to `insert_after`,
and create a new empty `impl` block for the newly extracted function.
2022-07-08 14:01:36 +00:00
bors
df4ed94f2f
Auto merge of #12722 - jonas-schievink:update-urls, r=jonas-schievink
...
internal: Update remaining GitHub URLs
The old links still work, but it seems less confusing to have them point to the right repo
2022-07-08 13:50:20 +00:00
Jonas Schievink
6c6ae965ba
Update remaining GitHub URLs
2022-07-08 15:44:49 +02:00
bors
09abd76c6a
Auto merge of #12716 - davidlattimore:fix-publish-crate-names, r=lnicola
...
publish workflow: Fix names for existing crates
Attempting to publish for example ra_ap_text-edit when ra_ap_text_edit
has already been published is rejected by crates.io.
2022-07-08 05:16:43 +00:00
David Lattimore
6f819e30e4
Remove unnecessary unsafe from format_args expansion
2022-07-08 14:56:18 +10:00
David Lattimore
f0af913ab0
publish workflow: Fix names for existing crates
...
Attempting to publish for example ra_ap_text-edit when ra_ap_text_edit
has already been published is rejected by crates.io.
2022-07-08 12:58:13 +10:00
bors
c296e77767
Auto merge of #12695 - xuhongxu96:fix-12140, r=jonas-schievink
...
Complete type param/associated type in trait generic arg per arg index
- Fix #12140
- Also fix tidy check does not work for marks in multiline
2022-07-06 23:58:52 +00:00
Hongxu Xu
3248601a03
fix default type param value position
2022-07-07 07:28:55 +08:00
bors
c46570e694
Auto merge of #12704 - jonas-schievink:smol-paths, r=jonas-schievink
...
internal: Use `SmallVec` to slightly shrink `ModPath` size
Saves like a megabyte on r-a itself.
2022-07-06 17:57:00 +00:00
Jonas Schievink
d2fd137252
Use SmallVec
to slightly shrink ModPath
size
2022-07-06 19:49:05 +02:00
Hongxu Xu
0360ed53cf
check arg_idx >= n_params only if arg_idx >= n_required_params
2022-07-07 00:54:46 +08:00
Hongxu Xu
75fb3de310
Handle generic args per arg index
...
Add more test cases for generic args
2022-07-07 00:45:22 +08:00
bors
00194ade76
Auto merge of #12702 - lnicola:vscode-schemes, r=lnicola
...
internal: use different schemes for the custom views
Related to #12699 , but doesn't fix it because we still register the providers multiple times.
2022-07-06 15:57:34 +00:00
Laurențiu Nicola
ad5a8514a0
Code: use different schemes for the custom views
2022-07-06 18:42:15 +03:00
Hongxu Xu
0f2eba54db
Show only assoc type args in the correct arg pos
2022-07-06 22:58:27 +08:00
hi-rustin
b9ba9fab5a
Add str_ref_to_string fix
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-07-05 22:47:18 +08:00
bors
fee5555cfa
Auto merge of #12694 - hi-rustin:rustin-patch-bors, r=jonas-schievink
...
Remove useless bors.toml
It seems we do not use bors-ng anymore. So maybe this is useless.
2022-07-05 13:51:36 +00:00
Hongxu Xu
441e659aa1
Complete associated type only in trait generic arg
...
Fix tidy check does not work for marks in multiline
2022-07-05 21:48:28 +08:00
hi-rustin
0d9737ac1c
Fix project root assert
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-07-05 21:18:00 +08:00
hi-rustin
2926ca0452
Remove useless bors.toml
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-07-05 21:13:34 +08:00
Lukas Wirth
976d07e53e
fix: Fix unresolved proc macro diagnostics pointing to macro expansions
2022-07-05 12:46:09 +02:00
bors
6edf624cbe
Auto merge of #12690 - Veykril:inert-attrs, r=Veykril
...
internal: Update inert attribute list
2022-07-05 09:55:55 +00:00
Lukas Wirth
383ee6af5e
internal: Update inert attribute list
2022-07-05 11:54:46 +02:00
Lukas Wirth
db49ac8734
internal: Record all macro definitions in ItemScope
2022-07-05 11:28:47 +02:00
bors
e1a8c0b153
Auto merge of #12687 - flodiebold:override-docs, r=flodiebold
...
Improve documentation for `buildScripts.overrideCommand` / `checkOnSave.overrideCommand`
2022-07-04 16:59:17 +00:00
Florian Diebold
5235732d82
Add back restartServerOnConfigChange option
2022-07-04 18:53:55 +02:00
Florian Diebold
ccf854bc2e
Improve documentation for buildScripts.overrideCommand / checkOnSave.overrideCommand
2022-07-04 18:51:18 +02:00
bors
75b22326da
Auto merge of #12681 - lnicola:bump-deps, r=lnicola
...
Bump deps
2022-07-03 07:25:03 +00:00
Laurențiu Nicola
993a19a19a
Bump the rest of the deps
2022-07-03 10:24:07 +03:00
Laurențiu Nicola
78beb4c444
Bump chalk
2022-07-03 10:22:10 +03:00
Laurențiu Nicola
e05e6c60a7
Bump object
2022-07-03 10:14:48 +03:00
Laurențiu Nicola
5381811368
Bump tracing-subscriber
2022-07-03 10:12:58 +03:00
Laurențiu Nicola
a3011e5ed2
Bump arbitrary and derive_arbitrary
2022-07-03 10:10:45 +03:00
Laurențiu Nicola
9e7ca80c82
Bump cargo_metadata
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
2d3f0b4841
Bump semver
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
6669f388a2
Bump indexmap
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
b24ece5220
Bump serde_json
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
87572bee23
Bump serde
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
791f2a0bec
Bump smallvec
2022-07-03 10:09:35 +03:00
Laurențiu Nicola
2af61bc9ba
Bump pulldown-cmark-to-cmark
2022-07-03 10:09:35 +03:00