Releases: rust-lang/rust-analyzer
nightly
Merge pull request #19733 from ShoyuVanilla/issue-19724 fix: Implement mut to const ptr cast for method resolution
2025-04-28
Commit: d8887c0
Release: 2025-04-28
(v0.3.2441
)
New Features
#19634
,#19629
allow unsetting env vars inextraEnv
configs.#19479
,#19676
,#19672
,#19675
add some new diagnostics for incorrect generic arguments.#19692
add an assist to remove underscores from used variables.#19653
parsesuper let
.#19643
parse generic consts.
Fixes
#19622
(first contribution) fix some bugs in the string rewriting assists.#19604
(first contribution) add semicolon touse
completion.#19657
improve support foroffset_of!()
.#19636
fixcompletion_snippets_custom
config always erroring out.#19650
support unstableUnsafePinned
struct in type layout computation.#19647
fix panics in inlay hints that produce empty text edits for closure return types.#19684
report error when unable to parse aDiscoverProjectMessage
.
Internal Improvements
#19678
arena-allocateLifetimeRef
s.#19655
fold hygiene map into the bindings themselves.#19677
removeWherePredicateTypeTarget
.#19644
make predefined symbolsconst
instead ofstatic
.#19688
add some missingshrink_to_fit()
s and upgradedashmap
andhashbrown
.#19624
bumpchalk
to make the generic parameter order matchrustc
.#19661
bumpsalsa
.
See also the changelog post.
2025-04-21
Merge pull request #19642 from ChayimFriedman2/fix-warn fix: Two config code changes
2025-04-14
Commit: 8365cf8
Release: 2025-04-14
(v0.3.2379
)
New Features
Fixes
#19432
fix another false positive invalid cast diagnostic.#19563
walk const block expressions for unsafety checking.#19541
prefer imports of matching types for argument lists.#19571
fix missing test update notifications when there are hyphens in the target name and exclude dependencies from "Run all".
Internal Improvements
#19425
(first contribution) make drop glue info less verbose.#19462
,#19558
,#19570
lowerTypeRef
s before type inference.#19536
port closure inference fromrustc
.#19566
use thecallable_item_signature
query indyn
-compatibility checks.#19550
turnLifetimeRef
into an enum.#19562
tweak invalid signature bitflags.#19573
render sigantures in "View HIR" command.#19512
fix somestdx
lints.#19559
switch to Rust 1.86.#19565
addprime-caches
subcommand.
See also the changelog post.
2025-04-07
Commit: 588948f
Release: 2025-04-07
(v0.3.2370
)
Fixes
#19526
(first contribution) useconstant
, notconst
inrustdoc
links.#19447
addimpl for
completion.#19515
don't drop references with more than one definition.#19501
fix a regression in MBE expansion.#19531
fixformat_args!
lowering for 1.87.#19522
fix panic in "View crate graph".#19523
fix proc macro server spawning.#19514
fix bracket colorization in strings.
Internal Improvements
#19490
(first contribution) fix panic inanalysis-stats
progress line slicing.#19492
avoid a needlessblock_def_map()
access.#19496
replace some#[salsa::invoke]
s withinvoke_actual
.#19494
unwrap some unnecessaryArc
s.#19482
clean up parameter name inlay hint filtering heuristics.#19509
dropAssistKind::None
.#19484
fix new lints in nightly.#19520
align usage ofdefault
andnew
with style guide.#19485
clean up CI a bit.#19493
disablerust-cache
in CI.#19533
set up a job matrix forrust-cross
.#19519
addrust-analyzer.cargo.noDeps
option.
See also the changelog post.
2025-03-31
Commit: fb133c8
Release: 2025-03-31
(v0.3.2362
)
New Features
#19375
allow crate authors to disable completions using#[rust_analyzer::completions]
.#19388
parseunsafe
record fields.#19347
add diagnostic for ambiguous&impl 'a + Sized
.
Fixes
#19475
(first contribution) fix debug source map.#19433
fixlet else
toif let else
conversion.#19435
fix ranges in closure return inlay hints.#19466
fix a bug in orphan rule check.#19474
fix, clarify and require a value forproc_macro_cwd
ofCrateData
.
Internal Improvements
#19440
replace customThinVec
with thethin-vec
crate.#19451
use medium durability for crate graph changes, high for library source files.#19359
emit lines of code and item tree counts inanalysis-stats
.#19457
removesalsa
dependency from proc macro server again.#19446
,#19448
run tests undercargo miri
.#19422
clean up VS Code output channels, dropdebug.openDebugPane
.#19430
bump dependencies.
See also the changelog post.
2025-03-24
Commit: 37acea8
Release: 2025-03-24
(v0.3.2353
)
Fixes
#19384
fix stale "BuildingCrateGraph
" report.#19416
handle multiple#[repr(..)]
attributes correctly.#19362
speed up resolving a "Generate delegate method" assist.#19348
add text edit support for return type hints on non-block body closures.#19413
properly calculate the layout of unsized tuple pointers.#19320
mark manual trait implementations as unsafe when replacing a derive.#19400
fix syntax highlighting for&raw const
/&raw mut
in standalone files.#19397
add postfix completion for const block.#19005
fix testing of packages with multiple targets.
Internal Improvements
#19408
replace#[derive]
s to reduce codegen burden for generated syntax types.#19390
do not useExpander
in associated item lowering.#19412
remove some unnecessary usages ofSemantics
.#19429
remove unused dependencies.#19419
render layout and other extra information when hoveringSelf
.#19329
add some docs toproc-macro-api
.#19379
bumpEdition::CURRENT
to 2024.#19378
triggersalsa
LRU at the end ofanalysis-stats
.#19315
do not generate docs with inxtask codegen --check
.#19391
clean upproc-macro-srv
CI job.
See also the changelog post.
2025-03-17
Commit: b0632f7
Release: 2025-03-17
(v0.3.2345
)
Announcement
This release brings two major changes, which might make it slightly spicier than usual.
The first is upgrading to the latest version of salsa
, the incremental evaluation framework used by rust-analyzer.
This will make it possible to implement parallel evaluation and persistency in the future.
The second change is to use salsa
for the crate graph, making it incremental.
Adding or removing a dependency, or editing a build script or proc macro, will now invalidate only the affected crates instead of the entire workspace.
New Features
-
#19079
,#19332
warn when a rename will change the meaning of the program:Screen.Recording.2025-02-02.015127.mp4
-
#18964
put a new batch ofsalsa
on rust-analyzer. -
#19337
putsalsa
on the crate graph. -
#19271
add "Convertfor
intowhile let
" assist.
Fixes
-
#19344
add icons to VS Code views: -
#19252
fix syntax fixup producing invalid punctuation. -
#19333
fix diagnostics being cleared right after being received. -
#19330
normalize projections in evaluated const display and layout calculation. -
#19363
display varargs in completion detail. -
#19325
rank ADT constructors as such for completion scoring. -
#19326
add missing name-ref parents to syntactic highlighting. -
#19327
fixpath
macro hygiene. -
#19311
log build script error output for Cargo projects. -
#19351
don't panic when the crate graph isn't ready. -
#19356
avoid recursively debug printing crates.
Internal Improvements
#19314
(first contribution)impl HasSource for VariantDef
.#19367
drop legacysalsa
.#19354
prepare for Return Type Notation (RTN) and add a diagnostic.#19232
bump chalk to get support for async closures.#19305
vendorquery-group-macro
in rust-analyzer.#19364
add missingwith_durability
calls.#19368
removeCrateGraphBuilder::iter_mut
.#19236
switch to the 2024 edition.#19369
do not error out for actions with no data to resolve.#19366
remove legacySyntaxContextId
re-export.#19228
split up some ADT queries.#19355
render root syntax contexts more clearly.#19343
makeGenericParamsCollector::type_or_consts
private.#19328
run proc-macro server tests in a separate CI job.#19334
remove generated mdbook files.
See also the changelog post.
2025-03-10
Commit: 5e7dd31
Release: 2025-03-10
(v0.3.2337
)
New Features
Fixes
#19226
(first contribution) improve completions that return a reference.#19279
(first contribution) addletm
and improvelet
keyword completion.#19308
bring back support for Rust 1.78 projects.#19261
support tuple structs inexpand_rest_pattern
.#19324
fix adding of brackets in "Inline variable".#19297
fix completion relevance check.#19290
warn whencargo metadata
fails.#19292
handle modifiers in punctuation highlighting.#19274
don't highlight unsafe definitions asunsafe
.#19295
make "rust-analyzer: Run" available in manifest file.
Internal Improvements
#19288
(first contribution) usesize_of
from the prelude.#19244
,#19275
warn when the active toolchain is too old.#19286
twiddle with therustup
invocation on CI.
See also the changelog post.
2025-03-04
Commit: 02862f5
Release: 2025-03-04
(v0.3.2330
)
New Features
#19243
allow unsetting default#[cfg]
s.
Fixes
#19226
(first contribution) improve completions that return a reference.#19261
support tuple structs inexpand_rest_pattern
.
Internal Improvements
See also the changelog post.