Releases: rust-lang/rust-analyzer
2024-01-01
Changelog #214
Commit: 9db5155
Release: 2024-01-01 (v0.3.1791)
Fixes
#16221(first contribution) fix panic in some macros due to unhandledSyntaxContextId::SELF_REF.#16096(first contribution) update VS Code extension panic problem matcher.#16224fix handling of hygiene in the presence ofSyntaxContextId::SELF_REF.
Internal Improvements
#16217(first contribution) simplify implementation ofapply_document_changes.
See also the changelog post.
2023-12-25
Changelog #213
Commit: 85fb463
Release: 2023-12-25 (v0.3.1782)
New Features
#16088implement a rust-analyzer span-backed proc-macro server mode.
Fixes
#16155(first contribution) don't assume ASCII inremove_markdown.#16152resolve alias before resolving enum variant.#16163de-duplicate annotations.#16165update metavariable expression implementation.#16066,#16185remove unnecessary braces after with unused imports.#16167fully remove dummy spans.#16175correctly set and mark the proc-macro spans.#16178fix span marking for built-in function-like macros.#16184fixSemanticsnode caching in completion analysis.#16158desugar doc comments correctly for MBE.#16137complete exported macros in#[macro_use($0)].
Internal Improvements
#16182update world symbols request definiton, prefer focus range for macros.#16183clean upExpandera bit.#16143move proc macro knowledge out ofbase-dband intohir-expand.#16145split out aspancrate.#16150move outWithFixtureinto dev-only crate.#16151add minimal support for the 2024 edition.#16144sync from downstream.#16149don't fail changelog generation on missing PRs.
See also the changelog post.
2023-12-18
Changelog #212
Commit: 21b06c1
Release: 2023-12-18 (v0.3.1774)
Fixes
#15887(first contribution) fix tuple to named struct conversion inside macro calls some more.#16106fix syntax bridge assigning invalid spans to lifetime tokens.#16061fix fragment parser on incomplete parses.#16130remove subtrees with fake spans in syntax fix-up.#16131fix false positive type mismatch in const reference patterns.#16094replacedoc_comments_and_attrswithcollect_attrs, second round.#16089query for nearest parent block around the hint to resolve.
Internal Improvements
#16099improve import asset performance a bit, bump limit, and shorten the paths.#16125run rust-analyzer on rustc UI tests in metrics.#16115update built-in attributes.#16102,#16104publish and bumpline-index.#16123removeModuleIdfromTypeOwnerId.#16098sync from downstream.
See also the changelog post.
2023-12-11
Changelog #211
Commit: 457b966
Release: 2023-12-11 (v0.3.1766)
New Features
-
#15959replace TokenMap with an abstraction that matches reality. -
#16027add support for implicit format args:rename-format-args.mp4
-
#16034support multiple navigation targets when the focus range is in the macro definition site: -
#15990diagnose extra trait impl items: -
#15627prioritize import suggestions based on the expected type:
Fixes
-
#15896(first contribution) show placeholder while getting runnable list from server: -
#15515(first contribution) improve handling of binary expressions on the left-hand side of "Flip binary expression". -
#16009(first contribution) don't search forControlFlowas string in "Extract function". -
#16028make drop inlay hints more readable: -
#16024fix runnables working directory on Windows. -
#16054fix token downmapping being quadratic. -
#16016don't insert parantheses around fields in struct literals. -
#16041fixWideCharoffsets calculation inline-index. -
#16073replacedoc_comments_and_attrswithcollect_attrs. -
#16035fix diagnostics panicking when resolving to different files due to macros. -
#16037don't print proc-macro panic backtraces in the logs. -
#15486fix item tree loweringpub(self)topub(). -
#15705resolve Self type references in delegate method assist. -
#16048fixconcat_bytes!expansion emitting an identifier. -
#16058reduce spans for unresolved field and method diagnostics. -
#16060fix completion informat_args!with invalid template. -
#16078fix "View Mir", "View Hir" and "Interpret function" when the caret is inside a macro. -
#16039don't emit missing items diagnostic for negative impls. -
#16045fix panic with closure inside array length. -
#16055fall back to method resolution on unresolved field access.
Internal Improvements
#16036(first contribution) makeParamLoweringModeaccessible.#15986usetriomphe::Arc::from_iter.#16042bumpsalsa.#16022don't explicitly warn againstsemicolon_in_expressions_from_macros.#16038publishlsp-server 0.7.5.#16043bump and unlock some dependencies.
See also the changelog post.
2023-12-04
Changelog #210
Commit: e402c49
Release: 2023-12-04 (v0.3.1756)
New Features
-
#15879implement completion for callable fields: -
#16000initial support for implicit drop inlay hints (rust-analyzer.inlayHints.implicitDrops.enable):
Fixes
#15961(first contribution) improve error handling for top-levelletstatements.#15993(first contribution) use package root as working directory when launching the debugger.#15970fix variant resolution through for type aliases.#15994report error on comma after base struct functional update syntax.#15857fix spacing after using "Remove redundant parentheses".#15971don't report missing match arms for emptymatchbody.
Internal Improvements
#15946(first contribution) simplify workspace de-duplication.#15985bumptriomphe.#15912remove unusedPhantomData.
See also the changelog post.
2023-11-27
Changelog #209
Commit: 237712f
Release: 2023-11-27 (v0.3.1748)
New Features
-
#15956,#15962(first contribution) improve completion label details display: -
#15846(first contribution) add VS Code option to suppress internal error notifications.
Fixes
#15940ensure renames happen after edits.#15911handle default constant values intrait_impl_missing_assoc_itemdiagnostic.#15825better resolve associated item with type bound.#15754de-dup duplicate crates with differing origins inCrateGraphconstruction.
Internal Improvements
#15894(first contribution) make LSP initialization cancellable.#15944(first contribution) update Arch Linux package URL.#15921usePathSegment::qualifying_trait.#15960replaceoption.map(cond) == Some(true)withoption.is_some_and(cond).#15967switch to our ownsalsafork.
See also the changelog post.
2023-11-20
Changelog #208
Commit: 255eed4
Release: 2023-11-20 (v0.3.1740)
New Features
-
#15891diagnose some orphan trait impl cases: -
#15895diagnose missing associated items in trait impls: -
#15893diagnose incorrect unsafety for trait impls:
Fixes
Internal Improvements
#15875fixPathSegmentgrammar.#15899,#15917sync from downstream.#15874migrate assists to the structured snippet API, part 4.#15925remove debugging code in path resolution.#15902,#15913bump some deps.#15830VS Code: expose workspaces to other extensions, removeaddProjectcommand.#15900disable VSIX builds forwin32-ia32, which VS Code no longer supports.#15904bump minimum supported VS Code to 1.78.
See also the changelog post.
2023-11-13
Changelog #207
Commit: 416e9c8
Release: 2023-11-13 (v0.3.1730)
New Features
-
#15847preview struct fields on hover: -
#15871add config for preferring / ignoring prelude modules when inserting imports.
Fixes
#15860truncate closure capture place for raw pointer.#15864be more lax when findingSelfreferences.#15854ignore#[doc(hidden)]when implementing missing members.#15866improve check when overriding expansion limit forinclude!.
Internal Improvements
#15881(first contribution) fix JSON syntax in VS Code settings samples.#15849update rustc dependencies.#15880include TOML files in the vfs.
See also the changelog post.
2023-11-06
Changelog #206
Commit: c1c9e10
Release: 2023-11-06 (v0.3.1722)
New Features
-
#15819(first contribution) skip token tree limit forinclude!macro calls. -
#15832addgenerate_mut_trait_implassist:
Fixes
-
#15827(first contribution) addformatterscategory to VSCode metadata. -
#15788allow importing traitsas _: -
#15834fix docs path for derive macros.
See also the changelog post.
2023-10-30
Changelog #205
Commit: f493207
Release: 2023-10-30 (v0.3.1713)
Fixes
-
#15809makeextract_variableassist easier to trigger: -
#15780import trait if needed forunqualify_method_callassist:
Internal Improvements
#15806bumpscipdependency.
See also the changelog post.















