Skip to content

Releases: rust-lang/rust-analyzer

2022-11-28

28 Nov 10:07
Compare
Choose a tag to compare
Auto merge of #13681 - lowr:fix/extract-function-tail-expr, r=Veykril

fix: check tail expressions more precisely in `extract_function`

Fixes #13620

When extracting expressions with control flows into a function, we can avoid wrapping tail expressions in `Option` or `Result` when they are also tail expressions of the container we're extracting from (see #7840, #9773). This is controlled by `ContainerInfo::is_in_tail`, but we've been computing it by checking if the tail expression of the range to extract is contained in the container's syntactically last expression, which may be a block that contains both tail and non-tail expressions (e.g. in #13620, the range to be extracted is not a tail expression but we set the flag to true).

This PR tries to compute the flag as precise as possible by utilizing `for_each_tail_expr()` (and also moves the flag to `Function` struct as it's more of a property of the function to be extracted than of the container).

2022-11-21

21 Nov 06:48
Compare
Choose a tag to compare
Auto merge of #13653 - VannTen:fix/doc-typo-vim-lsp, r=Veykril

Fix typo on 'configuration' anchor

https://rust-analyzer.github.io/manual.html#_configuration lands you at
the start of the page, while
https://rust-analyzer.github.io/manual.html#configuration correctly puts
you at the correct anchor

2022-11-14

14 Nov 07:49
Compare
Choose a tag to compare
Auto merge of #13607 - Veykril:proc-macro-error, r=Veykril

internal: Add version info to unsupported proc macro abi error

cc https://github.com/rust-lang/rust-analyzer/issues/13589#issuecomment-1311824473

2022-11-07

07 Nov 08:10
Compare
Choose a tag to compare
Auto merge of #13556 - pd4d10:patch-1, r=lnicola

docs: fix adoc links

Correct #13536 with adoc link syntax

2022-10-31

31 Oct 06:19
Compare
Choose a tag to compare
Auto merge of #13505 - lowr:feat/gats, r=flodiebold

Clean up tests and add documentation for GATs related stuff

This is a follow-up PR for #13494.

- addresses https://github.com/rust-lang/rust-analyzer/pull/13494#discussion_r1006774897
- documents the ordering constraint on `Binders` and `Substitution` (which is not really follow-up for the previous PR, but it was introduced to support GATs and I strongly feel it's worth it)

2022-10-24

24 Oct 16:12
Compare
Choose a tag to compare
Auto merge of #13471 - Veykril:invoc-strategy-once, r=Veykril

Handle multiple projects sharing dependency correctly in `once` strategy

2022-10-17

17 Oct 06:42
Compare
Choose a tag to compare
Auto merge of #13397 - zyctree:zyctree-patch-2, r=lnicola

fix link in syntax.md

2022-10-10

10 Oct 07:04
Compare
Choose a tag to compare
Auto merge of #13366 - matklad:xflags, r=lnicola

internal: :arrow_up: xflags

The main change here should be that flags are not inhereted, so

   $ rust-analyzer analysis-stats . -v -v

would do what it should do

We also no longer Don\'t

2022-10-03

03 Oct 06:32
Compare
Choose a tag to compare
Auto merge of #13328 - Veykril:rustc-proc-macro, r=Veykril

Add proc-macro dependency to rustc crates

2022-09-26

26 Sep 07:42
Compare
Choose a tag to compare
Auto merge of #13289 - rust-lang:analysis-stats-proc-server, r=Veykril

Use the sysroot proc-macro server for analysis-stats

Should fix the metrics issues