Commit Graph

8397 Commits

Author SHA1 Message Date
Aleksey Kladov
ea0c124219 Rerail split_import API onto AST
The code is more verbose and less efficient now, but should be
reusable in add_import context as well
2020-03-06 14:08:43 +01:00
bors[bot]
d75577fcee
Merge #3483
3483: Unfold groups with single assists into plain assists r=matklad a=SomeoneToIgnore

A follow-up of https://github.com/rust-analyzer/rust-analyzer/pull/3120/files#r378788698 , made to show more detailed label when the assist group contains a single element

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2020-03-06 10:10:16 +00:00
bors[bot]
670895a49c
Merge #3482
3482: Fix regression from #3451 r=matklad a=edwin0cheng

There is a regression from #3451 such that the following code has failed to parse in raw item collecting phase:

```rust
macro_rules! with_std { 
 	($($i:item)*) => ($(#[cfg(feature = "std")]$i)*) 
}

with_std! {
	mod macros;
	mod others;
}
```

### Rationale

We always assume the last token of an statement will not end with a whitespace, which is true. It is because in parsing phase,  we always emit `SyntaxNode` before any whitespace. Such that in various parts of RA code, we solely check the semi-colon by using `SyntaxNode::last_child_token() == ";"` . 

However, in #3451, we insert some whitespaces between puncts such that we broke above assumption. This PR fixed this bug by make sure we don't add any whitespace if it is a semicolon.


Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-06 10:03:54 +00:00
Kirill Bulatov
0ff8c55246 Unfold groups with single assists into plain assists 2020-03-06 00:17:26 +02:00
Edwin Cheng
0563cc8291 fix regression from #3451 2020-03-06 04:32:08 +08:00
bors[bot]
dd7a11eec7
Merge #3481
3481: Bump to quote-1.0.3 since 1.0.2 is blacklisted r=kjeremy a=kjeremy



Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-03-05 20:22:17 +00:00
kjeremy
2a8b7bc648 Bump to quote-1.0.3 since 1.0.2 is blacklisted 2020-03-05 15:21:20 -05:00
bors[bot]
6131cf32bc
Merge #3480
3480: Add with_use_tree r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 17:39:30 +00:00
Aleksey Kladov
381ace587e Add with_use_tree 2020-03-05 18:38:52 +01:00
bors[bot]
c3a349bfe9
Merge #3478
3478: Link proper docs from readme r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 16:27:23 +00:00
Aleksey Kladov
c629ada820 Link proper docs from readme 2020-03-05 17:26:47 +01:00
bors[bot]
fc4d0a7768
Merge #3476
3476: Add profiling calls r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 13:23:41 +00:00
Aleksey Kladov
b96da48809 Add profiling calls 2020-03-05 14:22:31 +01:00
bors[bot]
f3f39b4327
Merge #3475
3475: Fix options for analysis-bench r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 12:58:41 +00:00
Aleksey Kladov
17876d79e4 Fix options for analysis-bench 2020-03-05 13:58:11 +01:00
bors[bot]
af50e4ff06
Merge #3474
3474: Prime open files on load r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 12:47:39 +00:00
Aleksey Kladov
ab11c6f08a Back to usual nightly schedule 2020-03-05 13:41:41 +01:00
Aleksey Kladov
fc970d188e Prime open files on load 2020-03-05 13:40:53 +01:00
Aleksey Kladov
94c48980bb Set release name 2020-03-05 12:22:14 +01:00
bors[bot]
aec78f090c
Merge #3472
3472: Fix dist again r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 10:56:12 +00:00
Aleksey Kladov
700a1a3175 Fix dist again 2020-03-05 11:55:34 +01:00
bors[bot]
ee75928855
Merge #3471
3471: Remove pwd r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 10:29:59 +00:00
Aleksey Kladov
ca62f568be Remove pwd 2020-03-05 11:25:23 +01:00
bors[bot]
31fd10b2a5
Merge #3470
3470: Install node deps during dist r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 10:22:47 +00:00
Aleksey Kladov
b6819c2595
Merge pull request #3451 from edwin0cheng/fix-mbe-composited
Fix mbe composited token bug
2020-03-05 11:16:45 +01:00
Aleksey Kladov
166c07b28d Install node deps during dist 2020-03-05 11:11:47 +01:00
bors[bot]
9c906bd60a
Merge #3469
3469: Cleanup SourceAnalyzer r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-05 10:09:11 +00:00
Aleksey Kladov
7d873fcfa1 Move PathResolution 2020-03-05 11:08:31 +01:00
Aleksey Kladov
7b6716e50e Remove dead code 2020-03-05 11:06:23 +01:00
Aleksey Kladov
e15cef70db Try testing release workflow 2020-03-05 10:45:40 +01:00
Aleksey Kladov
5f1fc94523 minor 2020-03-05 10:43:32 +01:00
Aleksey Kladov
41ba0cef46 Fix nightly release 2020-03-05 10:29:43 +01:00
bors[bot]
cc7f18d8ea
Merge #3468
3468: Better describe current inlay hints' limitations r=matklad a=SomeoneToIgnore



Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2020-03-05 09:19:43 +00:00
Kirill Bulatov
e3ef17447f Better describe current inlay hints' limitations 2020-03-05 10:29:46 +02:00
bors[bot]
8c07ffcd76
Merge #3465
3465: Don't disable proposed features for nightly r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-04 20:36:07 +00:00
Aleksey Kladov
4a48256f0e Don't disable proposed features for nightly 2020-03-04 21:35:31 +01:00
Aleksey Kladov
af77ab4b9b
Merge pull request #3464 from matklad/nod
Install node for release
2020-03-04 20:23:56 +01:00
Aleksey Kladov
be814a65a3 Install node for release 2020-03-04 20:04:10 +01:00
Edwin Cheng
0c79e1d304 Add comment for parents logging 2020-03-05 03:02:51 +08:00
Aleksey Kladov
ce663ed495
Merge pull request #3461 from matklad/dist
Use xtask dist for releases
2020-03-04 18:59:06 +01:00
Aleksey Kladov
cbd34d1bdf
Merge pull request #3463 from matklad/doc3
Fix rustdoc some more
2020-03-04 18:58:51 +01:00
Aleksey Kladov
f1a0e16ecf Fix rustdoc some more 2020-03-04 18:58:33 +01:00
Aleksey Kladov
6647e817e2 Use xtask dist for releases 2020-03-04 18:56:52 +01:00
Aleksey Kladov
694ca4e185 Build server via dist as well 2020-03-04 18:56:20 +01:00
Aleksey Kladov
a17c3f791c
Merge pull request #3462 from matklad/rd2
Fix yaml syntax
2020-03-04 18:55:44 +01:00
Aleksey Kladov
f8dadf896c Fix yaml syntax 2020-03-04 18:55:23 +01:00
Aleksey Kladov
176aa92026
Merge pull request #3460 from matklad/rustdoc
Huh?
2020-03-04 18:52:49 +01:00
Aleksey Kladov
558608548f Hopefully fix YAML syntax 2020-03-04 18:45:56 +01:00
Aleksey Kladov
2722184c6d
Merge pull request #3458 from matklad/dist
cargo xtask dist
2020-03-04 18:32:34 +01:00
Aleksey Kladov
fd586e58d9 cargo xtask dist
This builds the typescript extension
2020-03-04 18:18:20 +01:00