Aleksey Kladov
5637ce4250
fix: join lines doesn't add space before closing quote
2021-05-09 17:46:41 +03:00
bors[bot]
3f01edebec
Merge #8779
...
8779: fix: join lines doesn't add space before closing quote r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-09 14:19:39 +00:00
Aleksey Kladov
e0da3da0d9
fix: join lines doesn't add space before closing quote
2021-05-09 17:19:18 +03:00
bors[bot]
b43921cddd
Merge #8777
...
8777: Escape characters in builtin macros correctly r=edwin0cheng a=edwin0cheng
Fixes #8749
It is the same bug in #8560 but in our `quote!` macro.
Because the "\" are adding exponentially in #8749 case, so the text is eat up all the memory.
bors r+
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2021-05-09 12:01:35 +00:00
Edwin Cheng
01ce37c805
Escape characters in builtin macros correctly
2021-05-09 19:57:29 +08:00
bors[bot]
6c0cdc5f55
Merge #8774
...
8774: feat: Honor `.cargo/config.toml` r=matklad a=Veykril
![f1Gup1aiAn](https://user-images.githubusercontent.com/3757771/117545448-1dcaae00-b026-11eb-977a-0f35a5e3f2e0.gif )
Implements `cargo/.config` build target and cfg access by using unstable cargo options:
- `cargo config get` to read the target triple out of the config to pass to `cargo metadata` --filter-platform
- `cargo rustc --print` to read out the `rustc_cfgs`, this causes us to honor `rustflags` and the like.
If those commands fail, due to not having a nightly toolchain present for example, they will fall back to invoking rustc directly as we currently do.
I personally think it should be fine to use these unstable options as they are unlikely to change(even if they did it shouldn't be a problem due to the fallback) and don't burden the user if they do not have a nightly toolchain at hand since we fall back to the previous behaviour.
cc #8741
Closes #6604 , Closes #5904 , Closes #8430 , Closes #8480
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-05-09 10:33:31 +00:00
bors[bot]
cf4d4f646b
Merge #8773
...
8773: fix: Correctly support SelfType when searching for usages r=Veykril a=Veykril
Fixes #7443
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-05-08 22:09:03 +00:00
Lukas Wirth
b7e6537935
Use RUSTC_BOOTSTRAP=1 instead of +nightly when discovering rust_cfgs throughs cargo
2021-05-09 00:07:04 +02:00
Lukas Wirth
3a346412cf
Don't handle Self as a usage for TraitDefs
2021-05-08 23:35:18 +02:00
bors[bot]
6cd11bbbc2
Merge #8775
...
8775: Add `=` to pattern recovery r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-05-08 21:14:47 +00:00
Lukas Wirth
174f043c8d
Add =
to pattern recovery
2021-05-08 23:14:08 +02:00
Lukas Wirth
04717b9bd2
Fix builtintype def_to_ty
2021-05-08 22:43:26 +02:00
Lukas Wirth
41f470fea8
Correctly support SelfType when searching for usages
2021-05-08 22:34:55 +02:00
bors[bot]
4e33cbc6ad
Merge #8772
...
8772: minor: remove dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 20:29:03 +00:00
Aleksey Kladov
8a7904127d
minor: remove dead code
2021-05-08 23:28:36 +03:00
bors[bot]
304cdd7778
Merge #8770
...
8770: feat: add "mentoring instructions" test for pull up assist r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 20:20:09 +00:00
Aleksey Kladov
1ee12b5db1
feat: add "mentoring instructions" test for pull up assist
2021-05-08 23:19:08 +03:00
Aleksey Kladov
1755b57e1a
internal: pull_assignment_up uses mutable trees
2021-05-08 23:11:42 +03:00
Aleksey Kladov
e603090961
minor: add missing test
2021-05-08 20:40:07 +03:00
bors[bot]
96c5df9b17
Merge #8769
...
8769: internal: removed dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 17:03:58 +00:00
Aleksey Kladov
880ddddfe6
dead code
2021-05-08 20:02:48 +03:00
Aleksey Kladov
2a4819ca19
Disable more incremental
2021-05-08 20:00:15 +03:00
bors[bot]
18d026a2a6
Merge #8768
...
8768: internal: remove one more usage of SyntaxRewriter r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 16:51:09 +00:00
Lukas Wirth
8989fb8315
Discover rustc_cfg through unstable cargo options
2021-05-08 18:17:18 +02:00
Aleksey Kladov
7ab4fd7628
internal: remove one more usage of SyntaxRewriter
2021-05-08 15:45:17 +03:00
bors[bot]
526040eea8
Merge #8765
...
8765: internal: remove one more syntax rewriter r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 11:47:40 +00:00
Aleksey Kladov
1fdc9d8e9e
internal: remove one more syntax rewriter
2021-05-08 14:47:14 +03:00
bors[bot]
4e3f0186d8
Merge #8764
...
8764: internal: add rust-analyzer version to panic context r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 11:14:24 +00:00
Aleksey Kladov
f015429c82
internal: add rust-analyzer version to panic context
2021-05-08 14:14:06 +03:00
bors[bot]
d43b3bfecb
Merge #8763
...
8763: feat: make troubleshooting a top-level section r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-05-08 10:49:00 +00:00
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