]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoFix memory usage accounting for interned queries
Jonas Schievink [Fri, 3 Jul 2020 15:12:29 +0000 (17:12 +0200)]
Fix memory usage accounting for interned queries

4 years agoMerge #5205
bors[bot] [Fri, 3 Jul 2020 14:06:13 +0000 (14:06 +0000)]
Merge #5205

5205: Refactor attribut completion tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRefactor attribut completion tests
Aleksey Kladov [Fri, 3 Jul 2020 13:46:37 +0000 (15:46 +0200)]
Refactor attribut completion tests

4 years agoCompress attribute completion tests
Aleksey Kladov [Fri, 3 Jul 2020 13:38:20 +0000 (15:38 +0200)]
Compress attribute completion tests

4 years agoMerge #5202
bors[bot] [Fri, 3 Jul 2020 13:17:36 +0000 (13:17 +0000)]
Merge #5202

5202: Runnable env r=matklad a=vsrs

This PR adds on option to specify (in the settings.json) environment variables passed to the runnable.
The simplest way for all runnables in a bunch:
```jsonc
    "rust-analyzer.runnableEnv": {
        "RUN_SLOW_TESTS": "1"
    }
```

Or it is possible to specify vars more granularly:
```jsonc
    "rust-analyzer.runnableEnv": [
        {
            // "mask": null, // null mask means that this rule will be applied for all runnables
            env: {
                 "APP_ID": "1",
                 "APP_DATA": "asdf"
            }
        },
        {
            "mask": "test_name",
            "env": {
                 "APP_ID": "2", // overwrites only APP_ID
            }
        }
    ]
```

You can use any valid RegExp as a mask. Also note that a full runnable name is something like *run bin_or_example_name*, *test some::mod::test_name* or *test-mod some::mod*, so it is possible to distinguish binaries, single tests, and test modules with this masks: `"^run"`, `"^test "` (the trailing space matters!), and `"^test-mod"` respectively.

Fixes #4450

I suppose this info should be somewhere in the docs, but unsure where is the best place.

Co-authored-by: vsrs <vit@conrlab.com>
4 years agoFix tag level
vsrs [Fri, 3 Jul 2020 13:07:28 +0000 (16:07 +0300)]
Fix tag level

4 years agoremove ---
vsrs [Fri, 3 Jul 2020 13:03:01 +0000 (16:03 +0300)]
remove ---

4 years agoAdd docs
vsrs [Fri, 3 Jul 2020 13:01:13 +0000 (16:01 +0300)]
Add docs

4 years agoMerge #5116
bors[bot] [Fri, 3 Jul 2020 12:44:09 +0000 (12:44 +0000)]
Merge #5116

5116: Categorize assists r=matklad a=kjeremy

Categorize assists so that editors can use them. Follows the LSP spec pretty close (and some things may need adjustments) but this populates the Refactor menu in vscode and pushes quickfixes through again.

This is a prerequisite to filtering out assists that the client doesn't care about.

Fixes #4147

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoFix workspaceRoot
vsrs [Fri, 3 Jul 2020 11:56:30 +0000 (14:56 +0300)]
Fix workspaceRoot

4 years agoMerge #5201
bors[bot] [Fri, 3 Jul 2020 11:24:28 +0000 (11:24 +0000)]
Merge #5201

5201: Add function to test completion edit r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agocode linting
vsrs [Thu, 2 Jul 2020 19:08:33 +0000 (22:08 +0300)]
code linting

4 years agoAdd tests
vsrs [Thu, 2 Jul 2020 18:33:26 +0000 (21:33 +0300)]
Add tests

4 years agoAdd runnable env support.
vsrs [Thu, 2 Jul 2020 16:47:40 +0000 (19:47 +0300)]
Add runnable env support.

4 years agoAdd function to test completion edit
Aleksey Kladov [Fri, 3 Jul 2020 11:21:14 +0000 (13:21 +0200)]
Add function to test completion edit

4 years agoMerge #5200
bors[bot] [Fri, 3 Jul 2020 10:57:36 +0000 (10:57 +0000)]
Merge #5200

5200: Refactor keyword completion tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRefactor keyword completion tests
Aleksey Kladov [Fri, 3 Jul 2020 10:51:18 +0000 (12:51 +0200)]
Refactor keyword completion tests

4 years agoMerge #5199
bors[bot] [Fri, 3 Jul 2020 09:49:12 +0000 (09:49 +0000)]
Merge #5199

5199: Cleanup record completion tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoCleanup record completion tests
Aleksey Kladov [Fri, 3 Jul 2020 09:48:48 +0000 (11:48 +0200)]
Cleanup record completion tests

4 years agoDon't categorize things we don't care about
kjeremy [Thu, 2 Jul 2020 22:01:22 +0000 (18:01 -0400)]
Don't categorize things we don't care about

4 years agoMove AssistKind into AssistId
kjeremy [Thu, 2 Jul 2020 21:48:35 +0000 (17:48 -0400)]
Move AssistKind into AssistId

4 years agoRecategorize a few
kjeremy [Thu, 2 Jul 2020 21:14:15 +0000 (17:14 -0400)]
Recategorize a few

4 years agoPass CodeActionKind through our middleware to populate menus
Jeremy Kolb [Sun, 28 Jun 2020 23:59:39 +0000 (19:59 -0400)]
Pass CodeActionKind through our middleware to populate menus

4 years agoCategorize assists
Jeremy Kolb [Sun, 28 Jun 2020 22:36:05 +0000 (18:36 -0400)]
Categorize assists

4 years agoMerge #5192
bors[bot] [Thu, 2 Jul 2020 15:48:54 +0000 (15:48 +0000)]
Merge #5192

5192: Implement rust-analyzer feature configuration to tests. r=matklad a=daxpedda

Fixes #3198.

I'm unsure if it is desired this way, maybe we want to make a seperate configuration?

Co-authored-by: daxpedda <daxpedda@gmail.com>
4 years agoMerge #5193
bors[bot] [Thu, 2 Jul 2020 15:40:30 +0000 (15:40 +0000)]
Merge #5193

5193: Move cargo metadata off the main loop r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMove cargo metadata off the main loop
Aleksey Kladov [Thu, 2 Jul 2020 14:47:42 +0000 (16:47 +0200)]
Move cargo metadata off the main loop

4 years agoImplement rust-analyzer feature configuration to tests.
daxpedda [Thu, 2 Jul 2020 14:13:24 +0000 (16:13 +0200)]
Implement rust-analyzer feature configuration to tests.

4 years agoMerge #5191
bors[bot] [Thu, 2 Jul 2020 14:10:13 +0000 (14:10 +0000)]
Merge #5191

5191: Minor r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMinor
Aleksey Kladov [Thu, 2 Jul 2020 14:06:00 +0000 (16:06 +0200)]
Minor

4 years agoMerge #5188
bors[bot] [Thu, 2 Jul 2020 14:02:52 +0000 (14:02 +0000)]
Merge #5188

5188: Implement StatusBar r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMerge #5189
bors[bot] [Thu, 2 Jul 2020 13:55:14 +0000 (13:55 +0000)]
Merge #5189

5189: Record and suggest assoc. items of traits via ImportMap r=matklad a=jonas-schievink

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5115

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
4 years agoUse SmolStr
Jonas Schievink [Thu, 2 Jul 2020 13:42:37 +0000 (15:42 +0200)]
Use SmolStr

4 years agoIndicate when project needs a reload
Aleksey Kladov [Thu, 2 Jul 2020 13:32:56 +0000 (15:32 +0200)]
Indicate when project needs a reload

4 years agoImplement StatusBar
Aleksey Kladov [Thu, 2 Jul 2020 10:37:04 +0000 (12:37 +0200)]
Implement StatusBar

4 years agoFix tests
Jonas Schievink [Thu, 2 Jul 2020 11:34:08 +0000 (13:34 +0200)]
Fix tests

4 years agoRecord and suggest trait items via ImportMap
Jonas Schievink [Thu, 2 Jul 2020 10:22:25 +0000 (12:22 +0200)]
Record and suggest trait items via ImportMap

4 years agoMerge #5089 #5161 #5184 #5185 #5186
bors[bot] [Thu, 2 Jul 2020 09:12:46 +0000 (09:12 +0000)]
Merge #5089 #5161 #5184 #5185 #5186

5089: Disable auto-complete on comments r=matklad a=BGluth

Resolves #4907 by disabling any auto-completion on comments.

As flodiebold [pointed out](https://github.com/rust-analyzer/rust-analyzer/issues/4907#issuecomment-648439979), in the future we may want to support some form of auto-completion within doc comments, but for now it was suggested to just disable auto-completion on them entirely.

The implementation involves adding a new field `is_comment` to `CompletionContext` and checking if the immediate token we auto-completed on is a comment. I couldn't see a case where we need to check any of the ancestors, but let me know if this is not sufficient. I also wasn't sure if it was necessary to add a new field to this struct, but I decided it's probably the best option if we want to potentially do auto-completion on doc comments in the future.

Finally, the three tests I added should I think ideally not filter results by `CompletionKind::Keyword`, but if I want to get unfiltered results, I need access to a non-public function [get_all_completion_items](https://github.com/rust-analyzer/rust-analyzer/blob/9a4d02faf9c47f401b8756c3f7fcab2198f5f9cd/crates/ra_ide/src/completion/test_utils.rs#L32-L39) which I don't know if I should make public just for this.

5161: SSR: Add initial support for placeholder constraints r=matklad a=davidlattimore

5184: Always install required nightly extension if current one is not nightly r=matklad a=Veetaha

This is weird, but having switched back to stable by uninstalling the extension appears that vscode doesn't destroy the `PersistentState` and thus changing to `nightly` channel doesn't work because the last check for nightly extension was less than 1 hour ago. The simple solution is to skip this check if we know that the current extension version is not nightly.

5185: Force showing extension activation error pop-up notification r=matklad a=Veetaha

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5091

5186: fix: correct pd/ppd/tfn/tmod completion doc r=matklad a=fannheyward

https://github.com/rust-analyzer/rust-analyzer/blob/a33eefa3b26000b3018e6bb873f18dbe15ab4ab7/crates/ra_ide/src/completion/complete_snippet.rs#L23-L24

Co-authored-by: BGluth <gluthb@gmail.com>
Co-authored-by: David Lattimore <dml@google.com>
Co-authored-by: Veetaha <veetaha2@gmail.com>
Co-authored-by: Heyward Fann <fannheyward@gmail.com>
4 years agoMerge #5180
bors[bot] [Thu, 2 Jul 2020 09:05:34 +0000 (09:05 +0000)]
Merge #5180

5180: Disable optimizations for tracing-attributes r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoDisable npm audit
Aleksey Kladov [Thu, 2 Jul 2020 08:50:50 +0000 (10:50 +0200)]
Disable npm audit

At the moment it fails with unfixable minor vuln in a dev-dependency

4 years agofix: correct pd/ppd/tfn/tmod completion doc
Heyward Fann [Thu, 2 Jul 2020 03:06:00 +0000 (11:06 +0800)]
fix: correct pd/ppd/tfn/tmod completion doc

https://github.com/rust-analyzer/rust-analyzer/blob/a33eefa3b26000b3018e6bb873f18dbe15ab4ab7/crates/ra_ide/src/completion/complete_snippet.rs#L23

4 years agoForce showing extension activation error pop-up notification
Veetaha [Thu, 2 Jul 2020 02:19:02 +0000 (05:19 +0300)]
Force showing extension activation error pop-up notification

4 years agoAlways install required nightly extension if current one is not nightly
Veetaha [Thu, 2 Jul 2020 01:56:50 +0000 (04:56 +0300)]
Always install required nightly extension if current one is not nightly

4 years agoSSR: Use T! instead of SyntaxKind::* where possible
David Lattimore [Wed, 1 Jul 2020 23:19:58 +0000 (09:19 +1000)]
SSR: Use T! instead of SyntaxKind::* where possible

4 years agoAuto-completion no longer occurs on comments
BGluth [Sat, 27 Jun 2020 02:09:11 +0000 (20:09 -0600)]
Auto-completion no longer occurs on comments

4 years agoAdded tests for no auto-completion on comments
BGluth [Fri, 26 Jun 2020 18:30:00 +0000 (12:30 -0600)]
Added tests for no auto-completion on comments

4 years agoMerge #5149
bors[bot] [Wed, 1 Jul 2020 18:41:06 +0000 (18:41 +0000)]
Merge #5149

5149: Implement Chalk variable kinds r=flodiebold a=flodiebold

This means we need to keep track of the kinds (general/int/float) of variables in `Canonical`, which requires some more ceremony. (It also exposes some places where we're not really dealing with canonicalization correctly -- another thing to be cleaned up when we switch to using Chalk's types directly.)

Should fix the last remaining issue of #2534.

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
4 years agoImplement Chalk variable kinds
Florian Diebold [Sun, 28 Jun 2020 19:17:27 +0000 (21:17 +0200)]
Implement Chalk variable kinds

This means we need to keep track of the kinds (general/int/float) of variables
in `Canonical`, which requires some more ceremony. (It also exposes some places
where we're not really dealing with canonicalization correctly -- another thing
to be cleaned up when we switch to using Chalk's types directly.)

Should fix the last remaining issue of #2534.

4 years agoDisable optimizations for tracing-attributes
Laurențiu Nicola [Wed, 1 Jul 2020 17:51:09 +0000 (20:51 +0300)]
Disable optimizations for tracing-attributes

4 years agoMerge #5179
bors[bot] [Wed, 1 Jul 2020 17:28:12 +0000 (17:28 +0000)]
Merge #5179

5179: ItemTree: Lower fields despite invalid type r=jonas-schievink a=jonas-schievink

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5147

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
4 years agoItemTree: Lower fields despite invalid type
Jonas Schievink [Wed, 1 Jul 2020 17:24:39 +0000 (19:24 +0200)]
ItemTree: Lower fields despite invalid type

4 years agoMerge #5174
bors[bot] [Wed, 1 Jul 2020 17:20:02 +0000 (17:20 +0000)]
Merge #5174

5174: Colorize more test fixtures r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #5175
bors[bot] [Wed, 1 Jul 2020 17:12:06 +0000 (17:12 +0000)]
Merge #5175

5175: More memory-efficient impl collection r=matklad a=jonas-schievink

This saves roughly 90 MB in `ImplsFromDepsQuery`, which used to copy the list of all impls from libcore into *every* crate in the graph. It also stops collecting inherent impls from dependencies entirely, as those can only be located within the crate defining the self type.

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
4 years agoMerge #5178
bors[bot] [Wed, 1 Jul 2020 16:35:16 +0000 (16:35 +0000)]
Merge #5178

5178: Fold multiline calls r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFold multiline calls
Aleksey Kladov [Wed, 1 Jul 2020 16:17:08 +0000 (18:17 +0200)]
Fold multiline calls

4 years agoColorize more test fixtures
Laurențiu Nicola [Wed, 1 Jul 2020 15:08:45 +0000 (18:08 +0300)]
Colorize more test fixtures

4 years agoUpdate file structure tests
Aleksey Kladov [Wed, 1 Jul 2020 15:59:44 +0000 (17:59 +0200)]
Update file structure tests

4 years agoMerge #5176
bors[bot] [Wed, 1 Jul 2020 15:54:23 +0000 (15:54 +0000)]
Merge #5176

5176: Update expand macro tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUpdate expand macro tests
Aleksey Kladov [Wed, 1 Jul 2020 15:52:22 +0000 (17:52 +0200)]
Update expand macro tests

4 years agoSplit `CrateImplDefs` in inherent and trait impls
Jonas Schievink [Wed, 1 Jul 2020 15:15:20 +0000 (17:15 +0200)]
Split `CrateImplDefs` in inherent and trait impls

This makes the intention of inherent vs. trait impls somewhat more
clear and also fixes (?) an issue where trait impls with an unresolved
trait were added as inherent impls instead (hence the test changes).

4 years agoMerge #5167
bors[bot] [Wed, 1 Jul 2020 15:06:13 +0000 (15:06 +0000)]
Merge #5167

5167: Reuse Semantics instances r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #5173
bors[bot] [Wed, 1 Jul 2020 14:43:11 +0000 (14:43 +0000)]
Merge #5173

5173: Automatically reload project on config change r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAutomatically reload project on config change
Aleksey Kladov [Wed, 1 Jul 2020 14:42:14 +0000 (16:42 +0200)]
Automatically reload project on config change

4 years agoMerge #5171
bors[bot] [Wed, 1 Jul 2020 14:01:36 +0000 (14:01 +0000)]
Merge #5171

5171: Better account for project reload r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoBetter account for project reload
Aleksey Kladov [Wed, 1 Jul 2020 14:01:03 +0000 (16:01 +0200)]
Better account for project reload

4 years agoDon't recursively call `impls_from_deps`
Jonas Schievink [Wed, 1 Jul 2020 13:19:36 +0000 (15:19 +0200)]
Don't recursively call `impls_from_deps`

It creates a big map and duplicates lots of impls that are then left
lying around

4 years agoAdd a transitive deps iterator to `CrateGraph`
Jonas Schievink [Wed, 1 Jul 2020 13:18:51 +0000 (15:18 +0200)]
Add a transitive deps iterator to `CrateGraph`

4 years agoMerge #5169
bors[bot] [Wed, 1 Jul 2020 13:08:25 +0000 (13:08 +0000)]
Merge #5169

5169: Add reload workspace command r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAdd reload workspace command
Aleksey Kladov [Wed, 1 Jul 2020 12:57:59 +0000 (14:57 +0200)]
Add reload workspace command

4 years agoMerge #5168
bors[bot] [Wed, 1 Jul 2020 12:49:40 +0000 (12:49 +0000)]
Merge #5168

5168: Log flycheck command r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoLog flycheck command
Aleksey Kladov [Wed, 1 Jul 2020 12:49:13 +0000 (14:49 +0200)]
Log flycheck command

4 years agoReuse Semantics instances
Laurențiu Nicola [Wed, 1 Jul 2020 12:11:34 +0000 (15:11 +0300)]
Reuse Semantics instances

4 years agoMerge #5110
bors[bot] [Wed, 1 Jul 2020 11:57:01 +0000 (11:57 +0000)]
Merge #5110

5110: Use the selection range when resolving call hierarchy items r=kjeremy a=kjeremy

Add a test in call_hierarchy that already passed and a corresponding
heavy test to test the LSP requests which exposed the issue.

Fixes #5103

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoUse the selection range when resolving call hierarchy items
Jeremy Kolb [Sun, 28 Jun 2020 18:43:02 +0000 (14:43 -0400)]
Use the selection range when resolving call hierarchy items

Add a test in call_hierarchy that already passed

Fixes #5103

4 years agoMerge #5162
bors[bot] [Wed, 1 Jul 2020 11:40:47 +0000 (11:40 +0000)]
Merge #5162

5162: Try to reduce Semantics monomorphisations r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMake less code generic
Laurențiu Nicola [Wed, 1 Jul 2020 11:32:18 +0000 (14:32 +0300)]
Make less code generic

4 years agoTry to reduce Semantics monomorphisations
Laurențiu Nicola [Wed, 1 Jul 2020 09:43:36 +0000 (12:43 +0300)]
Try to reduce Semantics monomorphisations

4 years agoMerge #5164
bors[bot] [Wed, 1 Jul 2020 11:05:59 +0000 (11:05 +0000)]
Merge #5164

5164: Dont show empty progress for empty workspaces r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDont show empty progress for empty workspaces
Aleksey Kladov [Wed, 1 Jul 2020 11:05:34 +0000 (13:05 +0200)]
Dont show empty progress for empty workspaces

4 years agoMerge #5163
bors[bot] [Wed, 1 Jul 2020 10:31:39 +0000 (10:31 +0000)]
Merge #5163

5163: Refactor parser tests a bit r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUnify magic env var name
Aleksey Kladov [Wed, 1 Jul 2020 10:31:03 +0000 (12:31 +0200)]
Unify magic env var name

4 years agoMove parser specific tests utils to parser tests
Aleksey Kladov [Wed, 1 Jul 2020 10:30:17 +0000 (12:30 +0200)]
Move parser specific tests utils to parser tests

4 years agoMerge #5159
bors[bot] [Wed, 1 Jul 2020 09:35:31 +0000 (09:35 +0000)]
Merge #5159

5159: Don't fail expect tests in rewrite mode r=matklad a=matklad

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMerge #5160
bors[bot] [Wed, 1 Jul 2020 09:28:22 +0000 (09:28 +0000)]
Merge #5160

5160: Use the existing Semantics in auto_import r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMove test data to test_data directory
Aleksey Kladov [Wed, 1 Jul 2020 09:25:22 +0000 (11:25 +0200)]
Move test data to test_data directory

4 years agoAdd file support to expect
Aleksey Kladov [Wed, 1 Jul 2020 09:19:40 +0000 (11:19 +0200)]
Add file support to expect

4 years agoUse the existing Semantics in auto_import
Laurențiu Nicola [Wed, 1 Jul 2020 08:48:15 +0000 (11:48 +0300)]
Use the existing Semantics in auto_import

4 years agoCleanup
Aleksey Kladov [Wed, 1 Jul 2020 08:43:11 +0000 (10:43 +0200)]
Cleanup

4 years agoDon't fail tests when updating snapshot
Aleksey Kladov [Wed, 1 Jul 2020 08:37:55 +0000 (10:37 +0200)]
Don't fail tests when updating snapshot

4 years agoSSR: Add initial support for placeholder constraints
David Lattimore [Tue, 23 Jun 2020 09:07:42 +0000 (19:07 +1000)]
SSR: Add initial support for placeholder constraints

4 years agoMerge #5098
bors[bot] [Wed, 1 Jul 2020 08:18:57 +0000 (08:18 +0000)]
Merge #5098

5098: Bump npm deps r=Veetaha a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
4 years agoMerge #5154 #5157
bors[bot] [Wed, 1 Jul 2020 08:11:23 +0000 (08:11 +0000)]
Merge #5154 #5157

5154: Structured search debugging r=matklad a=davidlattimore

Adds a "search" mode to the rust-analyzer binary that does structured search (SSR without the replace part). This is intended primarily for debugging why a bit of code isn't matching a pattern.

5157: Use dynamic dispatch in AstDiagnostic r=matklad a=lnicola

Co-authored-by: David Lattimore <dml@google.com>
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #5158
bors[bot] [Wed, 1 Jul 2020 08:03:47 +0000 (08:03 +0000)]
Merge #5158

5158: Use CrateName correctly r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse Strings for display names
Aleksey Kladov [Wed, 1 Jul 2020 08:03:07 +0000 (10:03 +0200)]
Use Strings for display names

4 years agoUse CrateName for semantic names
Aleksey Kladov [Wed, 1 Jul 2020 07:53:53 +0000 (09:53 +0200)]
Use CrateName for semantic names

4 years agoUse dynamic dispatch in AstDiagnostic
Laurențiu Nicola [Wed, 1 Jul 2020 07:46:27 +0000 (10:46 +0300)]
Use dynamic dispatch in AstDiagnostic

4 years agoMerge #5156
bors[bot] [Wed, 1 Jul 2020 07:35:18 +0000 (07:35 +0000)]
Merge #5156

5156: Remove db from AssistsContext r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoRemove db from AssistsContext
Laurențiu Nicola [Wed, 1 Jul 2020 07:14:23 +0000 (10:14 +0300)]
Remove db from AssistsContext

4 years agoMerge #5153
bors[bot] [Wed, 1 Jul 2020 07:17:16 +0000 (07:17 +0000)]
Merge #5153

5153: Make SemanticsScope non-generic r=matklad a=lnicola

This slightly reduces the build times:

![image](https://user-images.githubusercontent.com/308347/86210975-3a809480-bb7e-11ea-8975-788457f6b353.png)

(compare to https://github.com/rust-analyzer/rust-analyzer/issues/1987#issuecomment-652202248)

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #5155
bors[bot] [Wed, 1 Jul 2020 07:08:26 +0000 (07:08 +0000)]
Merge #5155

5155: FileSetConfig works with empty set of roots r=matklad a=matklad

Closes #5139

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>