Releases: rust-lang/rust-analyzer
2023-02-13
Changelog #168
Commit: 646f973
Release: 2023-02-13
(0.3.1402
)
New Features
-
#14095
(first contribution) addunsafe
postfix completions. -
#14098
(first contribution) add support forDidChangeWorkspaceFolders
notifications. -
#13991
add an "Add braces: assist: -
#13986
add a setting to limit the number of completions. -
#14127
buildi686-pc-windows-msvc
binaries. -
#14135
add Lapce installation instructions. -
#14134
add clippy configuration section to the manual.
Fixes
#14114
(first contribution) insert spaces when inlining macros.#14084
fix parsing of nested tuple field accesses (in a cursed way).#14092
don't panic on broken syntax trees in adjustment inlay hints.#14099
properly use location links for type hints ofimpl Future
and its associated type.#14103
don't insert a semicolon when typing=
if parse errors are encountered.#14110
fix completions after functions with no bodies.#14111
hide proc macro server version detection errors.#14125
don't render bind pattern inlay hints for constants.#14116
render discriminant inlay hints for mixed variants if at least one discriminant is specified.#13975
suppress extra indent after the end of field and function chains.
Internal Improvements
#14091
support sysroot library source being defined inside the workspace.#14100
allow specifying what proc-macro server to run inrust_analyzer::load_cargo
.#14119
remove a few allocations inhir_ty::utils
.#14090
unify language configuration folding markers with server behaviour.
See also the changelog post.
2023-02-06
Changelog #167
Commit: 0b32b65
Release: 2023-02-06
(0.3.1394
)
New Features
#14065
support generic functions in thegenerate_function
assist.#14057
handle complex patterns inmatch
tolet-else
assist.#14063
drop support for the 1.58 proc-macro ABI.
Fixes
#14036
record method resolution for the remaining operator expressions.#14067
Code: create the trace output channel lazily.#14068
applyunsize
adjustments after pointer casts.#14071
don't render field-less discriminant inlay hints for data-carrying enums.#14082
support non-ASCII characters in case conversion.#14043
use relative offsets when inserting ident token in macro expansion for completion.#14058
fix display of negative trait bounds in outline view.
Internal Improvements
#14010
(first contribution) make the fuzzing harness build again.#14072
(first contribution) mention all three Visual Studio extensions in the manual.#14049
add installation instructions for Flatpak VS Code.#14070
implement proc-macro API versioning.#14061
makett
generic over the span data.#14056
parse#[allow_internal_unsafe]
on macros.#14062
set the current edition to 2021.#14034
tweak change collapsing some more.#14083
add more basic issue templates.
See also original changelog.
2023-01-30
Changelog #166
Commit: f1b257f
Release: 2023-01-30
(0.3.1386
)
New Features
-
#14012
(first contribution) add installation instructions for Visual Studio. -
#14024
(first contribution) update documentation for Emacs. -
#14041
show signature help for record literals: -
#14007
add "Open server logs" button to the error notification:
Fixes
#14015
(first contribution) don't include lifetime or label apostrophe when renaming.#14020
fix associated item search finding unrelated definitions.#14006
replace soft breaks in Markdown with spaces.#14019
,#14023
substitute VS Code variables more generally#14004
don't escape non-snippets inMove const to impl
.#14011
fixUnwrap block
forlet
statements.#14037
handle boolean scrutinees better inMatch to if-let
assist.#14039
makeAdd missing impl members
work for impls inside blocks.#14038
don't fail workspace loading if sysroot can't be found
Internal Improvements
#14025
improve deduplication inprocess_changes
.#14009
🧹lsp_ext.ts
.#14017
removeTypeWalk
.#14026
try to fix auto-publishing of lib crates.
See also original changelog.
2023-01-23
Changelog #165
Commit: daa0138
Release: 2023-01-23
(0.3.1377
)
New Features
-
#13935
(first contribution) add assist to desugar doc-comments:desugar-comment.mp4
-
#13947
add basic tooltips to adjustment hints: -
#13963
unconditionally enable location links in inlay hints.
Fixes
#13983
(first contribution) parseconst_closures
syntax.#13993
(first contribution) VS Code: substitute variables inconfig.serverPath
.#13981
don't run flycheck on startup unlesscheckOnSave
is enabled.#13966
don't compute layout ifTargetDataLayout
is not available.#13971
improve inference for binary operations more precise.#13961
don't generatePartialEq
/PartialOrd
methods body when types don't match.#13984
fix target data layout fetching incorrectly passingrustc
torustc
.#13978
handle slice patterns inFill match arms
.#13985
don't respond withContentModified
while loading the workspace.#13988
fix whitespace handling in hover Markdown removal.#13980
fixcheckOnSave
config patching.
Internal Improvements
#13964
specifyauthors
,edition
,license
andrust-version
viaworkspace.package
.#13969
useworkspace.dependencies
to declare local dependencies.#13989
remove hover fallback in favor of ranged hover.#14001
replaceSmolStr
usage with enum for lang items.
See also original changelog.
2023-01-16
Changelog #164
Commit: ff4d55e
Release: 2023-01-16
New Features
-
#13684
(first contribution) addExtract format expression
assist:Screen.Recording.2022-11-29.at.2.39.49.mov
-
#13810
(first contribution) add action to expand a macro once, inline -
#13744
(first contribution) add the ability to limit the thread pool size (rust-analyzer.numThreads
). -
#13816
add option to make adjustment (reborrow) hints postfix: -
#13825
addUnqualify method call
assist: -
#13848
colorizecargo check
diagnostics in the full view in VSCode: -
#13934
makeunlinked_file
diagnostic quickfixes work for inline modules: -
#13458
add assist to replace plain arithmetic operations with wrapping/checked/saturating ones. -
#13946
remove hover inlay tooltips, replace them with location links. -
#13799
renamecheckOnSave
settings tocheck
.
Fixes
#13843
(first contribution) add missingawait
in generated delegate methods.#13753
(first contribution) increase proc macro expansion token limit (fixes the visitors inswc
).#13940
(first contribution) fix a panic in thematch
-to-let-else
assist.#13763
add type bounds to generated#[derive]
implementations.#13891
keep whitespace in extracted functions.#13890
unescape inline module names when resolving modules.#13897
resolve inherent methods implemented in ancestor blocks.#13948
make inlay hint location links work for more types.#13945
handle or-patters in missing match diagnostics.#13923
revert "add a ZWNJ to prevent VS Code from forming ligatures between hints and code".
Internal Improvements
#13956
(first contribution) upgradecommand-group
to fix build on Haiku OS.#13915
make it clearer when the server expects an initialized notification.#13917
split outhir-def
attribute handling parts intohir-expand
.#13933
refine reference search for const and function associated items.#13941
explain the idea behindrust-project.json
.#13928
,#13929
,#13862
,#13919
,#13936
,#13937
fix some Clippy lints.
See also original changelog.
2023-01-09
Changelog #163
Commit: f77b68a
Release: 2023-01-09
New Features
-
#13832
add enum variant discriminants hints: -
#13876
package Windows release artifacts as ZIP and add symbols file.
Fixes
#13894
apply fallback before final obligation resolution.#13854
support multi-character punct tokens in MBE.#13877
prefix prelude items whose name collides in current scope.#13887
only set machine-applicable rustc diagnostics as preferred.#13882
remember adjustments introduced by binary operators.#13853
use diagnostic code as link to full message.#13886
add a ZWNJ to prevent VS Code from forming ligatures between hints and code.#13885
skip lifetime elision hints on fn pointers and fn trait types.#13893
complete record enum variants without parens when snippets are disabled.
Internal Improvements
#13860
fix a bunch of clippy lints.
See also original changelog.
2023-01-02
Changelog #162
Commit: 643bc02
Release: 2023-01-02
New Features
-
#13870
,#13875
diagnose private field and associated item accesses: -
#13856
fix inference oftry {}
blocks:
Fixes
#13866
(first contribution) userustc_safe_intrinsic
attribute to check for intrinsic safety.#13867
fall back to inaccessible associated functions and constants if no visible resolutions are found.#13869
improve exit point highlighting forfor
andwhile
loops in tail position.#13871
merge multiple intersecting ranges to fix panic in "Extract module".
Internal Improvements
See also original changelog.
2022-12-26
Changelog #161
Commit: 74ae2dd
Release: 2022-12-26
New Features
-
#13699
implement location links for type inlay hints (disabled until Code 1.76 release because of a bug): -
#13817
add option to hide adjustment hints outside ofunsafe
blocks and functions:
Fixes
#13805
(first contribution) complete enum variants without parens when snippets are disabled.#13794
fix "parser seems stuck" panics when parsing colossal files.#13795
use the correct edition when formatting code in path dependencies.#13800
don't matchlet
expressions and inlineconst
s inexpr
MBE fragments.#13820
fix binding mode hints always adding parentheses to or-patterns.#13831
don't autofill associated type trait bounds when generating an implementation.#13764
correctly check for redundant parentheses in theremove_parentheses
assist.#13806
skip hints for identity (T
->T
) adjustments.#13814
,#13818
calculate theTargetDataLayout
correctly for the selected target.#13840
handle lifetime variables inCallableSig
query.
Internal Improvements
#13828
,#13829
,#13835
(first contributions) fixredundant_clone
,explicit_auto_deref
,uninlined_format_args
clippy warnings.#13830
use a default derives andstrip_prefix
.#13771
addxtask
command for publishing release notes on GitHub Releases.#13804
split inlay hints into modules by type.#13822
threadFamousDefs
through the inlay hints.
See also original changelog.
2022-12-19
Auto merge of #13792 - Veykril:flycheck, r=Veykril Add a command to clear flycheck diagnostics And document the flycheck notifications
2022-12-12
Auto merge of #13756 - flodiebold:simplify-assoc-item-subst, r=flodie…