Commit graph

36394 commits

Author SHA1 Message Date
Shoyu Vanilla (Flint)
bacc5bbd30
Merge pull request #20920 from ShoyuVanilla/target-dirs
Some checks failed
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
autopublish / publish (push) Has been cancelled
release / dist (aarch64-apple-darwin) (push) Has been cancelled
release / dist (x86_64-apple-darwin) (push) Has been cancelled
release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
release / dist (i686-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
release / publish (push) Has been cancelled
fix: Resolve `target-dir` more precisely
2025-11-02 05:17:40 +00:00
Chayim Refael Friedman
fca718c0f2
Merge pull request #20956 from ChayimFriedman2/fix-dhat
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
minor: Fix building with DHAT
2025-11-01 16:58:53 +00:00
Chayim Refael Friedman
c85e57e9b6 Fix building with DHAT
Maybe we need to check it on CI?
2025-11-01 18:50:01 +02:00
Shoyu Vanilla (Flint)
2e2e3ebec9
Merge pull request #20927 from ChayimFriedman2/dhat
Some checks failed
metrics / build_metrics (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
feat: Support memory profiling with dhat
2025-10-31 07:08:23 +00:00
Shoyu Vanilla (Flint)
2eb0008829
Merge pull request #20945 from jhpratt/master
Fix typos, backtick errors/omissions
2025-10-31 04:50:53 +00:00
Jacob Pratt
ea9a188f1e
Fix typos, backtick errors/omissions 2025-10-31 00:41:27 -04:00
Shoyu Vanilla (Flint)
f7de8ae045
Merge pull request #20942 from ShoyuVanilla/frontmatter-err
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Do not make false positive syntax errors on frontmatter
2025-10-30 18:36:45 +00:00
Shoyu Vanilla
3d636a6ca6 fix: Do not make false positive syntax errors on frontmatter 2025-10-31 00:45:26 +09:00
Lukas Wirth
00ace813d3
Merge pull request #20366 from Veykril/push-lmmtrpptrxom
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
minor: Cleanup `map_rust_child_diagnostics` a bit
2025-10-30 10:59:06 +00:00
Lukas Wirth
823d7197a0 minor: Cleanup map_rust_child_diagnostics a bit 2025-10-29 13:12:21 +01:00
Lukas Wirth
769ebafdc6
Merge pull request #20934 from Veykril/veykril/push-qtzmsqkzntpo
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Improve error recovery when parsing malformed function return types
2025-10-29 12:10:01 +00:00
Lukas Wirth
47c5af2f16 fix: Improve error recovery when parsing malformed function return types 2025-10-29 12:33:35 +01:00
Chayim Refael Friedman
d08d54f3c1
Merge pull request #20931 from SomeoneToIgnore/async-signature
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Show proper async function signatures in the signature help
2025-10-28 21:21:45 +00:00
Kirill Bulatov
7f2bac82c6 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)
5d905576d4
Merge pull request #20930 from ChayimFriedman2/builtin-res-block
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Fix handling of blocks modules that are not the root module
2025-10-28 14:16:33 +00:00
Chayim Refael Friedman
1ba3165b81 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
44227800c6 Fix handling of blocks modules that are not the root module 2025-10-28 12:57:26 +02:00
Shoyu Vanilla (Flint)
6155980340
Merge pull request #20906 from ChayimFriedman2/opaques-ns
Some checks are pending
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Properly support opaques
2025-10-28 08:03:59 +00:00
Shoyu Vanilla (Flint)
1e1c00f8d8
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
Shoyu Vanilla (Flint)
b50af95188
fix: Canonicalize flycheck output path 2025-10-28 15:49:38 +09:00
Chayim Refael Friedman
33a6f3359a
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
4fddcc6d57 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
7c810e9994
Merge pull request #20922 from Veykril/veykril/push-pznvunxxozkq
Some checks failed
autopublish / publish (push) Has been cancelled
release / dist (aarch64-apple-darwin) (push) Has been cancelled
release / dist (x86_64-apple-darwin) (push) Has been cancelled
release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
release / dist (i686-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
release / publish (push) Has been cancelled
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
perf: Reduce `client_commands` allocations in proto conversion
2025-10-27 23:00:39 +00:00
Lukas Wirth
3e2e8a8771 perf: Reduce client_commands allocations in proto conversion 2025-10-27 23:48:20 +01:00
Chayim Refael Friedman
c8472a7d9c
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
727d2aae89 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)
311d22c774
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
Shoyu Vanilla
5f3539a566 fix: Resolve target-dir more precisely 2025-10-28 03:54:00 +09:00
Chayim Refael Friedman
4c709bad14 Consider all matches for flyimport even when searched with a qualifier 2025-10-27 19:26:27 +02:00
Chayim Refael Friedman
f7a13f0a41
Merge pull request #20369 from ChayimFriedman2/rename-self2
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
9d038a94c2 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
537b31b55a 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
1621bd5b7c
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
049767e6fa
Merge pull request #20914 from ShoyuVanilla/next-solver-tests
Some checks failed
release / dist (aarch64-apple-darwin) (push) Has been cancelled
release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-apple-darwin) (push) Has been cancelled
release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
release / dist (i686-pc-windows-msvc) (push) Has been cancelled
autopublish / publish (push) Has been cancelled
release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / build_metrics (push) Has been cancelled
release / publish (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
Add regression tests for some fixed `A-ty` issues
2025-10-26 17:41:19 +00:00
Shoyu Vanilla
c6e605388f Add regression tests for some fixed A-ty issues 2025-10-27 02:18:52 +09:00
Shoyu Vanilla (Flint)
803ab10db4
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
b0b108c370
Merge pull request #20837 from osdyne/extension-configuration
Add an Extension Config API
2025-10-26 12:34:05 +00:00
Michael Gruenewald
291aa7a602 Don't add cargo to requiresServerReloadOpts 2025-10-26 13:22:52 +01:00
A4-Tacks
d2f97dd2eb
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
808c931714
Merge pull request #19918 from A4-Tacks/remove-else-branches
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Add ide-assist: remove else branches
2025-10-26 08:35:08 +00:00
Lukas Wirth
a23b39372f
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
036ab604da
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
ea2c027419
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
dcc9af4bd0
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
bb21f0be13
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
daf1cd953f
Merge pull request #20759 from A4-Tacks/strongly-typed-conv-to-guarded
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Fix untyped syntax tree ans casts for convert_to_guarded_return
2025-10-25 17:14:53 +00:00
A4-Tacks
1607d77a30
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)
09bee253dd
Merge pull request #20911 from chenyukang/yukang-fix-never-panic
Some checks are pending
metrics / generate_final_metrics (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Use tracing error when received compiler message for unknown package
2025-10-25 05:37:52 +00:00
A4-Tacks
ad37af4c6f
Fix untyped syntax tree ans casts for convert_to_guarded_return 2025-10-25 13:16:57 +08:00
yukang
76f9b4e36c Use tracing error when received compiler message for unknown package 2025-10-25 09:14:35 +08:00