Changelog #299
Commit: 049767e
Release: 2025-10-27 (v0.3.2658)
New Features
-
#20854(first contribution) parse script frontmatter. -
#20837(first contribution) exposeaddConfigurationAPI from the Code extension. -
#20329,#20445,#20446,#20454,#20470,#20447,#20496,#20497,#20502,#20506,#20523,#20527,#20537,#20545,#20553,#20563,#20586,#20609,#20578,#20647,#20645,#20649,#20654,#20665,#20671,#20677,#20664,#20717,#20728,#20733,#20735,#20738,#20765,#20777,#20785,#20814,#20834,#20841,#20867,#20873,#20882,#20888,#20896,#20893,#20895switch from Chalk to the next trait solver. -
#20632support navigation on primitives. -
#20760addall,anyandnotcompletions in#[cfg]. -
#19771add "Generate blanket trait impl" assist. -
#20705add "Flip range expression" assist. -
#19918add "Removeelsebranches" assist. -
#20855improve fixture support.
Fixes
-
#20583(first contribution) addrust-analyzer.semanticHighlighting.comments.enableoption. -
#20697,#20745(first contribution) fix negative literals in const generics. -
#19867(first contribution) allow&raw [mut | const]for union fields in safe code. -
#20432(first contribution) improve identifier pattern handling in assists. -
#20891(first contribution) addnegationsemantic token type. -
#20425(first contribution) add parser heuristic to warn on unterminated strings. -
#20520add option to hide reborrows in adjustment inlay hints. -
#20721implement fallback properly. -
#20755add#[doc = include_str!(…)]completion. -
#20423make import sorting order follow the 2024 edition style. -
#20801small fixes for import insertion. -
#20866runcargo metadataon sysroot right from its path. -
#20554improve handling of theenv!macro. -
#20587deduplicate methods in completion by function ID and not by name. -
#20803replace--show-outputtask defaults with--nocapture. -
#20459track diagnostic generations per package. -
#20689make flycheck clearing dependency-aware. -
#20635don’t trigger two flychecks when saving files that are part of targets. -
#20402add more workarounds for incorrect startup diagnostics. -
#20787fix spuriousincorrect_generics_lenon generic enum variants used through type aliases. -
#20770don’t triggertrait-impl-incorrect-safetyon unresolved traits. -
#20642make#[target_feature]safe on WASM. -
#20504avoid infinite recursion while lowering associated type bounds from supertraits. -
#20720prevent rustup from automatically installing toolchains. -
#20528masquerade as nightly cargo when invoking flycheck with-Zscript. -
#20612fix "Expand macro recursively" on nested macro calls. -
#20517only compute unstable paths on nightly toolchains for IDE features. -
#20639resolve paths to snapshot test libraries absolutely. -
#20547don’t highlight unrelated unsafe operation onunsafeblocks. -
#20579don’t pass--targettorustctwice while fetching target data layout. -
#20475don’t duplicate lang items with overridden sysroot crates. -
#20518fixelsecompletion inlet _ = if x {} $0. -
#20390addif-elsecompletions inletstatements and argument lists. -
#20620,#20657addelsekeyword completion afterletstatements. -
#20653don’t output an empty generic parameters list ingenerate_function. -
#20708fix panic indestructure_struct_binding. -
#20702fixelsecompletion beforeelsekeyword. -
#20700fixextract_variableonif-let. -
#20709fix panic indestructure_struct_binding. -
#20710fix shorthand fields inunused_variables. -
#20661tighten up expected type completions inif. -
#20507handle expectedreturntype in completions. -
#20725fix lifetime elision handling forFn-style trait bounds. -
#20624fixlifetime_bounds. -
#20723fixbind_unused_paramwith binding modes and underscore prefixes. -
#20722fixpull_assignment_upon chainedifs. -
#20679fix type completion with nested patterns. -
#20592handle closures insidematchinadd_braces. -
#20543don’t suggest invalid transformation inreplace_if_let_with_match. -
#20742don’t turn unused variables into raw identifier. -
#20598supportletchains inconvert_to_guarded_return. -
#20731handle tuple and slice rest patterns inexpand_rest_pattern. -
#20729addconstgeneric parameter keyword completion. -
#20793add missing parentheses on ambiguity inmissing_unsafe. -
#20513completeletinlet-chains. -
#20812completeselfparameters in associated trait functions. -
#20805improve parse errors forstaticandconst. -
#20824fix completion type analysis in empty closures. -
#20817supportadd_explicit_typeon parameters inletstatements. -
#20816handle closure return type adjustments inadd_return_type. -
#20526supportlet-chains for.letcompletions. -
#20788allow more string literal conversions from raw strings. -
#20838don’t makeconvert_to_guarded_returnapplicable onlet-else. -
#20758supportelseblocks with!return type inconvert_to_guarded_return. -
#20772supportmatchinsideifinpull_assignment_up. -
#20673supportbreakwith value in completions. -
#20858include trailing underscores when hiding inlay hints. -
#20872add missing rest pattern inconvert_named_struct_to_tuple_struct. -
#20880fix invalid rest pattern inconvert_tuple_struct_to_named_struct. -
#20455fix indent inconvert_match_to_let_else. -
#20509fix indent inmove_guard_to_arm_body. -
#20613fix indent inunresolved_fielddiagnostic fixes. -
#20845fix indent inadd_braces. -
#20850fix indent inadd_missing_match_arms. -
#20670improve incomplete statement heuristic. -
#20831add shorthand record field completions. -
#20571add type keyword completions. -
#20886improve handling of missing names inMethodCallExpr. -
#20905fix array inhabitedness check. -
#20889improve field completion parentheses heuristic. -
#20658completeelsein more expressions. -
#20611add parentheses for precedence inreplace_arith_op. -
#20912completeletbefore expression inif. -
#20764handleif-letinconvert_to_guarded_return. -
#20712handle shorthand field patterns indestructure_tuple_binding. -
#20589place new module outsideimplblock inextract_module. -
#20913supportlet-chains inreplace_is_method_with_if_let_method. -
#20626improve whitespace inmake::struct_field_list. -
#20534improve semicolon handling intoggle_macro_delimiter. -
#20442only import the item in "Unqualify method call" when needed. -
#20686only offergenerate_default_from_enum_variantwhen the variant name is completely selected. -
#20771offerinvert_ifonelse. -
#20844offeradd_braceson assignments. -
#20599offerapply_demorganon!. -
#20456support guards inreplace_match_with_if_let. -
#20714allow trailing comma inremove_dbg!. -
#20511don’t offerconvert_integer_literalon selections. -
#20512don’t offerreplace_arith_opon selections. -
#20736don’t offerinvert_ifonif-letchains. -
#20682don’t offerchange_visibilityfor variant fields. -
#20688reducereplace_is_method_with_if_let_methodapplicability range. -
#20759fix casts and use typed syntax tree API inconvert_to_guarded_return. -
#20876fixsignature_helpLSP conversion creating invalid UTF-16 offsets.
Internal Improvements
-
#20379(first contribution) consistently use---for horizontal rules. -
#20483(first contribution) optimize VS Code extension icon. -
#20794(first contribution) deduplicatesortanddedupcalls. -
#20667add regression test for The One and Only Issue. -
#20376mergeTraitandTraitAliashandling. -
#20399enable warning logs by default. -
#20706avoid allocating instdx::replace. -
#20730,#20748,#20860migrateexpand_record_rest_pattern,replace_arith_opandgenerate_single_field_struct_fromassists toSyntaxEditor. -
#20796bumpsalsa. -
#20852do not enableforce-always-assertby default. -
#20631remove support for#[register_attr]. -
#20804pass--targettoxtask install. -
#20683expose iterators over the types inInferenceResult. -
#20669add a testing guide. -
#20633clarify introduction in the README and manual. -
#20638add FAQ entry about Cargo build lock and cache conflicts. -
#20560add progress bars to more places inanalysis-stats. -
#20652improverust-analyzer diagnostics. -
#20774buildx86_64-apple-darwinbinaries onmacos-14.