37067 Commits

Author SHA1 Message Date
bit-aloo
e344bfa7ea
add postcard abstraction inside Message trait 2025-11-24 15:28:28 +05:30
bit-aloo
f31214f96a
add postcard related methods to proc-macro-apo 2025-11-24 15:28:27 +05:30
bit-aloo
1dad405ebe
make postcard first class member of proc-macro-srv-cli 2025-11-24 15:28:14 +05:30
Lukas Wirth
cf4b1faea3
Merge pull request #21097 from Veykril/push-zpqupukpkrts
proc-macro-srv: Reimplement token trees via immutable trees
2025-11-24 09:09:16 +00:00
Lukas Wirth
9b767f3b98 Couple more tests 2025-11-24 09:59:07 +01:00
Chayim Refael Friedman
55ee7ec0b5
Merge pull request #21116 from xdBronch/push-okwnouotntqt
add deprecated semantic token for extern crate shorthand
2025-11-24 07:51:21 +00:00
Shoyu Vanilla (Flint)
9328757743
Merge pull request #20937 from A4-Tacks/duplicate-raw-const
Fix duplicate `const` complete after `raw`
2025-11-24 05:53:56 +00:00
A4-Tacks
6c75b7e828
Fix duplicate const complete after raw
Example
---
```rust
fn main() { let _ = &raw $0 }
```

**Before this PR**

```text
fn main() fn()
bt u32     u32
kw const
kw const
kw crate::
...
```

**After this PR**

```text
fn main() fn()
bt u32     u32
kw const
kw crate::
...
```
2025-11-24 10:18:01 +08:00
Shoyu Vanilla (Flint)
3f76561803
Merge pull request #20967 from A4-Tacks/replace-eager-lazy-and-then
Fix not applicable on `and` for replace_method_eager_lazy
2025-11-24 01:49:11 +00:00
Shoyu Vanilla (Flint)
d5dbf501a9
Merge pull request #21115 from ChayimFriedman2/upgrade-rustc
internal: Upgrade rustc crates
2025-11-24 01:29:07 +00:00
xdBronch
c03bc5b0c4 add deprecated semantic token for extern crate shorthand 2025-11-23 14:24:24 -05:00
Lukas Wirth
4a2b38f49f
Merge pull request #21098 from Aditya-PS-05/fix/include-bin-targets-outside-pkg-root
fix: include all target types with paths outside package root
2025-11-24
2025-11-23 18:02:36 +00:00
Chayim Refael Friedman
762b21c458
Merge pull request #21100 from xdBronch/deprecated-tokens
add semantic tokens for deprecated items
2025-11-23 15:24:13 +00:00
Aditya-PS-05
85fcca685f fix: sort and dedup include paths to prevent VFS issues 2025-11-23 20:45:57 +05:30
xdBronch
800c06e0ba add semantic tokens for deprecated items 2025-11-23 09:59:05 -05:00
Chayim Refael Friedman
cf0f1318f1 Upgrade rustc crates
Major changes:

 - `GoalSource::InstantiateHigherRanked` was removed.
 - `Interner::UnevaluatedConstId` was introduced, allowing further simplifications due to better typing. Generally we don't represent unevaluated consts like we should, but it's still better.
 - `PatternKind::NotNull` was introduced.
2025-11-23 16:23:19 +02:00
Chayim Refael Friedman
feb74f3b64
Merge pull request #21011 from dfaure-kdab/wip/dfaure/smolstr_pretty_printer
Provide a gdb pretty printer for smol_str::SmolStr
2025-11-23 14:04:07 +00:00
Chayim Refael Friedman
9455366d27
Merge pull request #21114 from lmmx/no-unused-tracing-attributes-feat
fix: no unused `tracing/attributes` feature
2025-11-23 13:51:54 +00:00
David Faure
0e24a86d36 Provide a gdb pretty printer for smol_str::SmolStr
Auto-loaded via the debugger_visualizer attribute.
Tested on smolstr's unittest:

$ RUSTFLAGS="-C debuginfo=2 -C opt-level=0" cargo test -p smol_str --no-run
$ rust-gdb target/debug/deps/test-a806b111557a7133
(gdb) break test::conversions
(gdb) run
(gdb) next
(gdb) print s
(and other locations in that file, to test the three cases: Inline,
Static and Heap)
2025-11-23 14:49:23 +01:00
Louis Maddox
2443cce41a fix: no unused tracing/attributes feature
- Discussed in https://github.com/rust-lang/rust-analyzer/issues/21107
- Avoids activating an `attributes` feature to crates that do not use it
- Updates the 6 crates that use attributes feature to specify it in
  their Cargo.toml: {hir,hir-def,hir-ty,ide-assists,ide-db,project-model}
2025-11-23 13:37:42 +00:00
Lukas Wirth
da7693b1c4
Merge pull request #21104 from Veykril/veykril/push-plqyyxsxvtyr
minor: Use `const_eval_static` query for statics
2025-11-23 13:06:52 +00:00
Lukas Wirth
e3751819fa Move transitive_rev_deps from db trait away 2025-11-23 13:56:59 +01:00
Lukas Wirth
404fbd3649 De-querify transitive_deps again 2025-11-23 13:48:53 +01:00
Lukas Wirth
d597ef1a4c
Merge pull request #21065 from A4-Tacks/refutable-in-pat-field
Fix always irrefutable in RecordPatField
2025-11-23 12:37:03 +00:00
Lukas Wirth
75b1e9b6d6
Merge pull request #20559 from A4-Tacks/pretty-num-explicit-enum-disc
Add pretty number for add_explicit_enum_discriminant
2025-11-23 12:35:22 +00:00
Lukas Wirth
55d4de123a
Merge pull request #21083 from A4-Tacks/cfg-pred-keyval-eq
feat: Completion ` = $0` after keyval cfg predicate
2025-11-23 12:33:05 +00:00
Lukas Wirth
04691ba244
Merge pull request #21093 from Young-Flash/convert_char_literal
feat: add assist to convert char literal
2025-11-23 12:31:23 +00:00
Lukas Wirth
9422cf5b87
Merge pull request #21111 from A4-Tacks/fill-guarded-match-arm
Fix not fill guarded match arm for add_missing_match_arms
2025-11-23 11:51:10 +00:00
Lukas Wirth
b2a6245c31
Merge pull request #21113 from ChayimFriedman2/byte-range
fix: Infer range patterns correctly
2025-11-23 11:36:20 +00:00
Chayim Refael Friedman
813c7d43db
Merge pull request #21017 from alexheretic/faster-inline-clones
Optimise `SmolStr::clone` 4-5x speedup inline, 0.5x heap (slow down)
2025-11-23 10:57:38 +00:00
Chayim Refael Friedman
ba27d77add Infer range patterns correctly
The type of a range pattern is the element's type, not the range type, unlike a range expression.
2025-11-23 12:55:02 +02:00
A4-Tacks
480561bf04
Fix not fill guarded match arm for add_missing_match_arms
Example
---
```rust
enum Foo { A, B }
fn main() {
    match Foo::A {
        Foo::A if false => todo!(),
    }
}
```

**Before this PR**

```rust
enum Foo { A, B }
fn main() {
    match Foo::A {
        Foo::A if false => todo!(),
        Foo::B => todo!(),
    }
}
```

**After this PR**

```rust
enum Foo { A, B }
fn main() {
    match Foo::A {
        Foo::A if false => todo!(),
        Foo::A => todo!(),
        Foo::B => todo!(),
    }
}
```
2025-11-23 16:20:24 +08:00
Shoyu Vanilla (Flint)
8c978e32c4
Merge pull request #21109 from Young-Flash/migrate_to_SyntaxEditor_api
internal: migrate to SyntaxEditor api for `replace_qualified_name_with_use`
2025-11-23 04:46:14 +00:00
Shoyu Vanilla (Flint)
e540a446de
Merge pull request #21090 from asuto15/fix/#21063
fix: Enhance remove_parentheses assist to handle return expressions
2025-11-23 04:42:55 +00:00
Young-Flash
d2e251c996 internal: migrate to SyntaxEditor api for replace_qualified_name_with_use 2025-11-23 12:29:57 +08:00
asuto15
14fa82bd8b
fix: Enhance remove_parentheses assist to handle return expressions 2025-11-23 12:51:05 +09:00
Lukas Wirth
7ba3c6546a Use const_eval_static query for statics 2025-11-22 23:08:50 +01:00
Lukas Wirth
66b6a1e474 Turn transitive dependencies into a query 2025-11-22 22:26:43 +01:00
Lukas Wirth
50621856a5
Merge pull request #21105 from Veykril/veykril/push-uksmwpqtzops
metrics: Fix metrics
2025-11-22 21:16:42 +00:00
Lukas Wirth
5817dc6472 metrics: Fix metrics 2025-11-22 22:06:42 +01:00
Lukas Wirth
782cda9969
Merge pull request #21103 from Veykril/veykril/push-lskorstqmvsv
analysis_stats: Record lang item queries, disable async drop in stats
2025-11-22 20:29:54 +00:00
Lukas Wirth
c16b39c131 analysis_stats: Record lang item queries, disable async drop in stats 2025-11-22 21:20:23 +01:00
Chayim Refael Friedman
2cba0b6be7
Merge pull request #21074 from Aditya-PS-05/fix/param-macro-names-21070
fix: show no error when parameters match macro names
2025-11-22 19:56:41 +00:00
Lukas Wirth
b5fc29e252 Fix up feature gates 2025-11-22 18:53:32 +01:00
Aditya-PS-05
d2ce37aef4 fix: don't qualify macro names in pattern bindings 2025-11-22 23:13:02 +05:30
Lukas Wirth
9e833abf5e
Merge pull request #21094 from Zalathar/dump
Print more macro information in `DefMap` dumps
2025-11-22 17:22:08 +00:00
Lukas Wirth
316110120d
Merge pull request #21051 from Young-Flash/refactor
refactor: remove unused code
2025-11-22 17:09:04 +00:00
Lukas Wirth
5409a40efc Implement rpc protocol changes 2025-11-22 16:58:35 +01:00
Aditya-PS-05
0b89a81c91 fix: Include all target types with paths outside package root 2025-11-22 19:30:31 +05:30
Lukas Wirth
c26d5f5c82 Simplify 2025-11-22 13:45:53 +01:00