Skip to content

Commit 3c5a560

Browse files
committed
Changelog #36
1 parent d9be500 commit 3c5a560

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fn foo() -> Result<i32, ${0:_}> { Ok(42i32) }
227227

228228
[discrete]
229229
=== `change_visibility`
230-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/change_visibility.rs#L13[change_visibility.rs]
230+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/change_visibility.rs#L11[change_visibility.rs]
231231

232232
Adds or changes existing visibility specifier.
233233

@@ -532,7 +532,7 @@ impl<T: Clone> Ctx<T> {
532532

533533
[discrete]
534534
=== `generate_new`
535-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/generate_new.rs#L12[generate_new.rs]
535+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/generate_new.rs#L10[generate_new.rs]
536536

537537
Adds a new inherent impl for a type.
538538

generated_features.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ code in the `foo` module, we'll insert just `Bar`.
304304
Method calls should generally be written in UFCS form. e.g. `foo::Bar::baz($s, $a)` will match
305305
`$s.baz($a)`, provided the method call `baz` resolves to the method `foo::Bar::baz`.
306306

307+
The scope of the search / replace will be restricted to the current selection if any, otherwise
308+
it will apply to the whole workspace.
309+
307310
Placeholders may be given constraints by writing them as `${<name>:<constraint1>:<constraint2>...}`.
308311

309312
Supported constraints:
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
= Changelog #36
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:e96bfd812a0f883bc9aa6b5ebe3b0a712c860487[] +
6+
Release: release:2020-08-03[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** https://opencollective.com/rust-analyzer/[opencollective.com/rust-analyzer]
11+
12+
== New Features
13+
14+
* We started the effort to share the parser between rust-analyzer and rustc.
15+
This will take a while to complete, and won't give any new user-visible features until completion.
16+
As the first step, rust-analyzer now uses
17+
https://github.com/rust-analyzer/ungrammar/blob/da1aa8a99738c1a4fe5e321e39aae857c1eb54c8/rust.ungram[this grammar]
18+
to generate syntax tree structure.
19+
* pr:5547[] fold multiline parameter lists.
20+
21+
* pr:5561[]: allow running more tests at once via the module runners:
22+
+
23+
image::https://user-images.githubusercontent.com/2690773/88724896-e85a7100-d133-11ea-99ee-689126679cbc.png[]
24+
25+
* pr:5563[] Check all targets for package-level tasks.
26+
When invoking "Select Runnable" with the caret on a runnable with a specific target (test, bench, binary), append the corresponding argument for the `cargo check -p` module runnable.
27+
28+
* pr:5586[] Support new sysroot layout on nightly.
29+
30+
== Fixes
31+
32+
* pr:5596[] add checkOnSave.noDefaultFeatures and correct, how we handle some cargo flags.
33+
* pr:5565[] don't mix non-path-based rules with path-based in **S**tructural **S**earch **R**eplace.
34+
* pr:5554[] fix **Remove dbg** assist to not remove meaningful parenthesis and semicolons.
35+
* pr:5567[] wrap placeholder expansions in SSR in parenthesis when necessary.
36+
* pr:5513[] when generating launch.json configurations, correctly handle multi-folder workspaces.
37+
38+
== Internal Improvements
39+
40+
* pr:5572[] Switch to ungrammar for generating syntax trees.
41+
* pr:5574[] Replace rand with oorandom.
42+
* pr:5581[] Use perf-events to measure number of instructions in addition to wall clock time for https://rust-analyzer.github.io/metrics/[metrics] to get more stable measurements on CI. That plan was foiled by perf not working on the CI.
43+
* pr:5573[], pr:5578[], ... : rename various AST types
44+
+
45+
|===
46+
| Old Name | New Name
47+
48+
|`ast::NomialDef`| `ast::AdtDef`
49+
|`ast::ModuleItem` | `ast::Item`
50+
|`ast::Alias` | `ast::Rename`
51+
|`ast::TypeParamList` | `ast::GenericParamList`
52+
|`ast::TypeRef` | `ast::Type`
53+
|`ast::PlaceholderType` | `ast::InferType`
54+
|`ast::DotDotPat` | `ast::RestPat`
55+
|===

0 commit comments

Comments
 (0)