Aleksey Kladov
ca0aef2f3f
feat: make troubleshooting a top-level section
2021-05-08 13:48:25 +03:00
bors[bot]
a12f037e12
Merge #8762
...
8762: internal: disable broken incremental builds 😿 r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-08 10:37:01 +00:00
Aleksey Kladov
1d88a3f4a2
internal: disable broken incremental builds 😿
2021-05-08 13:36:06 +03:00
bors[bot]
12e093de22
Merge #8761
...
8761: feat: friendlier trouble shooting guide r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-08 10:19:05 +00:00
Aleksey Kladov
a191b24fec
feat: friendlier trouble shooting guide
2021-05-08 13:18:25 +03:00
bors[bot]
e443d5a89b
Merge #8760
...
8760: ⬆️ package-lock.json r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-08 09:20:57 +00:00
Aleksey Kladov
cf72715439
⬆️ package-lock.json
2021-05-08 12:20:06 +03:00
bors[bot]
dd12184e4f
Merge #8759
...
8759: docs: Add Kate installation section r=matklad a=meven
Replaces https://github.com/rust-analyzer/rust-analyzer.github.io/pull/111#issuecomment-834797031
Co-authored-by: Méven Car <meven29@gmail.com >
2021-05-08 06:04:09 +00:00
Méven Car
b39578d816
docs: Add Kate installation section
2021-05-08 07:33:24 +02:00
bors[bot]
9c8763714c
Merge #8755
...
8755: fix: direct people to the right repository r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-07 21:27:20 +00:00
Aleksey Kladov
0fce38b138
fix: direct people to the right repository
2021-05-08 00:26:29 +03:00
bors[bot]
6860b647a5
Merge #8753
...
8753: internal: expose cfg attrs from hir::Crate r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-07 20:50:47 +00:00
Aleksey Kladov
53f7149d45
internal: expose cfg attrs from hir::Crate
2021-05-07 23:50:24 +03:00
bors[bot]
ba86203987
Merge #8752
...
8752: Switch from jemalloc to tikv-jemalloc r=matklad a=djrenren
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8252 .
No idea if we're still interested in this but it was a simple change so here's the PR.
Co-authored-by: John Renner <john@jrenner.net >
2021-05-07 19:47:09 +00:00
John Renner
4059112b4e
Use package renaming so source doesn't say tikv
2021-05-07 12:41:07 -07:00
John Renner
d8a9b450a6
Switch from jemalloc to tikv-jemalloc
2021-05-07 12:17:37 -07:00
bors[bot]
1ec82d4bdf
Merge #8751
...
8751: minor: standard snippet r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-07 18:47:05 +00:00
Aleksey Kladov
189f785749
minor: standard snippet
2021-05-07 21:46:25 +03:00
bors[bot]
0bc85ac798
Merge #8748
...
8748: fix: use raw idents in `make::{name, name_ref}` when used with a keyword r=jonas-schievink a=jonas-schievink
fixes https://github.com/rust-analyzer/rust-analyzer/issues/8680
bors r+
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com >
2021-05-07 15:33:08 +00:00
Jonas Schievink
e2b664e9fd
fix: use raw idents in make::name{_ref} with keywords
2021-05-07 17:22:54 +02:00
bors[bot]
a8da2ca3a1
Merge #8745
...
8745: Support goto_type_definition for types r=matklad a=Veykril
I'm unsure if the approach of lowering an `ast::Type` to a `hir::Type` is a good idea, it seems fine to me at least.
Fixes #2882
Co-authored-by: Lukas Tobias Wirth <lukastw97@gmail.com >
2021-05-06 22:28:35 +00:00
bors[bot]
0ee945e289
Merge #8280
...
8280: Borrow text of immutable syntax node r=iDawer a=iDawer
In https://github.com/rust-analyzer/rowan/pull/101 `rowan::SyntaxNode::green` returns `Cow<'_, GreenNodeData>`. It returns borrow of green node of immutable syntax tree node.
Using this we can return borrowed text from `ast::Name::text`.
~~However now it allocates in case of mutable syntax trees.~~ (see next comment)
The idea comes from https://github.com/rust-analyzer/rowan/pull/100#issuecomment-809330325
Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com >
2021-05-06 22:19:52 +00:00
bors[bot]
6fccb152b4
Merge #8746
...
8746: Don't store call-site text offsets in hygiene info r=matklad a=jonas-schievink
This threads a lot more database references around in order to avoid storing a bare `TextOffset` in the hygiene info. This `TextOffset` made hygiene info and `ItemTree`s more volatile than they should be, leading to excessive recomputation of `ItemTree`s.
The incremental test added in https://github.com/rust-analyzer/rust-analyzer/pull/8721 is now passing with these changes.
closes https://github.com/rust-analyzer/rust-analyzer/pull/8721
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com >
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-06 21:53:05 +00:00
Jonas Schievink
20ae41c1a1
Reuse database in LowerCtx
2021-05-06 23:23:50 +02:00
Aleksey Kladov
c4f9cb9b53
Update crates/hir_def/src/nameres/tests/incremental.rs
...
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com >
2021-05-06 20:00:43 +02:00
Aleksey Kladov
548e5a5c29
internal: add failing incremental test
2021-05-06 20:00:11 +02:00
Jonas Schievink
976a3226fe
Don't store call-site text offsets in hygiene info
2021-05-06 19:59:54 +02:00
bors[bot]
b37b709459
Merge #8718
...
8718: 1.52.0 r=SomeoneToIgnore a=matklad
A lot of APIs we use in this release!
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
Co-authored-by: Kirill Bulatov <mail4score@gmail.com >
2021-05-06 17:29:30 +00:00
Kirill Bulatov
607d8a2f61
Small macro fix
2021-05-06 20:12:30 +03:00
Aleksey Kladov
6a16ec52aa
internal: use API stabilized in 1.52
2021-05-06 20:12:15 +03:00
Lukas Tobias Wirth
d97a4b8e49
Support goto_type_definition for types
2021-05-06 17:05:49 +02:00
bors[bot]
3b4d5df840
Merge #8744
...
8744: minor: simplify r=edwin0cheng a=edwin0cheng
cc #8742
bors r+
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com >
2021-05-06 14:48:16 +00:00
bors[bot]
6e99f42f30
Merge #8743
...
8743: internal: explain why sentence-per-line r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com >
2021-05-06 14:41:14 +00:00
Aleksey Kladov
d4a51241ce
internal: explain why sentence-per-line
2021-05-06 17:40:36 +03:00
Edwin Cheng
1fb20e3231
Simplify
2021-05-06 22:39:51 +08:00
bors[bot]
65bdf84bea
Merge #8742
...
8742: fix: Do not overwrite comments and attrs in trait impl completion r=Veykril a=Jesse-Bakker
Fixes #8739
Co-authored-by: Jesse Bakker <github@jessebakker.com >
2021-05-06 14:26:26 +00:00
Jesse Bakker
10254b5d95
Fix: Do not overwrite comments and attrs in trait impl completion
2021-05-06 16:16:38 +02:00
Dawer
90a5dca0a2
Fix build
2021-05-06 10:22:51 +05:00
Dawer
0a156c80af
Hide implementation details of TokenText
2021-05-06 10:07:06 +05:00
Dawer
d9b4ac8128
Clean up
2021-05-06 10:07:06 +05:00
Dawer
d7e169fe55
Borrow text from nodes of immutable syntax trees
2021-05-06 10:07:06 +05:00
Dawer
dc4fa504ea
Adapt to a new rowan borrowing node API.
2021-05-06 10:06:52 +05:00
Dawer
52143f389f
Update to rowan 0.13.0-pre.5
2021-05-06 10:04:39 +05:00
bors[bot]
c3596371d8
Merge #8674
...
8674: fix for #8664 : Emit folding ranges for multi-line where clauses r=matklad a=m5tfi
#8664
I added a test that assert folding multi-line where clauses while leaving single lined one. Please, let me know if the code needs further improvements.
Co-authored-by: m5tfi <72708423+m5tfi@users.noreply.github.com >
2021-05-05 21:14:12 +00:00
bors[bot]
b10d5e342c
Merge #8736
...
8736: Update salsa r=jonas-schievink a=jonas-schievink
bors r+
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com >
2021-05-05 21:03:50 +00:00
Jonas Schievink
851bd2a32b
Update salsa
2021-05-05 23:00:29 +02:00
bors[bot]
ecc722de40
Merge #8735
...
8735: simplify r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Tobias Wirth <lukastw97@gmail.com >
2021-05-05 20:56:42 +00:00
Lukas Tobias Wirth
3f796fea9f
simplify
2021-05-05 22:55:12 +02:00
m5tfi
c2cf34db90
remove unneeded visited_where_clauses
2021-05-05 06:28:41 +02:00
bors[bot]
957760a47f
Merge #8733
...
8733: Add some cov marks for qualified_path completion r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Tobias Wirth <lukastw97@gmail.com >
2021-05-04 20:36:26 +00:00