bors
1a5cee1731
Auto merge of #15911 - Young-Flash:fix_missing_assoc_item, r=lnicola
...
fix: handle default constant values in `trait_impl_missing_assoc_item` diagnostic
A patch of https://github.com/rust-lang/rust-analyzer/pull/15895 , close https://github.com/rust-lang/rust-analyzer/issues/15909
cc `@Veykril`
2023-11-20 17:49:45 +00:00
bors
375142902c
Auto merge of #15885 - RunDevelopment:patch-1, r=lnicola
...
Fix typo in highlight_related.rs
While reading the user manual, I noticed a random tick, so I went ahead and fixed it. The `await` keyword should be properly rendered as inline code.
![image](https://github.com/rust-lang/rust-analyzer/assets/20878432/f134a4c9-e539-4635-97ac-506790893869 )
2023-11-20 17:37:59 +00:00
bors
255eed40c4
Auto merge of #15925 - lnicola:pathres-nodebug, r=lnicola
...
internal: Remove debugging code in path resolution
Closes #15924
2023-11-17 19:00:20 +00:00
Laurențiu Nicola
a54c0dafc8
Remove debugging code in path resolution
2023-11-17 20:58:43 +02:00
Young-Flash
1cbda612bc
chore: add use case for PathSegment::qualifying_trait
2023-11-17 21:31:33 +08:00
austaras
808f6687f7
address comment
2023-11-17 16:53:38 +08:00
bors
bc978217b3
Auto merge of #15917 - lnicola:sync-from-rust, r=lnicola
...
internal: Sync from downstream
2023-11-17 08:02:39 +00:00
Laurențiu Nicola
6a0e02dd53
Merge branch 'master' into sync-from-rust
2023-11-17 10:00:45 +02:00
Laurențiu Nicola
59f5d51852
Merge commit '141fc695dca1df7cfc3c9803972ec19bb178dcbc' into sync-from-ra
2023-11-16 22:27:35 +02:00
bors
141fc695dc
Auto merge of #15913 - lnicola:bump-libc, r=lnicola
...
internal: Bump libc
CC https://github.com/rust-lang/rust/pull/117981
2023-11-16 19:50:35 +00:00
Laurențiu Nicola
480cb60be3
Bump libc
2023-11-16 21:48:49 +02:00
bors
37a8790829
Auto merge of #15830 - davidbarsky:davidbarsky/allow-companion-extension-to-call-rust-analyzer, r=davidbarsky
...
code: expose workspaces to other extensions; remove `addProject` command
This (mostly red) PR does three things:
- Exposes two methods to companion extensions (`setWorkspaces` and `notifyRustAnalyzer`).
- `setWorkspaces` is needed to update `linkedProjects` _without_ writing workspace/global configuration.
- `notifyRustAnalyzer` to get the server to pull the new configuration.
- Makes `Ctx` implement `RustAnalyzerExtensionApi` to prevent accidental regressions.
- Remove `rust-analyzer.addProject`, as that will live in a buck2 companion extension. No need for that to be in rust-analyzer!
I can see the utility of combining `notifyRustAnalyzer` and `setWorkspaces` into a single method (`updateWorkspacesAndNotify()`?), but I don't feel strongly about this. My feeling is that this API could be easily changed in the future.
2023-11-16 17:43:14 +00:00
David Barsky
0cd68bfed3
code: expose workspaces to other extensions; remove addProject
command
2023-11-16 12:38:15 -05:00
austaras
e95ec55273
fix: better resolve assoc item with type bound
2023-11-16 23:17:00 +08:00
Young-Flash
cfc881ae13
fix missing assoc item
2023-11-16 22:27:21 +08:00
bors
58de0b130a
Auto merge of #15902 - lnicola:bump-deps, r=Veykril
...
internal: Bump deps pt. 1
2023-11-15 19:37:06 +00:00
Laurențiu Nicola
da24b6fb12
Bump memchr
2023-11-15 21:24:20 +02:00
Laurențiu Nicola
8ea06c8ec8
Bump arbitrary and derive-arbitrary
2023-11-15 21:22:34 +02:00
Laurențiu Nicola
c6fad55c98
Bump bitflags
2023-11-15 21:20:47 +02:00
Laurențiu Nicola
3ed27d21f2
Bump cargo_metadata
2023-11-15 21:18:49 +02:00
Laurențiu Nicola
2814d646cb
Bump rayon
2023-11-15 21:14:56 +02:00
Laurențiu Nicola
b18ce4f8ea
Bump xshell
2023-11-15 21:12:18 +02:00
Laurențiu Nicola
83e6d7938c
Bump tracing-tree again
2023-11-15 21:08:35 +02:00
bors
bae9c084e9
Auto merge of #15904 - davidbarsky:davidbarsky/bump-minimum-vscode-version-to-1.78, r=lnicola
...
editor/code: bump minimum version of VS Code to 1.78
Undoes https://github.com/rust-lang/rust-analyzer/pull/15333 .
2023-11-15 15:34:26 +00:00
David Barsky
df7fa7f680
editor/code: bump minimum version of VS Code to 1.78
2023-11-15 10:32:40 -05:00
bors
1d3bf72808
Auto merge of #15905 - lnicola:tsconfig, r=lnicola
...
minor: Tweak tsconfig.json
CC https://github.com/rust-lang/rust-analyzer/pull/15904
2023-11-15 15:13:03 +00:00
Laurențiu Nicola
8e8e7de93b
Tweak tsconfig.json
2023-11-15 17:08:39 +02:00
bors
b8b4b22c1b
Auto merge of #15903 - Veykril:inner-diag, r=Veykril
...
Fix builtin line! expansion
`concat` expects only literals, not whole syntax nodes, so we need to expand as such
2023-11-15 13:21:17 +00:00
Lukas Wirth
e8c4007cfc
Fix builtin line! expansion
2023-11-15 14:06:10 +01:00
Laurențiu Nicola
c66084b9c6
Bump ra-ap-rustc_index and ra-ap-rustc_abi
2023-11-15 13:42:13 +02:00
Jan Procházka
9c8727eea5
Update editors/code/package.json
...
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2023-11-15 12:41:54 +01:00
Laurențiu Nicola
b267f6b071
Bump ra-ap-rustc_lexer
2023-11-15 13:40:43 +02:00
jprochazk
0d147b382f
detect internal error via error.code
instead of error message
2023-11-15 12:36:08 +01:00
Laurențiu Nicola
829cf8db4c
Bump dissimilar
2023-11-15 13:34:56 +02:00
Laurențiu Nicola
572583262c
Bump text-size
2023-11-15 13:33:03 +02:00
Laurențiu Nicola
a1f81a7e75
Bump chalk
2023-11-15 13:31:45 +02:00
Laurențiu Nicola
441e8c71f1
Remove outdated comment
2023-11-15 13:27:48 +02:00
Laurențiu Nicola
c4dfa06b9d
Bump tracing-log
2023-11-15 13:25:19 +02:00
Laurențiu Nicola
1fc056ec93
Bump indexmap
2023-11-15 13:21:34 +02:00
Laurențiu Nicola
2bfd6b659d
Bump serde_json
2023-11-15 13:17:36 +02:00
Laurențiu Nicola
970a796368
Bump serde
2023-11-15 13:16:07 +02:00
Laurențiu Nicola
cb8434e594
Bump either
2023-11-15 13:07:36 +02:00
Laurențiu Nicola
2dbdaa247b
Bump tracing-subscriber
2023-11-15 13:04:39 +02:00
Laurențiu Nicola
d83620a5ba
Bump tracing-tree
2023-11-15 13:01:54 +02:00
Laurențiu Nicola
f53368dd3f
Bump tracing
2023-11-15 13:00:32 +02:00
Laurențiu Nicola
f66df10f87
Bump itertools
2023-11-15 12:53:56 +02:00
Laurențiu Nicola
dfc885e0fd
Bump anyhow
2023-11-15 12:49:32 +02:00
bors
57ef70cc08
Auto merge of #15901 - Veykril:inner-diag, r=lnicola
...
fix: Diagnose everything in nested items, not just def diagnostics
Turns out we only calculated def diagnostics for these before (was wondering why I wasn't getting any type mismatches)
2023-11-15 10:07:15 +00:00
bors
535eb0da9d
Auto merge of #15874 - DropDemBits:structured-snippet-migrate-4, r=Veykril
...
internal: Migrate assists to the structured snippet API, part 4
Continuing from #15260
Migrates the following assists:
- `add_turbo_fish`
- `add_type_ascription`
- `destructure_tuple_binding`
- `destructure_tuple_binding_in_subpattern`
I did this a while ago, but forgot to make a PR for the changes until now. 😅
2023-11-15 09:54:45 +00:00
bors
a47330308b
Auto merge of #15875 - Young-Flash:fix_grammar, r=Veykril
...
fix `PathSegment` grammar
close https://github.com/rust-lang/rust-analyzer/issues/15778
2023-11-15 09:43:11 +00:00