Commit Graph

307992 Commits

Author SHA1 Message Date
Chayim Refael Friedman 39cc97cd19 Merge pull request #20956 from ChayimFriedman2/fix-dhat
minor: Fix building with DHAT
2025-11-01 16:58:53 +00:00
Chayim Refael Friedman 599c379947 Fix building with DHAT
Maybe we need to check it on CI?
2025-11-01 18:50:01 +02:00
Shoyu Vanilla (Flint) 7a337240b6 Merge pull request #20927 from ChayimFriedman2/dhat
feat: Support memory profiling with dhat
2025-10-31 07:08:23 +00:00
Shoyu Vanilla (Flint) be6574b96e Merge pull request #20945 from jhpratt/master
Fix typos, backtick errors/omissions
2025-10-31 04:50:53 +00:00
Jacob Pratt fd378ce0b8 Fix typos, backtick errors/omissions 2025-10-31 00:41:27 -04:00
Shoyu Vanilla (Flint) 1c07f889af Merge pull request #20942 from ShoyuVanilla/frontmatter-err
fix: Do not make false positive syntax errors on frontmatter
2025-10-30 18:36:45 +00:00
Shoyu Vanilla 2ac9a9a48c fix: Do not make false positive syntax errors on frontmatter 2025-10-31 00:45:26 +09:00
Lukas Wirth ad13b1ac96 Merge pull request #20366 from Veykril/push-lmmtrpptrxom
minor: Cleanup `map_rust_child_diagnostics` a bit
2025-10-30 10:59:06 +00:00
Lukas Wirth 008c60d48b minor: Cleanup map_rust_child_diagnostics a bit 2025-10-29 13:12:21 +01:00
Lukas Wirth d9c3ba7bf7 Merge pull request #20934 from Veykril/veykril/push-qtzmsqkzntpo
fix: Improve error recovery when parsing malformed function return types
2025-10-29 12:10:01 +00:00
Lukas Wirth 5f0c7c2aae fix: Improve error recovery when parsing malformed function return types 2025-10-29 12:33:35 +01:00
Chayim Refael Friedman 7c62a30d44 Merge pull request #20931 from SomeoneToIgnore/async-signature
Show proper async function signatures in the signature help
2025-10-28 21:21:45 +00:00
Kirill Bulatov 0ceb66838b Show proper async function signatures in the signature help
Co-authored-by: Lukas Wirth <lukas@zed.dev>
2025-10-28 21:46:55 +02:00
Shoyu Vanilla (Flint) 360720b49c Merge pull request #20930 from ChayimFriedman2/builtin-res-block
fix: Fix handling of blocks modules that are not the root module
2025-10-28 14:16:33 +00:00
Chayim Refael Friedman 4d338cbb2f Support memory profiling with dhat
Unfortunately, this requires a custom build of r-a, and it's quite slow.
2025-10-28 13:00:53 +02:00
Chayim Refael Friedman 13834a011e Fix handling of blocks modules that are not the root module 2025-10-28 12:57:26 +02:00
Shoyu Vanilla (Flint) a6f4d1db22 Merge pull request #20906 from ChayimFriedman2/opaques-ns
fix: Properly support opaques
2025-10-28 08:03:59 +00:00
Shoyu Vanilla (Flint) 5fc223da2e Merge pull request #20915 from A4-Tacks/is-method-with-while-let
Fix not applicable on while for replace_is_method_with_if_let_method
2025-10-28 07:32:48 +00:00
Chayim Refael Friedman 6aed15ed9d Merge pull request #20186 from ChayimFriedman2/goto-impl-no-derive
feat: Provide an option to not show derives near the ADT for "Goto Implementations" or "Implementations" codelens
2025-10-28 06:43:30 +00:00
Chayim Refael Friedman 540df3d1d9 Provide an option to not show derives near the ADT for "Goto Implementations" or "Implementations" codelens
I don't do it by default, for three reasons: (1) it's more expensive, (2) I actually quite like seeing the derives, and they may expand to no impl/more than one impl, (3) if #19130 will ever be merged this will become even more useful.

Even a config might be too much, but it was fun and easy to code so I did that.
2025-10-28 08:34:16 +02:00
Lukas Wirth 0e60684c14 Merge pull request #20922 from Veykril/veykril/push-pznvunxxozkq
perf: Reduce `client_commands` allocations in proto conversion
2025-10-27 23:00:39 +00:00
Lukas Wirth 0c108b1d83 perf: Reduce client_commands allocations in proto conversion 2025-10-27 23:48:20 +01:00
Chayim Refael Friedman 778a318d4e Merge pull request #20921 from ChayimFriedman2/specialization-ns2
Avoid calling `specializes()` query on crates that do not define `#![feature(specialization)]`
2025-10-27 22:31:29 +00:00
Chayim Refael Friedman 506341bcdd Avoid calling specializes() query on crates that do not define #![feature(specialization)]
To save memory.
2025-10-28 00:22:44 +02:00
Shoyu Vanilla (Flint) 512abf618b Merge pull request #20919 from ChayimFriedman2/qualifier-many-flyimport
fix: Consider all matches for flyimport even when searched with a qualifier
2025-10-27 19:13:53 +00:00
Chayim Refael Friedman 74b2a94b5e Consider all matches for flyimport even when searched with a qualifier 2025-10-27 19:26:27 +02:00
Chayim Refael Friedman ec84b26c1c Merge pull request #20369 from ChayimFriedman2/rename-self2
feat: When renaming `self` to other name, change callers method method call syntax to assoc fn syntax
2025-10-27 15:38:33 +00:00
Chayim Refael Friedman 023c4ef74f When renaming self to other name, change callers method method call syntax to assoc fn syntax 2025-10-27 17:27:18 +02:00
Chayim Refael Friedman e7fb68aa52 Properly support opaques
By letting the solver take control of them (reveal them when needed and define them when needed), by providing them in the `TypingMode` plus few helpers.
2025-10-27 17:17:57 +02:00
A4-Tacks 0246980060 Fix not applicable on while for replace_is_method_with_if_let_method
Example
---
```rust
fn main() {
    let mut x = Some(1);
    while x.is_som$0e() { x = None }
}
```

**Before this PR**

Assist not applicable

**After this PR**

```rust
fn main() {
    let mut x = Some(1);
    while let Some(${0:x1}) = x { x = None }
}
```
2025-10-27 15:30:32 +08:00
Chayim Refael Friedman f7c1ad66cb Merge pull request #20914 from ShoyuVanilla/next-solver-tests
Add regression tests for some fixed `A-ty` issues
2025-10-26 17:41:19 +00:00
Shoyu Vanilla 85b7d646cd Add regression tests for some fixed A-ty issues 2025-10-27 02:18:52 +09:00
Shoyu Vanilla (Flint) f62cb389c4 Merge pull request #20913 from A4-Tacks/if-let-chain-for-is-method-with-if-let
Fix not applicable on let-chain for replace_is_method_with_if_let_method
2025-10-26 14:48:02 +00:00
Lukas Wirth 165065ae1e Merge pull request #20837 from osdyne/extension-configuration
Add an Extension Config API
2025-10-26 12:34:05 +00:00
Michael Gruenewald ce94044ff9 Don't add cargo to requiresServerReloadOpts 2025-10-26 13:22:52 +01:00
A4-Tacks 95e2b8444a Fix not applicable on let-chain for replace_is_method_with_if_let_method
Example
---
```rust
fn main() {
    let x = Some(1);
    let cond = true;
    if cond && x.is_som$0e() {}
}
```

**Before this PR**

Assist not applicable

**After this PR**

```rust
fn main() {
    let x = Some(1);
    let cond = true;
    if cond && let Some(${0:x1}) = x {}
}
```
2025-10-26 19:55:09 +08:00
Lukas Wirth 3145078e66 Merge pull request #19918 from A4-Tacks/remove-else-branches
Add ide-assist: remove else branches
2025-10-26 08:35:08 +00:00
Lukas Wirth 64326b2d6a Merge pull request #20589 from A4-Tacks/extract-mod-not-in-impl
Fix extract multiple item in impl for extract_module
2025-10-26 08:25:00 +00:00
Lukas Wirth dbfbe8f742 Merge pull request #20712 from A4-Tacks/destruct-tuple-shorthand
Fix shorthand field pat for destructure_tuple_binding
2025-10-26 08:18:40 +00:00
Lukas Wirth 10066b373b Merge pull request #20705 from A4-Tacks/flip-range
Add ide-assist: flip_range_expr
2025-10-26 08:17:15 +00:00
Lukas Wirth 6c18a87141 Merge pull request #20764 from A4-Tacks/fix-guarded-rhs-let-else
Fix let-expr in lhs for convert_to_guarded_return
2025-10-26 08:06:08 +00:00
Lukas Wirth 9c7db53595 Merge pull request #20912 from A4-Tacks/left-side-in-cond
Fix not complete `let` before expr in condition
2025-10-26 07:19:04 +00:00
Chayim Refael Friedman ad63c71652 Merge pull request #20759 from A4-Tacks/strongly-typed-conv-to-guarded
Fix untyped syntax tree ans casts for convert_to_guarded_return
2025-10-25 17:14:53 +00:00
A4-Tacks 5fda166acf Fix not complete let before expr in condition
Example
---
```rust
fn f() {
    if $0foo.bar() {}
}
```

**Before this PR**

"let" not in completion list

**After this PR**

```rust
fn f() {
    if let $1 = $0foo.bar() {}
}
```
2025-10-25 15:24:37 +08:00
Shoyu Vanilla (Flint) 3c3fcdf103 Merge pull request #20911 from chenyukang/yukang-fix-never-panic
Use tracing error when received compiler message for unknown package
2025-10-25 05:37:52 +00:00
A4-Tacks e0fd5743f9 Fix untyped syntax tree ans casts for convert_to_guarded_return 2025-10-25 13:16:57 +08:00
yukang 2ab3580300 Use tracing error when received compiler message for unknown package 2025-10-25 09:14:35 +08:00
Laurențiu Nicola b68d18a247 Merge pull request #20908 from dpaoliello/windowssys
minor: Bump dependencies to remove indirect dependencies on windows-sys 0.52 and 0.59
2025-10-24 16:20:49 +00:00
Daniel Paoliello 72217cb304 Bump dependencies to remove indirect dependencies on windows-sys 0.52 and 0.59 2025-10-24 09:09:37 -07:00
Laurențiu Nicola 439488e637 Merge pull request #20907 from lnicola/fix-typo
minor: Fix typo
2025-10-24 14:23:52 +00:00