Vincent Esche
7dec7e92ea
Replace [package.repository] = "…"
of published crates with [package.repository.workspace] = true
2024-08-06 00:26:42 +02:00
Vincent Esche
624f2ead7b
Unify package descriptions by adding references to "rust-analyzer"
...
With the lack of a README on the individually published library crates and the somewhat cryptic `ra_ap_` prefix it is hard to figure out where those crates belong to, so mentioning "rust-analyzer" feels like auseful hint there.
2024-08-06 00:25:02 +02:00
Vincent Esche
f8de86b308
Apply Veykril's change suggestions
2024-08-06 00:25:02 +02:00
Vincent Esche
e9ee0d4166
Replace "ra_ap_ide
" with "ide
(aka ra_ap_ide
)"
2024-08-06 00:25:02 +02:00
Vincent Esche
0a45f6dc24
Fix spelling of "data structure"
2024-08-06 00:25:02 +02:00
Vincent Esche
ddb9686246
Fix spelling of "object-oriented"
2024-08-06 00:25:02 +02:00
Vincent Esche
07058a71d4
Fix obsolete repository URL in [package.repository]
of rust-analyzer
crate
2024-08-06 00:25:02 +02:00
Vincent Esche
6f329e6d5b
Add repository URL for published crates' missing [package.repository]
fields
2024-08-06 00:25:02 +02:00
Vincent Esche
b5b0f4bc5a
Replace "TBD"
with more helpful desciptions in published crates' [package.description]
fields
2024-08-06 00:25:02 +02:00
bors
4a99d795d0
Auto merge of #17802 - Veykril:arg-mismatch-no-ty-mismatch, r=Veykril
...
fix: Surpress type mismatches in calls with mismatched arg counts
These tend to get very noisy, hiding the actual problem.
2024-08-05 14:35:50 +00:00
bors
fd3c10d45b
Auto merge of #17772 - Veykril:debug.ts, r=Veykril
...
internal: Reorganize debug.ts
2024-08-05 14:21:45 +00:00
Lukas Wirth
deddbbfa60
Surpress type mismatches in calls with mismatched arg counts
2024-08-05 16:15:28 +02:00
bors
ce73b7cba2
Auto merge of #17771 - Veykril:parallel-vfs-config, r=Veykril
...
internal: Load VFS config changes in parallel
Simple attempt to make some progress f or https://github.com/rust-lang/rust-analyzer/issues/17373
No clue if those atomic orderings are right, though I don't think they are really too relevant either.
A more complete fix would probably need to replace our `ProjectFolders` handling a bit.
2024-08-05 14:07:22 +00:00
Lukas Wirth
7e94f3fd3c
Reorganize debug.ts
2024-08-05 16:06:25 +02:00
Lukas Wirth
e437db2483
Slightly optimize watch list in vfs
2024-08-05 15:56:23 +02:00
bors
25d9e05c03
Auto merge of #17791 - ShoyuVanilla:await-outside-of-async, r=Veykril
...
feat: Implement diagnostic for `await` outside of `async`
Closes #17781
2024-08-05 13:53:21 +00:00
bors
f62d7b9f11
Auto merge of #17775 - ShoyuVanilla:segregate-diags, r=Veykril
...
perf: Segregate syntax and semantic diagnostics
Closes #17731
2024-08-05 13:39:30 +00:00
Shoyu Vanilla
eea1e9b21f
perf: Segregate syntax and semantic diagnostics
2024-08-05 22:12:47 +09:00
bors
8137e74f46
Auto merge of #17801 - Veykril:unbrick-metrics, r=Veykril
...
minor: Fix metrics not running
`@bors` r+
2024-08-05 13:01:07 +00:00
Lukas Wirth
2d15cdb9fc
minor: Fix metrics not running
2024-08-05 14:59:27 +02:00
Shoyu Vanilla
8a51419a2d
feat: Implement diagnostic for await
outside of async
2024-08-05 21:47:57 +09:00
bors
fbed308ebe
Auto merge of #17799 - Veykril:syntax-bridge, r=Veykril
...
Split out syntax-bridge into a separate crate
This functionality is not really tied to mbe macros, so imo it has no place in that crate.
2024-08-05 12:31:45 +00:00
bors
b4571d7c00
Auto merge of #17793 - jjoeldaniel:msvc-docs, r=Veykril
...
docs: add msvc note to manual
Added note for Windows users to have the latest MSVC to minimize setup issues.
Closes #4870
2024-08-05 12:17:25 +00:00
bors
f6197355eb
Auto merge of #17784 - Young-Flash:block_with_label, r=Veykril
...
feat: support inlay hint for more expr with label
follow up https://github.com/rust-lang/rust-analyzer/pull/17635
2024-08-05 12:03:18 +00:00
Lukas Wirth
c9e1cb4887
Simplify
2024-08-05 13:58:01 +02:00
bors
3760540ace
Auto merge of #17794 - Veykril:source-db-simplify, r=Veykril
...
internal: Newtype `ErasedFileAstId`
It wrapping `la_arena::Idx` makes it quite annoying to use
2024-08-05 11:48:00 +00:00
Lukas Wirth
188c577855
Newtype ErasedFileAstId
2024-08-05 13:46:47 +02:00
Lukas Wirth
d2dd4f6d5f
Split out syntax-bridge into a separate crate
2024-08-05 13:45:00 +02:00
Lukas Wirth
fcb88832de
Simplify FileDelegate
2024-08-05 13:03:03 +02:00
bors
000eed1da8
Auto merge of #17795 - Veykril:library-dep-loading, r=Veykril
...
feat: Load sysroot library via cargo metadata
See https://github.com/rust-lang/rust/pull/128534 , fixes https://github.com/rust-lang/rust-analyzer/issues/7637
Requires a toolchain from 176e54520 2024-08-04 or later to work.
2024-08-05 10:45:47 +00:00
Lukas Wirth
f053b1aa6a
feat: Load sysroot library via cargo metadata
2024-08-05 12:18:19 +02:00
Joel Daniel Rico
9f2a0e3e19
add msvc note to manual
2024-08-05 00:59:05 -07:00
bors
c9109f23de
Auto merge of #17789 - ShoyuVanilla:issue-17191, r=Veykril
...
fix: Insert a generic arg for `impl Trait` when lowering generic args
Fixes #17191
We are not inserting a generic arg when lowering generics like
```rust
fn foo<T: B<impl A>(..) { ... }
```
but when we are lowering predicates we do;
aa00ddcf65/crates/hir-ty/src/lower.rs (L1697-L1718)
aa00ddcf65/crates/hir-ty/src/lower.rs (L310)
and this mismatch causes index out of bound panic while substituting the predicates
2024-08-04 19:13:40 +00:00
Shoyu Vanilla
8fa454d7aa
fix: Insert a generic arg for impl Trait
when lowering generic args
2024-08-05 00:06:29 +09:00
Young-Flash
747615d95b
test: add test case for inlay hint support for expr with label
2024-08-04 19:19:15 +08:00
Lukas Wirth
c6ae9cde99
Wait with change processing until the vfs is done
2024-08-02 17:09:25 +02:00
Lukas Wirth
8286847bee
internal: Load VFS config changes in parallel
2024-08-02 13:04:15 +02:00
bors
aa00ddcf65
Auto merge of #17770 - Veykril:path-try-from, r=Veykril
...
internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once
https://github.com/rust-lang/rust-analyzer/pull/16889#discussion_r1590993282
2024-08-02 09:09:53 +00:00
Lukas Wirth
758ad25229
internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once
2024-08-02 11:08:19 +02:00
bors
670a5ab4a9
Auto merge of #17705 - huntc:resolve-ra, r=Veykril
...
feat: Use oldest rustup rust-analyzer when toolchain override is present
Selects a rust-toolchain declared RA based on its date. The earliest (oldest) RA wins and becomes the one that the workspace uses as a whole.
In terms of precedence:
nightly > stable-with-version > stable
With stable-with-version, we invoke the RA with a `--version` arg and attempt to extract a date. Given the same date as a nightly, the nightly RA will win.
Fixes #17663
2024-08-02 06:50:43 +00:00
bors
f149dc5029
Auto merge of #17763 - ShoyuVanilla:wrap-unit, r=Veykril
...
fix: Insert a tail `Ok(())` for expr block instead of wrapping with `Ok`
Fixes #17728
When type mismatch is `Result<(), E>, ()` or `Option<()>, ()` and target expr is a block expression, it is more reasonable to insert a wrapped unit - `Ok(())` or `Some(())` - as the tail expression of that block than wrapping the entire block with `Ok` or `Some`
2024-08-01 14:16:08 +00:00
Young-Flash
722020e63f
feat: support inlay hint for more expr with label
2024-08-01 22:06:15 +08:00
Shoyu Vanilla
3121a91e0a
fix: Insert a tail Ok(())
for expr block instead of wrapping with Ok
2024-08-01 21:24:28 +09:00
bors
6c9ae75b4f
Auto merge of #17761 - RalfJung:josh-roudntrip-error, r=lnicola
...
when josh-proxy screws up the roundtrip, say what the involved commits are
Helps debugging https://github.com/rust-lang/rust-analyzer/issues/17733
2024-08-01 10:38:36 +00:00
Ralf Jung
83e534923d
when josh-proxy screws up the roundtrip, say what the involved commits are
2024-08-01 12:28:02 +02:00
bors
536a3e9503
Auto merge of #17756 - Wilfred:fix_adoc_json, r=Veykril
...
docs: Fix JSON example for rust-analyzer.workspace.discoverConfig
The user does not specify `{arg}` in their JSON, and be pedantic about commas in JSON sample.
2024-08-01 08:15:44 +00:00
Wilfred Hughes
e7d61e8f9c
docs: Fix JSON example for rust-analyzer.workspace.discoverConfig
...
The user does not specify `{arg}` in their JSON, and be pedantic about
commas in JSON sample.
2024-07-31 16:10:42 -07:00
bors
c8e41d9506
Auto merge of #17755 - ShoyuVanilla:issue-17738, r=davidbarsky
...
fix: Apply `IndexMut` obligations for non-assigning mutable index usages
Fixes #17738
Currently, we are pushing `IndexMut` obligations only for assign usages;
f982f3fa2c/crates/hir-ty/src/infer/expr.rs (L809-L817)
2024-07-31 18:06:53 +00:00
Shoyu Vanilla
b5494d7cc3
Prevent redundant obigation push for assignee exprs
2024-08-01 02:51:33 +09:00
Shoyu Vanilla
20e2623234
fix: Apply IndexMut
obligations for non-assigning mutable index usages, too
2024-08-01 02:20:52 +09:00