Nicholas Nethercote
d29f60e485
Clean up src/dst transmute mess.
...
- Remove the vacuous `Types`, which provides extremely little value.
- Make sure `src` comes before `dst` in all transmute-related functions.
(Currently it's a mix: sometimes `src` is first, sometimes it is
second`.)
2026-01-12 09:22:58 +11:00
Martin Nordholts
72a6823f8b
rust-analyzer: Also use semiopaque instead of semitransparent
...
Like in rustc.
2026-01-08 19:14:45 +01:00
bors
d776d9e484
Auto merge of #150640 - AprilNEA:mgca-merge-associated-const-equality, r=BoxyUwU
...
Merge `associated_const_equality` feature gate into MGCA
Tracking Issues: rust-lang/rust#132980 rust-lang/rust#92827
Merge `associated_const_equality`(ACE) feature gate into `min_generic_const_args`(MGCA).
- Replaces `features().associated_const_equality()` checks with `features().min_generic_const_args()`
- Updates the parser to gate associated const equality under `min_generic_const_args`
- Moves `associated_const_equality` to the removed features list
- Removes the `associated_const_equality` method from the `Features` trait
- Updates all affected tests and tools (rust-analyzer, clippy)
Closes rust-lang/rust#150617
r? `@BoxyUwU`
2026-01-06 01:36:53 +00:00
AprilNEA
820bfac635
Merge associated_const_equality feature gate into MGCA
...
This removes `associated_const_equality` as a separate feature gate and makes it part of `min_generic_const_args` (mgca).
Key changes:
- Remove `associated_const_equality` from unstable features, add to removed
- Update all test files to use `min_generic_const_args` instead
- Preserve the original "associated const equality is incomplete" error message by specially handling `sym::associated_const_equality` spans in `feature_gate.rs`
- Rename FIXME(associated_const_equality) to FIXME(mgca)
2026-01-05 12:31:42 +08:00
Chayim Refael Friedman
6a1246b69c
Merge pull request #21403 from ShoyuVanilla/missing-assoc-specialize
...
fix: Suppress false positive missing assoc item diag on specialization
2026-01-04 18:36:03 +00:00
Shoyu Vanilla
ee12c4021a
fix: Suppress false positive missing assoc item diag on specialization
2026-01-05 02:16:12 +09:00
Shoyu Vanilla (Flint)
3493b4cb64
Merge pull request #21369 from A4-Tacks/migrate-move-guard
...
Migrate `move_arm_cond_to_match_guard` assist to use `SyntaxEditor`
2026-01-04 15:41:17 +00:00
Lukas Wirth
dc36ad329f
Add a README.md to proc-macro-srv-cli
2026-01-04 12:09:44 +01:00
Lukas Wirth
148028ba33
internal: Clean up proc-macro-srv callback trait
2026-01-04 11:46:34 +01:00
bit-aloo
41f424522b
remove serde from span
2026-01-03 20:13:41 +05:30
bit-aloo
49c15b2eeb
remove span related API from proc-macro-srv/cli/api and remove span from procmacrosrvcli
2026-01-03 20:10:00 +05:30
bit-aloo
89831ff809
Add span to callbacks and correct the source_text implementation
2026-01-03 19:18:36 +05:30
bit-aloo
cff51826dd
refactor subreq/resp variants to carry span
2026-01-03 19:15:42 +05:30
bit-aloo
eef4f3d24c
add span to proc-macro-srv-cliy
2026-01-03 19:13:06 +05:30
bit-aloo
c7f8f6b557
added serde to span
2026-01-03 19:06:26 +05:30
bit-aloo
c129572c67
Replace sourcedb with expanddb
2026-01-03 19:04:35 +05:30
Lukas Wirth
0b0d29933a
Merge pull request #21396 from Veykril/push-vowxzulyqvuu
...
perf: Only compute lang items for `#![feature(lang_items)]` crates
2026-01-03 10:15:06 +00:00
Lukas Wirth
8facf7344d
perf: Only compute lang items for #![feature(lang_items)] crates
2026-01-03 11:06:33 +01:00
Lukas Wirth
036c71ad81
Merge pull request #21377 from Shourya742/2025-12-31-add-more-proc-macro-bidirectional-flow
...
proc-macro-srv: support file and local_file via bidirectional callbacks
2026-01-03 10:05:23 +00:00
bit-aloo
26b3c82562
use fullpath instead of filename
2026-01-03 15:13:53 +05:30
Lukas Wirth
e3268f7405
Merge pull request #21391 from Veykril/push-zttspnlnqpto
...
internal: Reduce `impl_signature` query dependencies in method resolution
2026-01-03 09:37:31 +00:00
bit-aloo
3bae2c75c3
emit same info via localfilename and filename
2026-01-03 09:12:32 +05:30
benodiwal
0082ec17fb
fix: add location links for type, const, and lifetime parameters in inlay hints
2026-01-03 01:58:48 +05:30
bit-aloo
7c93b983fc
for filename, use localfilename first and then resort to other construction
2026-01-03 01:24:03 +05:30
benodiwal
641a62e776
feat: added tests
2026-01-03 00:59:03 +05:30
benodiwal
151698c38d
fix: add location links for generic type parameters in inlay hints
2026-01-03 00:52:19 +05:30
Lukas Wirth
439c095212
Reduce impl_signature query dependencies in method resolution
2026-01-02 15:09:20 +01:00
Lukas Wirth
e19dfc83c3
Merge pull request #21388 from Veykril/push-uyrsywszqotk
...
Remove unnecessary `ConstLiteralRef` enum
2026-01-02 12:30:33 +00:00
Lukas Wirth
8ecf6fcda6
Remove unnecessary ConstLiteralRef enum
2026-01-02 13:21:53 +01:00
Lukas Wirth
64908c90ba
Pre-allocate intern storages with 64kb of data
...
To reduce the amount of re-allocating the hashtables which can be expensive given the need to re-hash
2026-01-02 13:20:06 +01:00
Lukas Wirth
49b499084e
minor: Fix some minor FIXMEs
2026-01-02 10:19:02 +01:00
Shoyu Vanilla (Flint)
ff83c9fa23
Merge pull request #21361 from A4-Tacks/sugg-name-prefix-try-into
...
Add useless prefix `try_into_` for suggest_name
2026-01-02 02:16:10 +00:00
bit-aloo
405c0d60ff
add nits
2026-01-02 05:44:43 +05:30
bit-aloo
94674e87c2
add roundtrip abstraction to remove subrequest subresponse boilerplate code
2025-12-31 17:54:22 +05:30
bit-aloo
03d58fedb2
add bidirectional flow for local file method
2025-12-31 17:50:20 +05:30
bit-aloo
c734ae11e9
add bidirectional flow for file method
2025-12-31 17:50:14 +05:30
Kirill Bulatov
7601cb0c3c
Allow finding references from doc comments
2025-12-31 12:59:59 +02:00
bit-aloo
2a37f9c254
remove unwanted comment
2025-12-31 14:23:56 +05:30
Chayim Refael Friedman
76d44ffb3f
Merge pull request #21375 from A4-Tacks/impl-trait-target-and-dyn-hint
...
Fix incorrect dyn hint in `impl Trait for`
2025-12-31 08:30:52 +00:00
A4-Tacks
526fed2faf
Fix incorrect dyn hint in impl Trait for
...
Example
---
```rust
trait T {}
impl T for {}
```
**Before this PR**
```rust
trait T {}
impl T for {}
// ^ dyn
```
**After this PR**
```rust
trait T {}
impl T for {}
```
2025-12-31 16:18:33 +08:00
Lukas Wirth
135d1de9c7
Merge pull request #21370 from ChayimFriedman2/macro-brace-style
...
feat: Add #[rust_analyzer::macro_style()] attribute to control macro completion brace style
2025-12-31 07:39:54 +00:00
Jefffrey
a50a99acc2
fix: don't fire non_camel_case_types lint for structs/enums marked with repr(C)
2025-12-31 15:29:51 +09:00
Chayim Refael Friedman
08ab44224b
Adapt macros in rust-analyzer to new attribute
...
`match_ast!` cannot be ported because of a weird compiler bug: https://github.com/rust-lang/rust/issues/150518 .
2025-12-30 22:44:23 +02:00
Chayim Refael Friedman
55a083cacb
Add #[rust_analyzer::macro_style()] attribute to control macro completion brace style
2025-12-30 22:44:18 +02:00
Chayim Refael Friedman
288ca5dc67
Compress token trees for best memory usage
2025-12-30 12:56:56 +02:00
Lukas Wirth
f4aca71780
Merge pull request #21367 from ChayimFriedman2/upvars
...
fix: Have an `upvars_mentioned()` query that only computes what upvars a closure captures
2025-12-30 09:00:13 +00:00
A4-Tacks
257e552ab0
Migrate move_arm_cond_to_match_guard assist to use SyntaxEditor
2025-12-30 11:15:37 +08:00
Chayim Refael Friedman
d7117056a3
Merge pull request #21308 from dfireBird/runnable-subcommand-config
...
feat: implement configuration to change sub command for test, bench and doctest
2025-12-29 17:20:29 +00:00
Chayim Refael Friedman
d5846556d9
Have an upvars_mentioned() query that only computes what upvars a closure captures
...
It's required for coercion, where we now use it, as well as for other things.
2025-12-29 19:16:07 +02:00
dfireBird
52af033856
chore: add test_name placeholder in config
2025-12-29 22:32:20 +05:30