Commit graph

316870 commits

Author SHA1 Message Date
Laurențiu Nicola
0e022db2e9
Merge pull request #21607 from lnicola/fix-lockfile
minor: Fix lockfile
2026-02-09 05:31:31 +00:00
Laurențiu Nicola
f394d1e6c6 Fix lockfile 2026-02-09 07:21:53 +02:00
Lukas Wirth
36058bfc0f
Merge pull request #21571 from Wilfred/check_type_names
fix: Stale diagnostics with rust-project.json and rustc JSON
2026-02-07 13:17:19 +00:00
Lukas Wirth
cfe24614c5
Merge pull request #21570 from Wilfred/clarify_check_struct
internal: Clarify that CargoCheck applies to all check commands
2026-02-07 13:14:42 +00:00
Lukas Wirth
abc2fc08ad
Merge pull request #21380 from Veykril/push-nolvxuourwru
feat: Implement fine grained client side request cancellation support
2026-02-07 13:11:31 +00:00
Lukas Wirth
84c2a531ac Correctly implement client side request cancellation support 2026-02-07 14:02:13 +01:00
Lukas Wirth
729f384e48 Bump salsa 2026-02-07 14:02:13 +01:00
Lukas Wirth
c14eb7f157
Merge pull request #21593 from rust-lang/dependabot/cargo/time-0.3.47
Bump time from 0.3.44 to 0.3.47
2026-02-07 12:50:45 +00:00
dependabot[bot]
63eefa9ee9
Bump time from 0.3.44 to 0.3.47
Bumps [time](https://github.com/time-rs/time) from 0.3.44 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.44...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-07 12:33:55 +00:00
Lukas Wirth
c91e70eb93
Merge pull request #21488 from Veykril/push-ptvulypwwmvz
internal: Remove `Edition::CURRENT_FIXME`
2026-02-07 12:23:06 +00:00
Lukas Wirth
3ee0286396 internal: Remove Edition::CURRENT_FIXME 2026-02-07 13:14:17 +01:00
Lukas Wirth
86cdf24320
Merge pull request #21599 from Veykril/push-oqmszvwttzsz
internal: Simplify binding hash computation in syntax highlighting
2026-02-07 08:37:41 +00:00
Lukas Wirth
6fde77cd60 internal: Simplify binding hash computation in syntax highlighting 2026-02-07 09:28:00 +01:00
Lukas Wirth
a2b126b6e6
Merge pull request #21569 from ChayimFriedman2/parens-multi-impl-trait
fix: Cover more cases where we need parentheses in `&(impl Trait1 + Trait2)`
2026-02-05 11:18:56 +00:00
Lukas Wirth
82941ed155
Merge pull request #21573 from ChayimFriedman2/include-bytes-len
fix: Infer the expected len in `include_bytes!()`, to avoid mismatches
2026-02-05 11:18:24 +00:00
Lukas Wirth
5300804199
Merge pull request #21578 from ChayimFriedman2/reparse-unknown
fix: Use `display_source_code()` in `ReferenceConversion`
2026-02-05 11:16:39 +00:00
Lukas Wirth
934eebda66
Merge pull request #21579 from ChayimFriedman2/cycle
fix: Lowering cycle fixes
2026-02-05 11:16:15 +00:00
Lukas Wirth
e21584e616
Merge pull request #21580 from Wilfred/display_command_shortened
fix: Truncate display version of commands consistently
2026-02-05 11:15:12 +00:00
Lukas Wirth
0a4871cbaa
Merge pull request #21585 from Act0r1/docs/improve-documentation
docs: improve documentation
2026-02-05 11:14:27 +00:00
yea8er
a72f7fefa4 docs: use triple backticks for pacman command 2026-02-04 18:13:17 +03:00
Chayim Refael Friedman
ec6d039cec
Merge pull request #21526 from A4-Tacks/comp-not-in-cond
fix: Fix not complete `.not` in condition
2026-02-04 10:19:25 +00:00
yea8er
9ecd6268f5 docs: additional improvements 2026-02-04 11:50:41 +03:00
yea8er
51abdcaaf5 docs: remove shell prompt symbols and fix code block languages 2026-02-04 11:45:07 +03:00
Wilfred Hughes
34ca20198f fix: Truncate display version of commands consistently
In #20327 we started truncating custom check commands so they render
nicely in the IDE. This was then accidentally undone in
9c18569d0c87d7f643db50b4806b59642762f1c3, and ended up making the
command summary longer (it included full paths).

We ended up with a `Display` implementation and a `display_command`
function that both tried to solve the same problem. I've merged and
simplified the logic and added tests.
2026-02-03 15:53:41 +00:00
A4-Tacks
b83b3754c2
fix: Fix not complete .not in condition
Example
---
```rust
fn foo(cond: bool) {
    if cond.$0
}
```

**Before this PR**

```text
...
sn deref         *expr
sn ref           &expr
...
```

**After this PR**

```text
...
sn deref         *expr
sn not           !expr
sn ref           &expr
...
```
2026-02-03 17:47:48 +08:00
Chayim Refael Friedman
4c3600c082 Provide a cycle handler for GenericPredicates
Unfortunately it obscures bugs, but it's necessary because of malformed code.
2026-02-03 08:21:34 +02:00
Chayim Refael Friedman
b4f36ce8f4 Prevent cycles when lowering from supertrait elaboration
Have a separate query for it.
2026-02-03 08:21:34 +02:00
Chayim Refael Friedman
3988689d75 Use display_source_code() in ReferenceConversion
The usage of normal `display()` caused it to emit `{unknown}` which then failed to parse in `make::ty()`.

Really we should not use stringly-typed things here, but that's a change for another day.
2026-02-03 06:55:56 +02:00
Chayim Refael Friedman
492e3027a6
Merge pull request #21508 from A4-Tacks/move-guard-else-if
Support else-branch for move_guard
2026-02-03 04:22:36 +00:00
Chayim Refael Friedman
2afde4e089
Merge pull request #21557 from A4-Tacks/let-postfix-in-cond
feat: fallback let postfix completions in condition
2026-02-03 04:12:18 +00:00
Chayim Refael Friedman
8e3c55b4da
Merge pull request #21576 from ChayimFriedman2/remove-non-update
minor: Remove unnecessary `unsafe(non_update_types)`
2026-02-03 02:32:08 +00:00
Chayim Refael Friedman
ed58edc701
Merge pull request #21572 from goffrie/try
Implement the new homogeneous & heterogeneous try blocks
2026-02-03 02:31:38 +00:00
Chayim Refael Friedman
9415ddd9b5 Remove unnecessary unsafe(non_update_types) 2026-02-03 04:19:55 +02:00
Geoffry Song
383eb25297 Implement homogeneous & heterogeneous try blocks 2026-02-02 18:13:10 -08:00
Geoffry Song
07213f035e Add Residual, residual_into_try_type to minicore 2026-02-02 18:13:10 -08:00
Geoffry Song
dc1ac63b3b Parse try bikeshed T {} syntax 2026-02-02 18:13:10 -08:00
Chayim Refael Friedman
301ff3fc3c Infer the expected len in include_bytes!(), to avoid mismatches
Since we can't read the real file size.
2026-02-03 02:25:31 +02:00
Wilfred Hughes
93dece9ae7 fix: Stale diagnostics with rust-project.json and rustc JSON
PR #18043 changed flycheck to be scoped to the relevant package. This
broke projects using check commands that invoke rustc directly,
because diagnostic JSON from rustc doesn't contain the package ID.

This was visible in the rust-analyzer logs when RA_LOG is set to
`rust_analyzer::flycheck=trace`.

Before:

    2026-02-02T07:03:48.020184937-08:00 TRACE diagnostic received flycheck_id=0 mismatched types package_id=None scope=Workspace
    ...
    2026-02-02T07:03:55.082046488-08:00 TRACE clearing diagnostics flycheck_id=0 scope=Workspace

After:

    2026-02-02T07:14:32.760707785-08:00 TRACE diagnostic received flycheck_id=0 mismatched types package_id=None scope=Package { package: BuildInfo { label: "fbcode//rust_devx/rust-guess-deps:rust-guess-deps" }, workspace_deps: Some({}) }
    ...
    2026-02-02T07:14:48.355981415-08:00 TRACE clearing diagnostics flycheck_id=0 scope=Package { package: BuildInfo { label: "fbcode//rust_devx/rust-guess-deps:rust-guess-deps" }, workspace_deps: Some({}) }

Previously r-a assumed that a diagnostic without a package ID applied
to the whole workspace. We would insert the diagnostic at the
workspace level, but then only clear diagnostics for the package.

As a result, red squiggles would get 'stuck'. Users who had fixed
compilation issues would still see the old red squiggles until they
introduced a new compilation error.

Instead, always apply diagnostics to the current package if flycheck
is scoped to a package and the diagnostic doesn't specify a
package. This makes CargoCheckEvent(None) and CargoCheckEvent(Some(_))
more consistent, as they now both match on scope.
2026-02-02 18:31:25 +00:00
Wilfred Hughes
df2a3f8e04 internal: Document and rename DiagnosticsReceived variants 2026-02-02 18:31:18 +00:00
Wilfred Hughes
dbb9b622d5 internal: Clarify that CargoCheck applies to all check commands
CargoCheckMessage and CargoCheckParser were misleading, because they
could apply to any tool that emits diagnostics. For example, it may be
rustc directly rather than via cargo.

Clarify this in the names. This is most noticeable when working on
custom check commands in rust-project.json.
2026-02-02 16:25:31 +00:00
Chayim Refael Friedman
c836e24b89 Cover more cases where we need parentheses in &(impl Trait1 + Trait2)
And refactor the mechanism to be more maintainable.
2026-02-02 17:49:41 +02:00
Lukas Wirth
c53d127990
Merge pull request #21565 from abdul2801/master
Remove outdated SyntaxErrorKind FIXME comment
2026-02-02 10:03:11 +00:00
Lukas Wirth
edf20f01e5
Merge pull request #21561 from Veykril/push-xvymvmuvzuyn
fix: Fix more glob issues
2026-02-02 10:02:12 +00:00
Abdul
41577bca06 refactor: Remove unused comments related to SyntaxErrorKind 2026-02-02 02:00:43 +05:30
Lukas Wirth
9aebf045fb
Merge pull request #21564 from Veykril/push-kvlytkymtvks
fix: Fix upvar analysis of nested closures
2026-02-01 13:08:38 +00:00
Lukas Wirth
16b79b3310 fix: Fix upvar analysis of nested closures 2026-02-01 13:59:13 +01:00
Lukas Wirth
f4292527f9
Merge pull request #21410 from Shourya742/2026-01-06-improve-bidirectional-cancellation
Make proc-macro bidirectional calls cancellation safe
2026-02-01 12:06:03 +00:00
bit-aloo
fcb55722d4
correct handler generic input 2026-02-01 15:19:03 +05:30
bit-aloo
9838073481
replace panic_any with resume_unwind on Client panic cancelled message 2026-02-01 15:17:00 +05:30
bit-aloo
50e2330dce
add suggested changes: have a internal error variant, comment on unwindsafe 2026-02-01 15:17:00 +05:30