]>
git.lizzy.rs Git - rust.git/log
Jake Heinz [Mon, 3 Jan 2022 01:50:49 +0000 (01:50 +0000)]
internal: dont descend into comments
bors[bot] [Mon, 3 Jan 2022 00:32:31 +0000 (00:32 +0000)]
Merge #11175
11175: fix: Fix highlighting hack for self-params r=Veykril a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11174
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Mon, 3 Jan 2022 00:32:03 +0000 (01:32 +0100)]
fix: Fix highlighting hack for self-params
bors[bot] [Sun, 2 Jan 2022 22:15:30 +0000 (22:15 +0000)]
Merge #11171
11171: fix: Fix tool module classification not working correctly r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 22:14:18 +0000 (23:14 +0100)]
Fix tool module classification not working correctly
bors[bot] [Sun, 2 Jan 2022 21:24:07 +0000 (21:24 +0000)]
Merge #11170
11170: minor: Cleanup syntax highlighting r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 21:22:13 +0000 (22:22 +0100)]
minor: Cleanup syntax highlighting
bors[bot] [Sun, 2 Jan 2022 18:27:16 +0000 (18:27 +0000)]
Merge #11169
11169: internal: Handle macro calls better in highlighting r=Veykril a=Veykril
Introduces a new semantic highlighting tag for the `!` character of macro calls.
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10962
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 18:20:10 +0000 (19:20 +0100)]
fix NameRefClass misclassifying proc-macros
Lukas Wirth [Sun, 2 Jan 2022 18:06:19 +0000 (19:06 +0100)]
fix syntactic highlighting for macros
Lukas Wirth [Sun, 2 Jan 2022 18:10:10 +0000 (19:10 +0100)]
internal: Handle macro calls better in highlighting
bors[bot] [Sun, 2 Jan 2022 16:49:40 +0000 (16:49 +0000)]
Merge #11166
11166: minor: Simplify r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 15:35:58 +0000 (16:35 +0100)]
minor: Simplify
bors[bot] [Sun, 2 Jan 2022 16:08:23 +0000 (16:08 +0000)]
Merge #11168
11168: minor: drop dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 2 Jan 2022 16:05:37 +0000 (19:05 +0300)]
minor: replace panics with types
Aleksey Kladov [Sun, 2 Jan 2022 16:03:38 +0000 (19:03 +0300)]
minor: drop dead code
bors[bot] [Sun, 2 Jan 2022 15:50:57 +0000 (15:50 +0000)]
Merge #11167
11167: internal: check top level entry point invariants r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 2 Jan 2022 15:50:32 +0000 (18:50 +0300)]
add empty input tests
Aleksey Kladov [Sun, 2 Jan 2022 15:46:01 +0000 (18:46 +0300)]
more intuitive order
Aleksey Kladov [Sun, 2 Jan 2022 15:41:32 +0000 (18:41 +0300)]
check top level entry point invariants
Aleksey Kladov [Sun, 2 Jan 2022 14:52:05 +0000 (17:52 +0300)]
add top-level tests for expressions
bors[bot] [Sun, 2 Jan 2022 14:46:05 +0000 (14:46 +0000)]
Merge #11165
11165: internal: start enforcing invariants for top-level entry points r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 2 Jan 2022 14:45:18 +0000 (17:45 +0300)]
add top level tests for types
Aleksey Kladov [Sun, 2 Jan 2022 14:32:15 +0000 (17:32 +0300)]
enforce parsing invariant for patterns
bors[bot] [Sun, 2 Jan 2022 14:19:07 +0000 (14:19 +0000)]
Merge #11164
11164: internal: more macro tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 2 Jan 2022 14:18:21 +0000 (17:18 +0300)]
internal: more macro tests
Aleksey Kladov [Sun, 2 Jan 2022 13:48:10 +0000 (16:48 +0300)]
add test for macro items
bors[bot] [Sun, 2 Jan 2022 12:19:25 +0000 (12:19 +0000)]
Merge #11163
11163: internal: start tests for top-level parser entry points r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 2 Jan 2022 12:18:34 +0000 (15:18 +0300)]
split prefix/top tests
Aleksey Kladov [Sun, 2 Jan 2022 12:17:32 +0000 (15:17 +0300)]
add tests for macro statements
Aleksey Kladov [Sun, 2 Jan 2022 12:15:04 +0000 (15:15 +0300)]
start top-level entry point tests
Aleksey Kladov [Sun, 2 Jan 2022 12:01:20 +0000 (15:01 +0300)]
minor: generalize
bors[bot] [Sun, 2 Jan 2022 11:41:54 +0000 (11:41 +0000)]
Merge #11162
11162: minor: Simplify r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 11:40:46 +0000 (12:40 +0100)]
minor: Simplify
bors[bot] [Sun, 2 Jan 2022 10:08:10 +0000 (10:08 +0000)]
Merge #11161
11161: minor: style nits r=lnicola a=lnicola
- avoid `fold` with a `Vec` seed which could have been a `for_each`
- we can't drop the dependency, but avoid `Itertools::collect_vec`
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Sun, 2 Jan 2022 10:05:31 +0000 (12:05 +0200)]
Avoid collect_vec from itertools
Laurențiu Nicola [Sun, 2 Jan 2022 10:03:34 +0000 (12:03 +0200)]
Replace folds with for loops
bors[bot] [Sun, 2 Jan 2022 03:48:38 +0000 (03:48 +0000)]
Merge #11160
11160: internal: Use basic `NonEmptyVec` in mbe::syntax_bridge r=Veykril a=Veykril
There are some places in the ide crates where this can be used as well if memory serves right.
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 02:25:47 +0000 (03:25 +0100)]
internal: Use basic NonEmptyVec in mbe::syntax_bridge
bors[bot] [Sun, 2 Jan 2022 01:39:53 +0000 (01:39 +0000)]
Merge #11159
11159: minor: Simplify r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sun, 2 Jan 2022 01:39:14 +0000 (02:39 +0100)]
Simplify
bors[bot] [Sat, 1 Jan 2022 21:20:55 +0000 (21:20 +0000)]
Merge #11158
11158: fix: Enable completions for `<_>::$0` r=Veykril a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10462
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sat, 1 Jan 2022 21:20:03 +0000 (22:20 +0100)]
fix: Enable completions for `<_>::$0`
bors[bot] [Sat, 1 Jan 2022 19:44:16 +0000 (19:44 +0000)]
Merge #11156
11156: internal: Record unresolved derive invocations in hir r=Veykril a=Veykril
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Sat, 1 Jan 2022 19:31:04 +0000 (20:31 +0100)]
internal: Record unresolved derive invocations in hir
bors[bot] [Sat, 1 Jan 2022 17:04:29 +0000 (17:04 +0000)]
Merge #11153
11153: internal: add more prefix entry point tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 1 Jan 2022 16:51:13 +0000 (19:51 +0300)]
internal: add more prefix entry point tests
bors[bot] [Sat, 1 Jan 2022 16:42:22 +0000 (16:42 +0000)]
Merge #11136
11136: Turbo fish assist supports multiple type arguments r=matklad a=Vannevelj
This fixes #11135 (changelog: bug).
I've only started using Rust a few days ago but saw this issue on the top of the list when I looked at this repo. I based myself on [this blog post](https://techblog.tonsser.com/posts/what-is-rusts-turbofish) to understand what a "turbo fish" is so let me know if I missed anything.
Co-authored-by: Jeroen Vannevel <jer_vannevel@outlook.com>
bors[bot] [Sat, 1 Jan 2022 16:17:39 +0000 (16:17 +0000)]
Merge #11151
11151: feat: correctly fallback to notify if the clinet-side file watching is not supported r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 1 Jan 2022 16:10:34 +0000 (19:10 +0300)]
test: force client-side watching
The direct reason for this is to fix CI on windows, which seems to fail
for some reason after we fixed the watcher-selection logic which (I
think) changed the tests behavior to use notify rather than client.
But this patch seems to make sense in general -- file watching is
notoriously finicky, so controlling it explicitly leads to less fragile
tests.
bors[bot] [Sat, 1 Jan 2022 16:03:24 +0000 (16:03 +0000)]
Merge #11152
11152: internal: add more tests for entry points r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 1 Jan 2022 16:02:47 +0000 (19:02 +0300)]
add path tests
Aleksey Kladov [Thu, 30 Dec 2021 12:09:37 +0000 (15:09 +0300)]
add expr tests
Aleksey Kladov [Thu, 30 Dec 2021 11:26:59 +0000 (14:26 +0300)]
tests for ty
Aleksey Kladov [Thu, 30 Dec 2021 11:20:35 +0000 (14:20 +0300)]
internal: add tests for patterns
Aleksey Kladov [Sat, 1 Jan 2022 14:43:02 +0000 (17:43 +0300)]
better error message
Aleksey Kladov [Sat, 1 Jan 2022 14:26:54 +0000 (17:26 +0300)]
feat: correctly fallback to notify if the clinet-side file watching is not supported
bors[bot] [Thu, 30 Dec 2021 12:52:05 +0000 (12:52 +0000)]
Merge #11144
11144: fix: Fix server path on NixOS r=lnicola a=lnicola
See https://github.com/rust-analyzer/rust-analyzer/commit/
c0d0ceefb29111732cacf39dbb57fe9f3ce25ee8 #commitcomment-
62688259 .
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Thu, 30 Dec 2021 12:50:54 +0000 (14:50 +0200)]
Fix server path on NixOS
bors[bot] [Thu, 30 Dec 2021 10:30:28 +0000 (10:30 +0000)]
Merge #11141
11141: internal: add tests for extra parser entry points r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
bors[bot] [Thu, 30 Dec 2021 08:41:10 +0000 (08:41 +0000)]
Merge #10692
10692: Migrate to new rowan r=lnicola a=azdavis
Since https://github.com/rust-analyzer/rowan/pull/122 was merged into rowan, this could be how rust-analyzer migrates.
Co-authored-by: Ariel Davis <ariel.z.davis@icloud.com>
Ariel Davis [Thu, 30 Dec 2021 07:48:53 +0000 (23:48 -0800)]
Migrate to SyntaxNodePtr in new rowan
Aleksey Kladov [Wed, 29 Dec 2021 17:37:08 +0000 (20:37 +0300)]
restore invariatns
Aleksey Kladov [Wed, 29 Dec 2021 17:04:36 +0000 (20:04 +0300)]
parse empty statemet as statemetn
Aleksey Kladov [Wed, 29 Dec 2021 16:37:35 +0000 (19:37 +0300)]
Add test
Aleksey Kladov [Wed, 29 Dec 2021 16:18:34 +0000 (19:18 +0300)]
rename
Aleksey Kladov [Wed, 29 Dec 2021 15:51:05 +0000 (18:51 +0300)]
compress
Aleksey Kladov [Wed, 29 Dec 2021 15:37:06 +0000 (18:37 +0300)]
add automated semicolon insertion test
Aleksey Kladov [Wed, 29 Dec 2021 15:23:34 +0000 (18:23 +0300)]
internal: add tests for extra parser entry points
Jeroen Vannevel [Tue, 28 Dec 2021 18:52:12 +0000 (18:52 +0000)]
formatting
Jeroen Vannevel [Tue, 28 Dec 2021 18:41:34 +0000 (18:41 +0000)]
turbo fish supports multiple type arguments
bors[bot] [Tue, 28 Dec 2021 16:22:20 +0000 (16:22 +0000)]
Merge #11134
11134: internal: tighten up parser API r=matklad a=matklad
It's tempting to expose things like `Expr::parse`,
but they'll necessary have somewhat ad-hoc semantics.
Instead, we narrow down the parser's interface strictly
to what's needed for MBE. For everything else (eg, parsing
imports), the proper way is enclose the input string into
some context, parse the whole as a file, and then verify
that the input was parsed as intended.
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Tue, 28 Dec 2021 16:17:34 +0000 (19:17 +0300)]
compress
Aleksey Kladov [Tue, 28 Dec 2021 16:13:30 +0000 (19:13 +0300)]
dead code
Aleksey Kladov [Tue, 28 Dec 2021 15:57:13 +0000 (18:57 +0300)]
introduce hacks module
Aleksey Kladov [Tue, 28 Dec 2021 12:48:07 +0000 (15:48 +0300)]
clarify semantics of doc links
Aleksey Kladov [Mon, 27 Dec 2021 18:41:34 +0000 (21:41 +0300)]
last use of parse api in ssr
Aleksey Kladov [Mon, 27 Dec 2021 18:35:36 +0000 (21:35 +0300)]
dead code
Aleksey Kladov [Mon, 27 Dec 2021 18:34:39 +0000 (21:34 +0300)]
remove fragments from syntax
Aleksey Kladov [Mon, 27 Dec 2021 18:33:24 +0000 (21:33 +0300)]
move the rest of ssr parsing to fragments
Aleksey Kladov [Mon, 27 Dec 2021 18:26:02 +0000 (21:26 +0300)]
drop dead code
Aleksey Kladov [Mon, 27 Dec 2021 18:17:40 +0000 (21:17 +0300)]
add ssr fragment for statements
Aleksey Kladov [Mon, 27 Dec 2021 18:13:55 +0000 (21:13 +0300)]
add ssr fragment for expressions
Aleksey Kladov [Mon, 27 Dec 2021 18:05:26 +0000 (21:05 +0300)]
verify during parse
Aleksey Kladov [Mon, 27 Dec 2021 17:41:17 +0000 (20:41 +0300)]
add test
Aleksey Kladov [Mon, 27 Dec 2021 17:33:33 +0000 (20:33 +0300)]
remove Item::parse
Aleksey Kladov [Mon, 27 Dec 2021 16:44:45 +0000 (19:44 +0300)]
internal: start isolating ssr-related parsing APIs to SSR
Aleksey Kladov [Mon, 27 Dec 2021 16:04:49 +0000 (19:04 +0300)]
add missing test
Aleksey Kladov [Mon, 27 Dec 2021 15:04:13 +0000 (18:04 +0300)]
dead code
Aleksey Kladov [Mon, 27 Dec 2021 14:54:51 +0000 (17:54 +0300)]
add TopEntryPoint
Aleksey Kladov [Mon, 27 Dec 2021 13:28:54 +0000 (16:28 +0300)]
simplify
Aleksey Kladov [Mon, 27 Dec 2021 13:23:07 +0000 (16:23 +0300)]
move path
Aleksey Kladov [Mon, 27 Dec 2021 13:17:29 +0000 (16:17 +0300)]
move expr
Aleksey Kladov [Mon, 27 Dec 2021 13:08:35 +0000 (16:08 +0300)]
move ty
Aleksey Kladov [Mon, 27 Dec 2021 13:06:02 +0000 (16:06 +0300)]
move pat to prefix entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:54:00 +0000 (15:54 +0300)]
move stmt to entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:39:17 +0000 (15:39 +0300)]
internal: move block to prefix entry point
Aleksey Kladov [Mon, 27 Dec 2021 12:22:44 +0000 (15:22 +0300)]
internal: move visibility to a prefix entry point
Aleksey Kladov [Mon, 27 Dec 2021 12:17:48 +0000 (15:17 +0300)]
internal: add prefix entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:03:05 +0000 (15:03 +0300)]
cleanup imports