]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agouse correct spacing for enum pattern
Aleksey Kladov [Sat, 26 Oct 2019 15:03:55 +0000 (18:03 +0300)]
use correct spacing for enum pattern

4 years agodocument a couple of assists
Aleksey Kladov [Sat, 26 Oct 2019 14:37:04 +0000 (17:37 +0300)]
document a couple of assists

4 years agoadd blank lines for readability
Aleksey Kladov [Sat, 26 Oct 2019 14:27:47 +0000 (17:27 +0300)]
add blank lines for readability

4 years agodocument tasks module
Aleksey Kladov [Sat, 26 Oct 2019 14:20:44 +0000 (17:20 +0300)]
document tasks module

4 years agoMerge #2072
bors[bot] [Sat, 26 Oct 2019 14:01:02 +0000 (14:01 +0000)]
Merge #2072

2072: Upgrade Chalk (without using its dyn/impl Trait support) r=matklad a=flodiebold

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoUpgrade Chalk (without using its dyn/impl Trait support)
Florian Diebold [Tue, 15 Oct 2019 19:03:34 +0000 (21:03 +0200)]
Upgrade Chalk (without using its dyn/impl Trait support)

4 years agoMerge #2071
bors[bot] [Fri, 25 Oct 2019 20:38:46 +0000 (20:38 +0000)]
Merge #2071

2071: generate more assists docs r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agogenerate more assists docs
Aleksey Kladov [Fri, 25 Oct 2019 20:38:15 +0000 (23:38 +0300)]
generate more assists docs

4 years agoMerge #2070
bors[bot] [Fri, 25 Oct 2019 18:45:00 +0000 (18:45 +0000)]
Merge #2070

2070: sublime: hint where feature flags would go r=matklad a=jacobrosenthal

It would appear feature flags need to be under initializationOptions for sublime

```
// LSP Settings - User
{
  "clients": {
    "rust-analyzer": {
      "command": [
        "ra_lsp_server"
      ],
      "enabled": true,
      "initializationOptions": {
        "featureFlags": {
          "notifications.workspace-loaded": false
        }
      },
      "languageId": "rust",
      "scopes": [
        "source.rust"
      ],
      "syntaxes": [
        "Packages/Rust/Rust.sublime-syntax",
        "Packages/Rust Enhanced/RustEnhanced.sublime-syntax"
      ]
    }
  }
}
```

Co-authored-by: Jacob <jacobrosenthal@gmail.com>
4 years agosublime: hint where feature flags would go
Jacob [Fri, 25 Oct 2019 18:32:31 +0000 (11:32 -0700)]
sublime: hint where feature flags would go

4 years agoMerge #2069
bors[bot] [Fri, 25 Oct 2019 11:50:06 +0000 (11:50 +0000)]
Merge #2069

2069: auto-generate assists docs and tests r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoauto-generate assists docs and tests
Aleksey Kladov [Fri, 25 Oct 2019 11:16:46 +0000 (14:16 +0300)]
auto-generate assists docs and tests

4 years agoMerge #2066
bors[bot] [Fri, 25 Oct 2019 11:24:43 +0000 (11:24 +0000)]
Merge #2066

2066: insert space after `->` r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMerge #2068
bors[bot] [Fri, 25 Oct 2019 10:50:36 +0000 (10:50 +0000)]
Merge #2068

2068: Specify working chalk revisions in manifest r=matklad a=lnicola

CC #2067.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoSpecify working chalk revisions in manifest
Laurențiu Nicola [Fri, 25 Oct 2019 10:33:14 +0000 (13:33 +0300)]
Specify working chalk revisions in manifest

4 years agodisable the new typing handler for `->`
Aleksey Kladov [Fri, 25 Oct 2019 10:03:57 +0000 (13:03 +0300)]
disable the new typing handler for `->`

It doesn't actually work with LSP

4 years agoinsert space after `->`
Aleksey Kladov [Fri, 25 Oct 2019 09:16:56 +0000 (12:16 +0300)]
insert space after `->`

4 years agorefactor typing_handlers
Aleksey Kladov [Fri, 25 Oct 2019 09:04:17 +0000 (12:04 +0300)]
refactor typing_handlers

4 years agointroduce SingleFileChange
Aleksey Kladov [Fri, 25 Oct 2019 08:49:38 +0000 (11:49 +0300)]
introduce SingleFileChange

4 years agomove source change to a dedicated file
Aleksey Kladov [Fri, 25 Oct 2019 08:26:53 +0000 (11:26 +0300)]
move source change to a dedicated file

4 years agomake typing infra slightly more extensible
Aleksey Kladov [Fri, 25 Oct 2019 08:19:26 +0000 (11:19 +0300)]
make typing infra slightly more extensible

4 years agoMerge #2065
bors[bot] [Fri, 25 Oct 2019 06:01:00 +0000 (06:01 +0000)]
Merge #2065

2065: document feature flags r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agodocument feature flags
Aleksey Kladov [Fri, 25 Oct 2019 06:00:30 +0000 (09:00 +0300)]
document feature flags

4 years agoMerge #2063
bors[bot] [Thu, 24 Oct 2019 21:59:16 +0000 (21:59 +0000)]
Merge #2063

2063: Update link to api rustdocs pt.2 r=matklad a=memoryruins

After #2014, the website was updated in #2031, where the docs url changed again.
Checking, there are only two places the api rustdocs link resides currently:
the root readme.md's `# quick links` (which was updated in #2031) and this dev docs readme.

Co-authored-by: memoryruins <memoryruinsmusic@gmail.com>
4 years agoUpdate rustdoc link pt.2
memoryruins [Thu, 24 Oct 2019 21:01:42 +0000 (17:01 -0400)]
Update rustdoc link pt.2

4 years agoMerge #2062
bors[bot] [Thu, 24 Oct 2019 16:30:15 +0000 (16:30 +0000)]
Merge #2062

2062: refactor comment extraction from tasks r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agorefactor comment extraction from tasks
Aleksey Kladov [Thu, 24 Oct 2019 16:29:38 +0000 (19:29 +0300)]
refactor comment extraction from tasks

4 years agosimplify
Aleksey Kladov [Thu, 24 Oct 2019 16:19:22 +0000 (19:19 +0300)]
simplify

4 years agoMerge #2060
bors[bot] [Thu, 24 Oct 2019 14:50:46 +0000 (14:50 +0000)]
Merge #2060

2060: bump insta r=matklad a=kjeremy

Dops console 0.8.0

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agobump insta
kjeremy [Thu, 24 Oct 2019 14:35:22 +0000 (10:35 -0400)]
bump insta

4 years agoMerge #2059
bors[bot] [Thu, 24 Oct 2019 11:17:03 +0000 (11:17 +0000)]
Merge #2059

2059: for highlighting, search only the current file r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agofor highlighting, search only the current file
Aleksey Kladov [Thu, 24 Oct 2019 11:01:02 +0000 (14:01 +0300)]
for highlighting, search only the current file

4 years agoadd search scope stuct
Aleksey Kladov [Thu, 24 Oct 2019 10:41:25 +0000 (13:41 +0300)]
add search scope stuct

4 years agoMerge #2058
bors[bot] [Thu, 24 Oct 2019 09:32:47 +0000 (09:32 +0000)]
Merge #2058

2058: add --with-deps option to analysis-stats r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoadd --with-deps option to analysis-stats
Aleksey Kladov [Thu, 24 Oct 2019 09:32:19 +0000 (12:32 +0300)]
add --with-deps option to analysis-stats

4 years agoMerge #2057
bors[bot] [Thu, 24 Oct 2019 07:37:52 +0000 (07:37 +0000)]
Merge #2057

2057: add some profiling calls r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoadd some profiling calls
Aleksey Kladov [Thu, 24 Oct 2019 07:37:20 +0000 (10:37 +0300)]
add some profiling calls

4 years agoMerge #2056
bors[bot] [Thu, 24 Oct 2019 06:57:03 +0000 (06:57 +0000)]
Merge #2056

2056: don't die if a sync task panics r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agodon't die if a sync task panics
Aleksey Kladov [Thu, 24 Oct 2019 06:52:32 +0000 (09:52 +0300)]
don't die if a sync task panics

4 years agoMerge #2053
bors[bot] [Thu, 24 Oct 2019 06:15:13 +0000 (06:15 +0000)]
Merge #2053

2053: show unaccounted for time in profiling r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoshow unaccounted for time in profiling
Aleksey Kladov [Thu, 24 Oct 2019 06:05:11 +0000 (09:05 +0300)]
show unaccounted for time in profiling

4 years agoMerge #2050
bors[bot] [Wed, 23 Oct 2019 15:57:47 +0000 (15:57 +0000)]
Merge #2050

2050: xtask: don't depend on itertools r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoxtask: don't depend on itertools
Aleksey Kladov [Wed, 23 Oct 2019 15:24:40 +0000 (18:24 +0300)]
xtask: don't depend on itertools

xtask should be fast to compiler, as it's a gateway to rust-analyzer

4 years agoxtask: fold gen-tests and gen-ast into codegen
Aleksey Kladov [Wed, 23 Oct 2019 15:17:24 +0000 (18:17 +0300)]
xtask: fold gen-tests and gen-ast into codegen

4 years agoxtask: move codegen to a module
Aleksey Kladov [Wed, 23 Oct 2019 15:13:40 +0000 (18:13 +0300)]
xtask: move codegen to a module

4 years agoMerge #2049
bors[bot] [Wed, 23 Oct 2019 15:44:40 +0000 (15:44 +0000)]
Merge #2049

2049: add couple of profiling calls r=matklad a=matklad

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoadd couple of profiling calls
Aleksey Kladov [Wed, 23 Oct 2019 15:26:43 +0000 (18:26 +0300)]
add couple of profiling calls

4 years agoMerge #2048
bors[bot] [Wed, 23 Oct 2019 14:42:21 +0000 (14:42 +0000)]
Merge #2048

2048: minor cleanup r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agominor cleanup
Aleksey Kladov [Wed, 23 Oct 2019 14:41:15 +0000 (17:41 +0300)]
minor cleanup

4 years agoMerge #1980
bors[bot] [Wed, 23 Oct 2019 11:13:04 +0000 (11:13 +0000)]
Merge #1980

1980: Shorten inline type hints r=matklad a=detrumi

Implements #1946

Co-authored-by: Wilco Kusee <wilcokusee@gmail.com>
4 years agoDo not truncate the range
Wilco Kusee [Wed, 23 Oct 2019 11:11:40 +0000 (13:11 +0200)]
Do not truncate the range

4 years agoMerge #2047
bors[bot] [Wed, 23 Oct 2019 08:31:41 +0000 (08:31 +0000)]
Merge #2047

2047: restore assert r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agorestore assert
Aleksey Kladov [Wed, 23 Oct 2019 08:31:16 +0000 (11:31 +0300)]
restore assert

4 years agoMerge #1892
bors[bot] [Wed, 23 Oct 2019 08:20:18 +0000 (08:20 +0000)]
Merge #1892

1892: Find usages r=matklad a=viorina

Fixes #1622.

Co-authored-by: Ekaterina Babshukova <ekaterina.babshukova@yandex.ru>
4 years agosome fixes, add docs
Ekaterina Babshukova [Tue, 22 Oct 2019 20:46:53 +0000 (23:46 +0300)]
some fixes, add docs

4 years agosupport items that visible to the parent module
Ekaterina Babshukova [Wed, 16 Oct 2019 13:49:35 +0000 (16:49 +0300)]
support items that visible to the parent module

4 years agoclassify module from declaration
Ekaterina Babshukova [Tue, 15 Oct 2019 19:50:28 +0000 (22:50 +0300)]
classify module from declaration

4 years agofix highlighting
Ekaterina Babshukova [Tue, 15 Oct 2019 16:25:57 +0000 (19:25 +0300)]
fix highlighting

4 years agoremove SearchScope
Ekaterina Babshukova [Mon, 14 Oct 2019 12:49:32 +0000 (15:49 +0300)]
remove SearchScope

4 years agouse Lazy, some fixes
Ekaterina Babshukova [Mon, 14 Oct 2019 11:59:02 +0000 (14:59 +0300)]
use Lazy, some fixes

4 years agoremove `unreachable!()`
Ekaterina Babshukova [Sat, 12 Oct 2019 17:40:49 +0000 (20:40 +0300)]
remove `unreachable!()`

4 years agoreplace trait by a bunch of functions
Ekaterina Babshukova [Sat, 12 Oct 2019 17:30:53 +0000 (20:30 +0300)]
replace trait by a bunch of functions

4 years agorestructure a bit
Ekaterina Babshukova [Sat, 12 Oct 2019 15:47:17 +0000 (18:47 +0300)]
restructure a bit

4 years agoclassify definition of a function right
Ekaterina Babshukova [Sat, 12 Oct 2019 12:47:36 +0000 (15:47 +0300)]
classify definition of a function right

4 years agomake `handle_references` accept refs from other files
Ekaterina Babshukova [Sat, 12 Oct 2019 10:39:02 +0000 (13:39 +0300)]
make `handle_references` accept refs from other files

4 years agosome fixes, add tests
Ekaterina Babshukova [Thu, 10 Oct 2019 23:11:23 +0000 (02:11 +0300)]
some fixes, add tests

4 years agoimplement search of references
Ekaterina Babshukova [Thu, 10 Oct 2019 15:51:51 +0000 (18:51 +0300)]
implement search of references

4 years agofind scope for `Declaration` item
Ekaterina Babshukova [Wed, 9 Oct 2019 21:25:48 +0000 (00:25 +0300)]
find scope for `Declaration` item

4 years agoreturn Declaration from classify_name_ref
Ekaterina Babshukova [Fri, 4 Oct 2019 00:20:14 +0000 (03:20 +0300)]
return Declaration from classify_name_ref

4 years agoreturn Declaration from classify_name
Ekaterina Babshukova [Thu, 3 Oct 2019 03:08:44 +0000 (06:08 +0300)]
return Declaration from classify_name

4 years agoreplace a chain of `if let` by macro
Ekaterina Babshukova [Thu, 3 Oct 2019 00:00:47 +0000 (03:00 +0300)]
replace a chain of `if let` by macro

4 years agorefactor name_ref_kind.rs
Ekaterina Babshukova [Sat, 21 Sep 2019 16:35:39 +0000 (19:35 +0300)]
refactor name_ref_kind.rs

4 years agoinitial classify_name
Ekaterina Babshukova [Sat, 14 Sep 2019 11:38:10 +0000 (14:38 +0300)]
initial classify_name

4 years agoMerge #2046
bors[bot] [Tue, 22 Oct 2019 17:22:09 +0000 (17:22 +0000)]
Merge #2046

2046: Bump crates r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoMerge #1933
bors[bot] [Tue, 22 Oct 2019 17:10:17 +0000 (17:10 +0000)]
Merge #1933

1933: Adds "replace with guarded return" assist r=matklad a=mikhail-m1

first draft for #1782. I'm pretty sure I missed something.

Co-authored-by: Mikhail Modin <mikhailm1@gmail.com>
4 years agoBump crates
kjeremy [Tue, 22 Oct 2019 17:01:26 +0000 (13:01 -0400)]
Bump crates

4 years agoMerge #2043
bors[bot] [Tue, 22 Oct 2019 08:09:03 +0000 (08:09 +0000)]
Merge #2043

2043: Instructions for VS Code Remote Development r=matklad a=marcogroppo

`rust-analyzer` can be used with the Visual Studio Code Remote Development extension pack, but `cargo xtask install` is not enough, you have to install the `VSIX` package from VS Code.

These instructions have been added to the `README`.

Co-authored-by: Marco Groppo <marco.groppo@gmail.com>
4 years agoMerge #2044
bors[bot] [Tue, 22 Oct 2019 07:57:37 +0000 (07:57 +0000)]
Merge #2044

2044: Fixup folding ranges for clients with lineFoldingOnly=true r=matklad a=ztlpn

Fixes #2033

Co-authored-by: Alex Zatelepin <mvzp10@gmail.com>
4 years agoadd test #2033
Alex Zatelepin [Mon, 21 Oct 2019 19:34:44 +0000 (22:34 +0300)]
add test #2033

4 years agoInstructions for VSCode Remote
Marco Groppo [Mon, 21 Oct 2019 19:19:26 +0000 (21:19 +0200)]
Instructions for VSCode Remote

4 years agofixup folding ranges for "lineFoldingOnly" clients #2033
Alex Zatelepin [Sun, 20 Oct 2019 23:04:55 +0000 (02:04 +0300)]
fixup folding ranges for "lineFoldingOnly" clients #2033

4 years agoMerge #2039
bors[bot] [Mon, 21 Oct 2019 11:42:05 +0000 (11:42 +0000)]
Merge #2039

2039: Guess macro braces from docs r=matklad a=oxalica

Instead of hard-code `vec` to have snippet with bracket `vec![]`,
we try to find the "most common used brace kind" from documentation of the macro,
which usually contains some example code.
It also works better with extern macros.

We can suggest braces for `thread_local! {}` now.

Co-authored-by: oxalica <oxalicc@pm.me>
4 years agoMerge #2041
bors[bot] [Mon, 21 Oct 2019 11:23:07 +0000 (11:23 +0000)]
Merge #2041

2041: try to warn about old rust r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agotry to warn about old rust
Aleksey Kladov [Mon, 21 Oct 2019 10:40:40 +0000 (13:40 +0300)]
try to warn about old rust

4 years agoGuess macro braces from docs
oxalica [Sun, 20 Oct 2019 18:16:01 +0000 (02:16 +0800)]
Guess macro braces from docs

4 years agoAdds "replace with guarded return" assist
Mikhail Modin [Sun, 20 Oct 2019 18:00:09 +0000 (19:00 +0100)]
Adds "replace with guarded return" assist

4 years agoMake inlay hint length configurable
Wilco Kusee [Fri, 18 Oct 2019 11:40:03 +0000 (13:40 +0200)]
Make inlay hint length configurable

4 years agoMerge #2032
bors[bot] [Thu, 17 Oct 2019 20:14:31 +0000 (20:14 +0000)]
Merge #2032

2032: rename tools -> xtask r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agorename tools -> xtask
Aleksey Kladov [Thu, 17 Oct 2019 20:01:53 +0000 (23:01 +0300)]
rename tools -> xtask

4 years agoWIP: move to xtasks
Aleksey Kladov [Thu, 17 Oct 2019 16:36:55 +0000 (19:36 +0300)]
WIP: move to xtasks

4 years agoMerge #2031
bors[bot] [Thu, 17 Oct 2019 19:37:52 +0000 (19:37 +0000)]
Merge #2031

2031: scale website back r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoscale website back
Aleksey Kladov [Thu, 17 Oct 2019 19:37:01 +0000 (22:37 +0300)]
scale website back

We have dedicated https://rust-analyzer.github.io/ now

4 years agoMerge #2029
bors[bot] [Thu, 17 Oct 2019 18:44:59 +0000 (18:44 +0000)]
Merge #2029

2029: Adds config option for cargo-watch `--ignore` flag r=matklad a=jrvidal

I presume this is a nice-to-have to avoid spurious watching.

* I don't know much about Windows, so I'm not sure if the extra args need some special escaping.
* I suppose we could reuse and/or integrate with `rust-analyzer.excludeGlobs`. I find this simpler, but I'm open to suggestions.

Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
4 years agoAdds config option for cargo-watch `--ignore` flag
Roberto Vidal [Thu, 17 Oct 2019 13:22:39 +0000 (15:22 +0200)]
Adds config option for cargo-watch `--ignore` flag

4 years agoMerge #2028
bors[bot] [Thu, 17 Oct 2019 17:32:06 +0000 (17:32 +0000)]
Merge #2028

2028: bump proc-macro-hack r=matklad a=kjeremy

Might as well

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agobump proc-macro-hack
kjeremy [Thu, 17 Oct 2019 17:27:05 +0000 (13:27 -0400)]
bump proc-macro-hack

4 years agoMerge #2027
bors[bot] [Thu, 17 Oct 2019 17:11:12 +0000 (17:11 +0000)]
Merge #2027

2027: relative-path 1.0 r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agorelative-path 1.0
kjeremy [Tue, 15 Oct 2019 14:44:26 +0000 (10:44 -0400)]
relative-path 1.0

4 years agoMerge #2024
bors[bot] [Thu, 17 Oct 2019 16:04:13 +0000 (16:04 +0000)]
Merge #2024

2024: Add rust-analyzer.showWorkspaceLoadedNotification to package.json r=matklad a=lnicola

Fixes #2016

I still believe the option has no effect, but...

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #2025
bors[bot] [Thu, 17 Oct 2019 15:52:17 +0000 (15:52 +0000)]
Merge #2025

2025: Bump deps r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>