]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agora_assists: assist "providers" can produce multiple assists
Andrea Pretto [Mon, 11 Feb 2019 17:07:21 +0000 (18:07 +0100)]
ra_assists: assist "providers" can produce multiple assists

5 years agoMerge #788
bors[bot] [Mon, 11 Feb 2019 14:45:32 +0000 (14:45 +0000)]
Merge #788

788: remove query_definitions r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoremove query_definitions
Aleksey Kladov [Mon, 11 Feb 2019 14:44:54 +0000 (17:44 +0300)]
remove query_definitions

5 years agoMerge #787
bors[bot] [Mon, 11 Feb 2019 14:30:35 +0000 (14:30 +0000)]
Merge #787

787: rename combine -> or r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agorename combine -> or
Aleksey Kladov [Mon, 11 Feb 2019 14:29:20 +0000 (17:29 +0300)]
rename combine -> or

This way we match API of Option

https://doc.rust-lang.org/std/option/enum.Option.html#method.or

5 years agoMerge #785
bors[bot] [Mon, 11 Feb 2019 14:02:59 +0000 (14:02 +0000)]
Merge #785

785: Fix completion of paths r=flodiebold a=matklad

r? @flodiebold

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoMerge #786
bors[bot] [Mon, 11 Feb 2019 12:46:58 +0000 (12:46 +0000)]
Merge #786

786: :arrow_up: insta r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years ago:arrow_up: insta
Aleksey Kladov [Mon, 11 Feb 2019 12:46:35 +0000 (15:46 +0300)]
:arrow_up: insta

5 years agouse extern prelude in Resolver
Aleksey Kladov [Mon, 11 Feb 2019 12:39:26 +0000 (15:39 +0300)]
use extern prelude in Resolver

This fixes two bugs:

- completion for paths works again
- we handle extern prelude shadowing more correctly

5 years agoMerge #784
bors[bot] [Mon, 11 Feb 2019 10:54:27 +0000 (10:54 +0000)]
Merge #784

784: WIP: improve multi-crate fixtures r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoadd graph fixture
Aleksey Kladov [Mon, 11 Feb 2019 10:11:24 +0000 (13:11 +0300)]
add graph fixture

5 years agoHandle SourceRoots automatically in fixtures
Aleksey Kladov [Mon, 11 Feb 2019 09:53:10 +0000 (12:53 +0300)]
Handle SourceRoots automatically in fixtures

5 years agoMerge #783
bors[bot] [Mon, 11 Feb 2019 08:22:39 +0000 (08:22 +0000)]
Merge #783

783: Fix typo in Cargo.toml authors r=matklad a=vipentti

Fixes typo introduced in #782

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoFix typo in Cargo.toml authors
Ville Penttinen [Mon, 11 Feb 2019 08:20:04 +0000 (10:20 +0200)]
Fix typo in Cargo.toml authors

Fixes typo introduced in #782

5 years agoMerge #782
bors[bot] [Mon, 11 Feb 2019 07:20:51 +0000 (07:20 +0000)]
Merge #782

782: Update authors field in Cargo.tomls to "rust-analyzer developers" r=matklad a=vipentti

This closes #777

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoUpdate authors field in Cargo.tomls to "rust-analyzer developers"
Ville Penttinen [Mon, 11 Feb 2019 06:55:35 +0000 (08:55 +0200)]
Update authors field in Cargo.tomls to "rust-analyzer developers"

This closes #777

5 years agoMerge #780
bors[bot] [Sun, 10 Feb 2019 21:37:57 +0000 (21:37 +0000)]
Merge #780

780: Mention node.js requirement in readme r=DJMcNab a=Matthias247

I tried building rust-analyzer according to the instructions, but it failed with a very non-descriptive error:

> will run: npm ci
> Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

It took me a while to figure out I had an outdated node version installed, which didn't support `npm ci`. I think mentioning the requirement explicitly might prevent others from running into the same issue.

Co-authored-by: Matthias Einwag <matthias.einwag@live.com>
5 years agoMention node.js requirement in readme
Matthias Einwag [Sun, 10 Feb 2019 21:09:33 +0000 (13:09 -0800)]
Mention node.js requirement in readme

5 years agoMerge #778
bors[bot] [Sun, 10 Feb 2019 20:15:41 +0000 (20:15 +0000)]
Merge #778

778: Glob imports r=matklad a=flodiebold

This implements glob imports, completing #231 :)

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoMerge #762
bors[bot] [Sun, 10 Feb 2019 19:00:36 +0000 (19:00 +0000)]
Merge #762

762: "Dumb" auto import assist r=matklad a=eulerdisk

This adds a new assist to "add xxx::yyy to the current file" when the cursor is on a PATH. It manages correctly nested imports,`self` keyword and creates new nested imports if necessary. [See the tests]
It doesn't use name resolution so in that sense is 'dumb', but I have plans to do that. That in the future will be useful to auto import trait names in autocompletion for example.

It can easily be extended to provide multiple actions to select in which scope to import. That's another thing I plan to do.

@matklad I copied some indentation code from `ide_light`, I don't know at the moment if/how you want to refactor that code. This assist was meant to be in `ide_light`.

Co-authored-by: Andrea Pretto <eulerdisk@gmail.com>
5 years agoImplement glob imports within the same crate
Florian Diebold [Sun, 10 Feb 2019 15:19:50 +0000 (16:19 +0100)]
Implement glob imports within the same crate

Fixes #231.

5 years agoImport glob imports from other crates
Florian Diebold [Sun, 10 Feb 2019 14:41:44 +0000 (15:41 +0100)]
Import glob imports from other crates

This is the easy part since we don't have to consider the fixpoint algorithm.

5 years agoImplement glob imports from enums
Florian Diebold [Sun, 10 Feb 2019 14:34:04 +0000 (15:34 +0100)]
Implement glob imports from enums

5 years agoAdd some tests
Florian Diebold [Sun, 10 Feb 2019 14:16:23 +0000 (15:16 +0100)]
Add some tests

5 years agoMerge #774
bors[bot] [Sun, 10 Feb 2019 11:42:42 +0000 (11:42 +0000)]
Merge #774

774: Batch crate & command r=matklad a=flodiebold

This adds a new crate, `ra_batch`, which is intended for scenarios where you're loading a workspace once and then running some analyses using the HIR API. Also, it adds a command to `ra_cli` which uses that to type-check all crates in a workspace and print some statistics:

E.g. in rust-analyzer:
```
> $ time target/release/ra_cli analysis-stats
Database loaded, 21 roots
Crates in this dir: 28
Total modules found: 231
Total declarations: 3694
Total functions: 2408
Total expressions: 47017
Expressions of unknown type: 19826 (42%)
Expressions of partially unknown type: 4482 (9%)
target/release/ra_cli analysis-stats  3,23s user 0,60s system 100% cpu 3,821 total
```

Or in rust-lang/rust:
```
> $ time ../opensource/rust-analyzer/target/release/ra_cli analysis-stats
Database loaded, 77 roots
Crates in this dir: 130
Total modules found: 1820
Total declarations: 35038
Total functions: 25914
Total expressions: 753678
Expressions of unknown type: 337975 (44%)
Expressions of partially unknown type: 92314 (12%)
../opensource/rust-analyzer/target/release/ra_cli analysis-stats  13,45s user 2,08s system 100% cpu 15,477 total
```

~This still needs a test. Type-checking all of rust-analyzer sadly takes almost a minute when compiled in debug mode :sweat_smile: So I'll need to add something simpler (maybe just looking at a few modules).~

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoSpell cases explicitly in Ty::walk{_mut}
Florian Diebold [Sun, 10 Feb 2019 11:35:30 +0000 (12:35 +0100)]
Spell cases explicitly in Ty::walk{_mut}

5 years agoClean up a bit
Florian Diebold [Sun, 10 Feb 2019 10:48:59 +0000 (11:48 +0100)]
Clean up a bit

5 years agoAdd a smoke test for ra_batch
Florian Diebold [Sun, 10 Feb 2019 10:44:53 +0000 (11:44 +0100)]
Add a smoke test for ra_batch

5 years agoMerge #776
bors[bot] [Sun, 10 Feb 2019 10:33:35 +0000 (10:33 +0000)]
Merge #776

776: Add support for a seperate output channel for trace messages r=DJMcNab a=DJMcNab

See https://github.com/Microsoft/vscode-languageserver-node/pull/444

I am just working on testing this now, but I think it should work.

Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
5 years agoUpdate dependencies
DJMcNab [Sun, 10 Feb 2019 10:32:45 +0000 (10:32 +0000)]
Update dependencies

5 years agoFix trace and prettier
DJMcNab [Sun, 10 Feb 2019 10:30:16 +0000 (10:30 +0000)]
Fix trace and prettier

5 years agoAdd support for a seperate output channel for trace messages
DJMcNab [Sun, 10 Feb 2019 10:06:33 +0000 (10:06 +0000)]
Add support for a seperate output channel for trace messages

5 years agoAdd an ra_cli command that analyses all crates in the current workspace
Florian Diebold [Sat, 9 Feb 2019 17:27:11 +0000 (18:27 +0100)]
Add an ra_cli command that analyses all crates in the current workspace

... and prints various stats about how many expressions have a type etc.

5 years agoImplement BatchDatabase construction
Florian Diebold [Sat, 9 Feb 2019 12:06:12 +0000 (13:06 +0100)]
Implement BatchDatabase construction

5 years agoAdd new crate
Florian Diebold [Tue, 5 Feb 2019 21:54:17 +0000 (22:54 +0100)]
Add new crate

5 years agoMerge #770
bors[bot] [Sun, 10 Feb 2019 08:16:08 +0000 (08:16 +0000)]
Merge #770

770: Fix introduce var duplicating newlines r=matklad a=vipentti

This fixes #713.

If the block before the statement we want to use introduce var on, had empty
lines these empty lines would also be added between the let-statement and
the current line where the new variable is used.

This fixes that by trimming excess newlines from the start of the indent chunk
and simply adding a single newline (when the chunk had newlines) between the
let-statement and the current statement. If there were no newlines this
matches the previous behaviour.

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoMerge #773
bors[bot] [Sun, 10 Feb 2019 08:04:49 +0000 (08:04 +0000)]
Merge #773

773: Crash fixes r=matklad a=flodiebold

This fixes a bunch of crashes found while running type inference on the whole rustc repo :sweat_smile:
 - avoid infinite recursion with ref bind patterns
 - avoid another infinite recursion
 - handle literal patterns, add a new LITERAL_PAT syntax node for this
 - fix an expect that's wrong on some invalid code

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoAdd comment and mark
Florian Diebold [Sat, 9 Feb 2019 21:03:01 +0000 (22:03 +0100)]
Add comment and mark

5 years agoFix another crash, and try harder to prevent stack overflows
Florian Diebold [Sat, 9 Feb 2019 20:31:31 +0000 (21:31 +0100)]
Fix another crash, and try harder to prevent stack overflows

5 years agoFix another crash found when analyzing rustc
Florian Diebold [Sat, 9 Feb 2019 19:55:51 +0000 (20:55 +0100)]
Fix another crash found when analyzing rustc

5 years agoFix handling of literal patterns
Florian Diebold [Sat, 9 Feb 2019 18:07:35 +0000 (19:07 +0100)]
Fix handling of literal patterns

Wrap them in a LiteralPat node so they can be distinguished from literal
expressions.

5 years agoFix two crashes found by running inference on all of rustc
Florian Diebold [Sat, 9 Feb 2019 17:24:54 +0000 (18:24 +0100)]
Fix two crashes found by running inference on all of rustc

5 years agoMerge #771
bors[bot] [Sat, 9 Feb 2019 16:51:25 +0000 (16:51 +0000)]
Merge #771

771: update notify with fix for hight cpu usage r=matklad a=vemoo

Should fix the ocasional 100% CPU hangs.

I've tried `yes > test.rs` which would cause it before, and now on my computer it stays below 10%, and stops as soon as I interrupt the command, unlike previously which would stay at 100% for a while.

Co-authored-by: Bernardo <berublan@gmail.com>
5 years agoupdate notify with fix for hight cpu usage
Bernardo [Sat, 9 Feb 2019 16:18:26 +0000 (17:18 +0100)]
update notify with fix for hight cpu usage

5 years agoFix introduce var duplicating newlines
Ville Penttinen [Sat, 9 Feb 2019 11:41:03 +0000 (13:41 +0200)]
Fix introduce var duplicating newlines

This fixes #713.

If the block before the statement we want to use introduce var on, had empty
lines these empty lines would also be added between the let-statement and
the current line where the new variable is used.

This fixes that by trimming excess newlines from the start of the indent chunk
and simply adding a single newline (when the chunk had newlines) between the
let-statement and the current statement. If there were no newlines this
matches the previous behaviour.

5 years agoauto_import: use ra_fmt
Andrea Pretto [Sat, 9 Feb 2019 10:33:30 +0000 (11:33 +0100)]
auto_import: use ra_fmt

5 years agoauto_import: struct variants for ImportAction
Andrea Pretto [Fri, 8 Feb 2019 21:12:49 +0000 (22:12 +0100)]
auto_import: struct variants for ImportAction

5 years agoauto_import: remove PathSegmentsMatch
Andrea Pretto [Fri, 8 Feb 2019 20:30:59 +0000 (21:30 +0100)]
auto_import: remove PathSegmentsMatch

5 years agoauto_import: Removed Empty in favor of Partial(0)
Andrea Pretto [Fri, 8 Feb 2019 20:12:05 +0000 (21:12 +0100)]
auto_import: Removed Empty in favor of Partial(0)
auto_import: Removed unecessary lifetimes

5 years agoauto_import assist
Andrea Pretto [Wed, 6 Feb 2019 14:34:37 +0000 (15:34 +0100)]
auto_import assist

5 years agoMerge #767
bors[bot] [Sat, 9 Feb 2019 10:21:13 +0000 (10:21 +0000)]
Merge #767

767: Extract project model to separate crate r=matklad a=flodiebold

I'm looking into creating a separate crate that would allow getting a HIR db for a project for 'batch' analyses, and this seems to be an obvious first step. We'd probably want to change the error handling to not rely on failure, though, right?

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoClean up a bit
Florian Diebold [Sat, 9 Feb 2019 10:15:02 +0000 (11:15 +0100)]
Clean up a bit

5 years agoRemove Vfs from project model
Florian Diebold [Sat, 9 Feb 2019 10:08:24 +0000 (11:08 +0100)]
Remove Vfs from project model

5 years agoRemove SmolStr from project model
Florian Diebold [Sat, 9 Feb 2019 09:51:06 +0000 (10:51 +0100)]
Remove SmolStr from project model

5 years agoMove crate graph generation to ra_project_model
Florian Diebold [Wed, 6 Feb 2019 21:54:33 +0000 (22:54 +0100)]
Move crate graph generation to ra_project_model

5 years agoExtract project model to separate crate
Florian Diebold [Tue, 5 Feb 2019 22:10:49 +0000 (23:10 +0100)]
Extract project model to separate crate

5 years agoMerge #766
bors[bot] [Sat, 9 Feb 2019 09:56:54 +0000 (09:56 +0000)]
Merge #766

766: Formatting code into ra_fmt r=matklad a=eulerdisk

As discussed https://github.com/rust-analyzer/rust-analyzer/pull/762#discussion_r254905885

I did only move the code without other improvements.

Co-authored-by: Andrea Pretto <eulerdisk@gmail.com>
5 years agoMerge #768
bors[bot] [Sat, 9 Feb 2019 08:52:09 +0000 (08:52 +0000)]
Merge #768

768: Sort assists by the range of the affected element r=matklad a=robojumper

Closes #763.

https://github.com/rust-analyzer/rust-analyzer/blob/3be98f2ac93b278828e76eb813bdd8033f647b12/crates/ra_assists/src/lib.rs#L233-L236

This could be made more robust by a) adding a way to identify actions by things other than their label and b) allowing arbitrary actions to appear in the list as long as the tested actions are there in the correct order. Let me know if I should do any of that.

Co-authored-by: robojumper <robojumper@gmail.com>
5 years agoImprove sorting delegate
robojumper [Sat, 9 Feb 2019 00:57:08 +0000 (01:57 +0100)]
Improve sorting delegate

5 years agoRemove unused import
robojumper [Fri, 8 Feb 2019 23:47:44 +0000 (00:47 +0100)]
Remove unused import

5 years agoAdd tests for action target ranges
robojumper [Fri, 8 Feb 2019 23:34:05 +0000 (00:34 +0100)]
Add tests for action target ranges

5 years agoAdd some assist ranges
robojumper [Fri, 8 Feb 2019 21:43:13 +0000 (22:43 +0100)]
Add some assist ranges

5 years agoRefactor formatting code out of ra_ida_api_light into ra_fmt.
Andrea Pretto [Fri, 8 Feb 2019 17:58:27 +0000 (18:58 +0100)]
Refactor formatting code out of ra_ida_api_light into ra_fmt.

5 years agoreformat the world
Aleksey Kladov [Fri, 8 Feb 2019 11:49:43 +0000 (14:49 +0300)]
reformat the world

5 years agoenable "small heuristics"
Aleksey Kladov [Fri, 8 Feb 2019 11:49:26 +0000 (14:49 +0300)]
enable "small heuristics"

5 years agoMerge #765
bors[bot] [Fri, 8 Feb 2019 11:37:05 +0000 (11:37 +0000)]
Merge #765

765: Jettison `imp` module r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agodiagnostics is now a function
Aleksey Kladov [Fri, 8 Feb 2019 11:30:21 +0000 (14:30 +0300)]
diagnostics is now a function

5 years agomove diagnostics to a separate file
Aleksey Kladov [Fri, 8 Feb 2019 11:24:39 +0000 (14:24 +0300)]
move diagnostics to a separate file

5 years agomove index_resolve to symbol index
Aleksey Kladov [Fri, 8 Feb 2019 11:09:57 +0000 (14:09 +0300)]
move index_resolve to symbol index

5 years agomove find_references to references
Aleksey Kladov [Fri, 8 Feb 2019 11:06:26 +0000 (14:06 +0300)]
move find_references to references

5 years agoavoid 'ignored' in test output
Aleksey Kladov [Fri, 8 Feb 2019 10:55:45 +0000 (13:55 +0300)]
avoid 'ignored' in test output

5 years agorename rename to references
Aleksey Kladov [Fri, 8 Feb 2019 10:51:22 +0000 (13:51 +0300)]
rename rename to references

5 years agomove crate for
Aleksey Kladov [Fri, 8 Feb 2019 10:50:18 +0000 (13:50 +0300)]
move crate for

5 years agomove changes to a separate file
Aleksey Kladov [Fri, 8 Feb 2019 08:52:18 +0000 (11:52 +0300)]
move changes to a separate file

5 years agoMerge #760
bors[bot] [Thu, 7 Feb 2019 22:56:14 +0000 (22:56 +0000)]
Merge #760

760: Add new assist to remove dbg!() calls r=matklad a=vipentti

This fixes #758.

Currently we try to maintain the cursor position relative to the statement under
cursor, if the cursor is inside the dbg! macro call.

Meaning:
```rust
let foo = dbg!(some.complex<|>().expression());
```
Should turn into:
```rust
let foo = some.complex<|>().expression();
```
With the cursor staying in place.

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoMerge #761
bors[bot] [Thu, 7 Feb 2019 20:13:17 +0000 (20:13 +0000)]
Merge #761

761: Update npm packages r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agoUpdate npm packages
kjeremy [Thu, 7 Feb 2019 19:55:09 +0000 (14:55 -0500)]
Update npm packages

5 years agoRemove unnecessary dbg! calls
Ville Penttinen [Thu, 7 Feb 2019 18:42:00 +0000 (20:42 +0200)]
Remove unnecessary dbg! calls

5 years agoAdd new assist to remove dbg!() calls
Ville Penttinen [Thu, 7 Feb 2019 18:00:58 +0000 (20:00 +0200)]
Add new assist to remove dbg!() calls

This fixes #758.

Currently we try to maintain the cursor position relative to the statement under
cursor, if the cursor is inside the dbg! macro call.

Meaning:

let foo = dbg!(some.complex<|>().expression());

Should turn into:

let foo = some.complex<|>().expression();

With the cursor staying in place.

5 years agoMerge #755
bors[bot] [Thu, 7 Feb 2019 12:42:53 +0000 (12:42 +0000)]
Merge #755

755: Add new configuration "enableEnhancedTyping" to control registering of "type" command r=matklad a=vipentti

This further fixes problems when having a VIM extension (at least vscodevim)
enabled, by not calling `overrideCommand('type', commands.onEnter.handle)` when
enableEnhancedTyping is set to `false`.

The problem is dependent on the order in which extensions are activated, if
rust-analyzer is activated before `vscodevim`, rust-analyzer will register the
`type` command, and when `vscodevim` finally attempts to activate, it will fail
to register the command. This causes `vscodevim` to stop working properly.

This setting allows users to disable the registerCommand `type` in
rust-analyzer, allowing `vscodevim` to work. The setting defaults to `true`.

Currently changing the setting requires reloading of the window.

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoRun prettier
Ville Penttinen [Thu, 7 Feb 2019 10:54:41 +0000 (12:54 +0200)]
Run prettier

5 years agoAdd new configuration "enableEnhancedTyping" to control registering of "type" command
Ville Penttinen [Thu, 7 Feb 2019 10:37:36 +0000 (12:37 +0200)]
Add new configuration "enableEnhancedTyping" to control registering of "type" command

This further fixes problems when having a VIM extension (at least vscodevim)
enabled, by not calling `overrideCommand('type', commands.onEnter.handle)` when
enableEnhancedTyping is set to `false`.

The problem is dependent on the order in which extensions are activated, if
rust-analyzer is activated before `vscodevim`, rust-analyzer will register the
`type` command, and when `vscodevim` finally attempts to activate, it will fail
to register the command. This causes `vscodevim` to stop working properly.

This setting allows users to disable the registerCommand `type` in
rust-analyzer, allowing `vscodevim` to work. The setting defaults to `true`.

Currently changing the setting requires reloading of the window.

5 years agoMerge #754
bors[bot] [Wed, 6 Feb 2019 21:11:24 +0000 (21:11 +0000)]
Merge #754

754: Some clippy things r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agoSome clippy cleanups
kjeremy [Wed, 6 Feb 2019 20:50:26 +0000 (15:50 -0500)]
Some clippy cleanups

5 years agoMerge #753
bors[bot] [Wed, 6 Feb 2019 16:18:47 +0000 (16:18 +0000)]
Merge #753

753: assists: compute edit r=matklad a=kjeremy

Fixes #751

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agoassists: compute edit
kjeremy [Wed, 6 Feb 2019 16:15:18 +0000 (11:15 -0500)]
assists: compute edit

5 years agoMerge #752
bors[bot] [Wed, 6 Feb 2019 15:07:36 +0000 (15:07 +0000)]
Merge #752

752: cargo update r=kjeremy a=kjeremy

Removes a few crates from the dep chain.

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agocargo update
kjeremy [Wed, 6 Feb 2019 15:04:48 +0000 (10:04 -0500)]
cargo update

5 years agoMerge #750
bors[bot] [Wed, 6 Feb 2019 14:01:07 +0000 (14:01 +0000)]
Merge #750

750: Move assists to a separate crate r=matklad a=matklad

I am slowly coming to conclusion that ide_api_light does not make a lot of sense after all :D

This PR moves assists to a separate crate, so that assists can use database (so, inspect types, do name-resolution, etc)

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agomove assists to a separate crate
Aleksey Kladov [Sun, 3 Feb 2019 18:26:35 +0000 (21:26 +0300)]
move assists to a separate crate

5 years agoMerge #748
bors[bot] [Wed, 6 Feb 2019 12:23:26 +0000 (12:23 +0000)]
Merge #748

748: Fill deprecation for LSP r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
5 years agoRemove stray dbg!
Jeremy Kolb [Wed, 6 Feb 2019 12:22:16 +0000 (07:22 -0500)]
Remove stray dbg!

5 years agoFill deprecation for LSP
kjeremy [Tue, 5 Feb 2019 22:05:46 +0000 (17:05 -0500)]
Fill deprecation for LSP

5 years agoMerge #746
bors[bot] [Tue, 5 Feb 2019 13:21:42 +0000 (13:21 +0000)]
Merge #746

746: Rename assits to assists r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
5 years agoRename assits to assists
Jeremy Kolb [Tue, 5 Feb 2019 13:13:16 +0000 (08:13 -0500)]
Rename assits to assists

5 years agoMerge #740
bors[bot] [Tue, 5 Feb 2019 12:16:25 +0000 (12:16 +0000)]
Merge #740

740: Update dependencies r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
5 years agoRemove unused imports
Jeremy Kolb [Tue, 5 Feb 2019 12:15:15 +0000 (07:15 -0500)]
Remove unused imports

5 years agoMerge #742
bors[bot] [Tue, 5 Feb 2019 07:53:08 +0000 (07:53 +0000)]
Merge #742

742: Extern crate r=matklad a=flodiebold

This implements `extern crate` declarations by lowering them to (absolute) imports, and adds support for absolute paths. It also extracts the extern prelude from the per-module item map, and handles the special case of extern crates in the crate root adding to the extern prelude.

This means we finally resolve `Arc`, so it fixes #523 :smile:

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoMerge #743
bors[bot] [Tue, 5 Feb 2019 07:36:51 +0000 (07:36 +0000)]
Merge #743

743: Move comment r=matklad a=kjeremy

As pointed out in https://github.com/rust-analyzer/rust-analyzer/pull/738/files#r253651450

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agoMerge #744
bors[bot] [Tue, 5 Feb 2019 07:28:31 +0000 (07:28 +0000)]
Merge #744

744: mbe: Ensure repetition separator matches r=matklad a=jrmuizel

Co-authored-by: Jeff Muizelaar <jrmuizel@gmail.com>