Jonas Schievink
90331ea035
Make known paths use core
instead of std
2020-06-11 16:23:20 +02:00
bors[bot]
900a0a7a89
Merge #4847
...
4847: Update crates r=kjeremy a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-06-11 13:00:28 +00:00
kjeremy
c383bc8094
Update crates
2020-06-11 08:55:41 -04:00
bors[bot]
079e449421
Merge #4845
...
4845: Updated yanked crate r=kjeremy a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-06-11 12:44:56 +00:00
kjeremy
b2aefc2e02
Updated yanked crate
2020-06-11 08:43:35 -04:00
Mikhail Rakhmanov
eb4004fdb8
Add todo
2020-06-11 14:32:14 +02:00
Mikhail Rakhmanov
9f91901f7e
Add more keywords
2020-06-11 14:16:35 +02:00
bors[bot]
5a57f3dcd7
Merge #4844
...
4844: Remove dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-11 11:35:39 +00:00
Aleksey Kladov
663ce0e99d
Remove dead code
2020-06-11 13:34:09 +02:00
bors[bot]
32157d48f4
Merge #4843
...
4843: Don't guess macro expansion crate r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-11 10:18:53 +00:00
Aleksey Kladov
fac7b0e252
Don't guess macro expansion crate
2020-06-11 12:13:14 +02:00
bors[bot]
f320c38aec
Merge #4819
...
4819: Add an FST index to `ImportMap` and use it to speed up auto import r=matklad a=jonas-schievink
For the importing crate, we still use the symbol index, but I've modified it to only look at files that comprise that crate (instead of the whole workspace).
Oh, and since now the symbol query limit is respected correctly, it's possible that some results from the local crate now disappear if there are many matches.
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/4763
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2020-06-11 10:07:52 +00:00
Jonas Schievink
6766a6b0e1
Add symbol index FIXME
2020-06-11 12:03:08 +02:00
Aleksey Kladov
d8a5d39c2d
Make relevant_crates return a Set
2020-06-11 11:30:06 +02:00
bors[bot]
dfbd81e84a
Merge #4837
...
4837: Fix parser test directory name in dev docs r=matklad a=jacg
The docs referred to `parser/error` while in reality it is `parser/err`.
Co-authored-by: Jacek Generowicz <jacg@my-post-office.net>
2020-06-10 19:29:04 +00:00
Jacek Generowicz
f280407d73
Fix parser test directory name in dev docs
2020-06-10 20:32:29 +02:00
Jonas Schievink
dd22657407
ImportMap: use IndexMap internally
...
It iterates in insertion order, which makes the ordering more
predictable.
2020-06-10 16:15:49 +02:00
Jonas Schievink
7e83ed99a8
Respect casing when searching for imports
2020-06-10 16:04:55 +02:00
bors[bot]
96309ba4a1
Merge #4835
...
4835: Explain inline tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-10 12:12:32 +00:00
Aleksey Kladov
1538206609
Explain inline tests
2020-06-10 14:12:08 +02:00
Jonas Schievink
ed2817e599
Move limit check down
2020-06-10 12:40:33 +02:00
Jonas Schievink
56c7145993
Limit import map queries
2020-06-10 12:40:33 +02:00
Jonas Schievink
bcf875f46a
Clean up import_map.rs
2020-06-10 12:38:58 +02:00
Jonas Schievink
781b514e58
Add test for macro generated items
2020-06-10 12:38:58 +02:00
Jonas Schievink
a70a0ca73c
ImportsLocator: use ImportMap for non-local crates
2020-06-10 12:38:58 +02:00
Jonas Schievink
b01fb22494
ra_hir: expose import_map::search_dependencies
2020-06-10 12:38:58 +02:00
Jonas Schievink
6463d3ac63
symbol_index: allow querying a single crate
2020-06-10 12:38:58 +02:00
Jonas Schievink
4bcf8c8c68
Add an FST index to ImportMap
2020-06-10 12:38:58 +02:00
Jonas Schievink
54936e8aa2
Fix the symbol query limit
2020-06-10 12:38:58 +02:00
Jonas Schievink
d50a1a0fe9
Profile world_symbols
2020-06-10 12:38:58 +02:00
bors[bot]
f632727b2a
Merge #4834
...
4834: In field patterns, don't highlight local binding as a field r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-10 10:37:27 +00:00
Aleksey Kladov
db1cadd444
In field patterns, don't highlight local binding as a field
2020-06-10 12:34:23 +02:00
Matthew Jasper
506e1ddbfa
Separating parsing of for
in predicates and types
2020-06-10 11:30:58 +01:00
bors[bot]
9251f181de
Merge #4832
...
4832: Reduce OUT_DIR special casing r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-10 10:09:06 +00:00
Aleksey Kladov
27ebe5d33e
Reduce OUT_DIR special casing
2020-06-10 12:08:35 +02:00
bors[bot]
560b98bc50
Merge #4822
...
4822: Let checkOnSafe default to some of the options of cargo r=matklad a=clemenswasser
This will fix #4631
The implementation works (as far as I have tested) but is suboptimal because I am copying the "cargo.features".
Co-authored-by: Clemens Wasser <clemens.wasser@gmail.com>
2020-06-10 07:39:44 +00:00
Clemens Wasser
fe21fc2d25
checkOnSafe.features and checkOnSafe.allFeatures now work identically.
2020-06-10 09:37:26 +02:00
Clemens Wasser
33b9058838
Most of the checkOnSafe options now default to the cargo equivalent.
2020-06-10 09:27:25 +02:00
Clemens Wasser
47ef544fa5
Added the rust-analyzer.checkOnSave.features option.
2020-06-10 08:51:11 +02:00
bors[bot]
c9fc7251ca
Merge #4824
...
4824: Correct "debug_assertion" to "debug_assertions" to match the cfg that the rust debug assert macros use. r=matklad a=woody77
This is for #4823 .
Co-authored-by: Aaron Wood <aaronwood@google.com>
2020-06-10 05:24:18 +00:00
Aaron Wood
f4ed2da966
Correct "debug_assertion" to "debug_assertions" to match the cfg
...
option that the rust debug assert macros use.
2020-06-09 19:58:39 -07:00
Clemens Wasser
684b6fa1b8
flycheck now uses the configured features
2020-06-09 21:47:54 +02:00
Benjamin Coenen
9d0a6aaee3
display Doctest code lens before comment #4785
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-06-09 21:28:51 +02:00
bors[bot]
ba821afa24
Merge #4815
...
4815: Correctly parse <_> paths in patterns r=matklad a=matklad
closes #3659
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-09 11:47:11 +00:00
Aleksey Kladov
e8d50578ab
Correctly parse <_> paths in patterns
...
closes #3659
2020-06-09 13:45:18 +02:00
Aleksey Kladov
16943e533c
Minor, use T!
2020-06-09 13:45:11 +02:00
bors[bot]
d4d384e4c8
Merge #4813
...
4813: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-09 11:22:38 +00:00
Aleksey Kladov
d8571e076c
Simplify
2020-06-09 13:17:22 +02:00
bors[bot]
eb53f5a9e5
Merge #4812
...
4812: Use correct indent when replacing with match r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-09 11:14:30 +00:00
Aleksey Kladov
8cad7d1a2b
Use correct indent when replacing with match
2020-06-09 12:38:47 +02:00