Releases: rust-lang/rust-analyzer
Releases · rust-lang/rust-analyzer
2022-01-17
Merge #11287 11287: fix: rust-analyzer spamming overly error message when workspace not being loaded r=lnicola a=Milo123459 Fixes #10120 Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com>
2022-01-10
Merge #11238 11238: fix: shrink the span of errors from attribute macros and derives r=jonas-schievink a=jonas-schievink Some procedural macros tend to get very large invocations, for example RTIC's, leading to issues like https://github.com/rtic-rs/cortex-m-rtic/issues/582, where almost the entire screen is underlined while editing incomplete code in the macro. This PR shrinks the spans of errors from attribute macros and derives to point only at the attribute, which also matches rustc more closely. bors r+ Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2022-01-03
Merge #11177 11177: internal: dont descend into comments r=Veykril a=jhgg fixes #11176 Co-authored-by: Jake Heinz <jh@discordapp.com>
2021-12-27
Merge #11122 11122: Remove note about alpha status from vscode extension descritpion r=lnicola a=aDotInTheVoid See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/156 and https://github.com/rust-analyzer/rust-analyzer/pull/8237 Co-authored-by: Nixon Enraght-Moony <nixon.emoony@gmail.com>
2021-12-20
Merge #11060 11060: minor: Bump deps r=lnicola a=lnicola Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-13
Merge #10995 10995: internal: switch from trait-based TokenSource to simple struct of arrays r=matklad a=matklad cc #10765 The idea here is to try to simplify the interface as best as we can. The original trait-based approach is a bit over-engineered and hard to debug. Here, we replace callback with just data. The next PR in series will replace the output `TreeSink` trait with data as well. The biggest drawback here is that we now require to materialize all parser's input up-front. This is a bad fit for macro by example: when you parse `$e:expr`, you might consume only part of the input. However, today's trait-based solution doesn't really help -- we were already materializing the whole thing! So, let's keep it simple! Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-12-06
Merge #10944 10944: internal: Prefer resolution of inert attributes r=Veykril a=Veykril Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10942 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-11-29
Merge #10876 10876: fix: Show parameter hints unconditionally for logical not expressions r=Veykril a=Veykril Closes https://github.com/rust-analyzer/rust-analyzer/issues/8491 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-11-22
Merge #10823 10823: fix: better `Fn` traits formatting r=jonas-schievink a=veber-alex This makes it so formatting `Fn` traits properly handles: 1. An `Fn` trait with only a single argument -> removes the trailing comma. 2. An `Fn` trait which returns nothing (an empty tuple) -> don't show `-> ()` as the return type. before:  after:  Co-authored-by: Alex Veber <alexveber@gmail.com>
2021-11-15
Merge #10767 10767: minor: Rename intern_macro -> intern_macro_call r=Veykril a=Veykril We potentially want to intern macro definitions so the names would probably collide bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>