Releases: rust-lang/rust-analyzer
Releases · rust-lang/rust-analyzer
nightly
Merge pull request #19826 from lnicola/sync-from-rust minor: Sync from downstream
2025-05-19
Commit: e464ff8
Release: 2025-05-19
(v0.3.2466
)
Fixes
#19793
keep derive macros when removing unused imports.#19687
highlight unsafe operations as related when the caret is onunsafe
.#19801
improveasm!
support.#19794
don't allow duplicate crates in theall_crates
list.#19807
don't overrideRUSTUP_TOOLCHAIN
if it is already set.
Internal Improvements
#19796
(first contribution) bump some dependencies for Cygwin support.#19808
run metrics on the beta channel.
See also the changelog post.
2025-05-12
Commit: 2bafe9d
Release: 2025-05-12
(v0.3.2457
)
New Features
#19740
add assist to unwrap a type into its single generic argument.
Fixes
#19751
(first contribution) supportCARGO_MANIFEST_PATH
.#19763
complete parentheses and method call arguments if the next line starts with a tuple.#19742
fix incorrect handling of unresolved non-module imports in name resolution.#19746
fix proc-macro API creating malformed negative literals.#19747
fixmove_bounds
assists with lifetimes.#19434
support negative numbers inconcat!
.#19764
don't deref twice in postfix snippets.#19738
fix panic on<T as Tr>
without an associated type.#19507
fix path resolution in outer doc comments.
Internal Improvements
#19721
handle parallelism better in cache priming.#19707
de-Arc
defmap queries.#19750
remove unnecessary token length check for macros in renaming.#19749
remove unnecessaryAsAny
trait.#19772
make diagnostics experimental by default.#19748
direct users to discussions instead of issues for questions.
See also the changelog post.
2025-05-05
Commit: 3b57c00
Release: 2025-05-05
(v0.3.2449
)
Fixes
#19704
add underscore mode for expression filling.#19733
implement mut to const pointer cast for method resolution.#19732
fix associated type bound variable starting index.#19699
properly escape raw names in labels.#19247
fix span info inmir::Operand
.#19723
improve parser recovery a bit.#19581
render more lifetimes.#19735
improve thelet
andletm
snippets.#19739
temporarily disable fixpoint for variance computation.
Internal Improvements
#19685
(first contribution) add PGO support toxtask install
.#19713
clean upcfg
check handling in expression store lowering.#19469
migratemerge_imports
,unmerge_imports
andlet_else_to_match
toSyntaxEditor
.#19708
de-Arc
language item queries.#19712
clean up cache priming cancellation handling.#19731
simplify macro call id construction.#19714
remove unnecessary extension trait.#19719
adjust panic context printing.#19727
remove a couple of unnecessaryclone
s.#19716
bump salsa (saves 212 MB onanalysis-stats self
).
See also the changelog post.
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
Commit: 723121e
Release: 2025-04-21
(v0.3.2431
)
New Features
#19582
,#19585
,#19586
,#19595
,#19597
,#19611
,#19614
,#19618
enable PGO for most builds (except ARM) for about a 20% speed-up.
Fixes
#19576
(first contribution) ignore morerustfmt
parsing errors.#19596
include generic parameters and default values in signature help.#19590
addpub(crate) mod
option for unlinked files.#19588
include inline format macro variables in "Extract into function".#19589
fix highlighting for tail expr in labelled blocks.#19619
sort notable traits in hover.#19612
fix a bug with predicate lowering of associated items.#19613
fix panic with implemented trait method that declares an extra lifetime parameter.#19579
prevent panics on cyclic dependencies dependency between closures.#19628
,#19642
don't ignore config values that fail to parse.
Internal Improvements
#19578
(first contribution) normalize drive letters in the VS Code extension.#19638
,#19639
(first contribution) add anchors to configuration options and fix dead links to the manual.#19616
makehir-ty
non-diagnostic queries transparent (saves 56 MB onanalysis-stats self
).#19617
makeHirFileId
,EditionedFileId
and macro filessalsa
structs (saves 165 MB onanalysis-stats self
).#19591
useast::TokenTree
inmake::expr_macro
.#19572
migrateexpand_rest_pattern
toSyntaxEditor
.#19568
migratedestructure_struct_binding
toSyntaxEditor
.#19569
return correct types formake::expr_*
methods.#19600
pin therustc
used for theproc-macro-src
CI job.#19521
cancel parallel CI jobs if tests fail.
See also the changelog post.
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.#19461
fix shadowing of modules by types.#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.