]>
git.lizzy.rs Git - rust.git/log
Anton Firszov [Thu, 14 Oct 2021 18:38:06 +0000 (20:38 +0200)]
apply formatting recommendations
Anton Firszov [Thu, 14 Oct 2021 18:35:59 +0000 (20:35 +0200)]
update generated.rs
Anton Firszov [Thu, 14 Oct 2021 18:31:33 +0000 (20:31 +0200)]
make it work from macro
Anton Firszov [Thu, 14 Oct 2021 17:31:27 +0000 (19:31 +0200)]
apply necessary test changes
Anton Firszov [Thu, 14 Oct 2021 16:15:00 +0000 (18:15 +0200)]
Narrow add_missing_match_arms assist range
bors[bot] [Tue, 12 Oct 2021 17:32:58 +0000 (17:32 +0000)]
Merge #10529
10529: Generate `PartialOrd` implementations r=Veykril a=yoshuawuyts
_co-authored with `@rylev_`
This closes #5946 (which should've been closed already, lol). This PR makes it so we generate `PartialOrd` code implementations where possible. This is the last of Rust's built-in traits that was missing codegen.
After this has been merged we should look at moving the tests to a better spot, and maybe cleaning up the implementation somewhat (it's rather copy-pasty at the moment).
Either way, this finishes up the functionality. Thanks heaps!
Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
bors[bot] [Tue, 12 Oct 2021 17:24:50 +0000 (17:24 +0000)]
Merge #10532
10532: Rename `descend_into_macros` Function per FIXME comment r=Veykril a=mirkoRainer
This renames `descend_into_macros` to `descend_into_macros_single` and `descend_into_macros_many` into `descend_into_macros`.
However, this does not touch a function in `SemanticsImpl` of same name.
I was prompted to do this per a FIXME comment, which is removed in this PR.
Co-authored-by: Mirko Rainer <mirkorainer@outlook.com>
Mirko Rainer [Tue, 12 Oct 2021 15:52:31 +0000 (11:52 -0400)]
Saw a FIXME comment and decided to fix it.
This renames `descend_into_macros` to `descend_into_macros_single` and `descend_into_macros_many` into `descend_into_macros`.
However, this does not touch a function in `SemanticsImpl` of same name.
Yoshua Wuyts [Tue, 12 Oct 2021 15:44:57 +0000 (17:44 +0200)]
Simplify generated PartialOrd code
Yoshua Wuyts [Tue, 12 Oct 2021 13:07:57 +0000 (15:07 +0200)]
impl PartialOrd codegen for tuple enum
Yoshua Wuyts [Tue, 12 Oct 2021 12:56:19 +0000 (14:56 +0200)]
impl PartialOrd codegen for record enum
Yoshua Wuyts [Tue, 12 Oct 2021 12:36:50 +0000 (14:36 +0200)]
impl PartialOrd codegen for C-style enums
Yoshua Wuyts [Tue, 12 Oct 2021 12:24:42 +0000 (14:24 +0200)]
impl PartialOrd codegen for struct records
Yoshua Wuyts [Tue, 12 Oct 2021 12:18:08 +0000 (14:18 +0200)]
impl PartialOrd codegen for tuple records
Yoshua Wuyts [Mon, 16 Aug 2021 08:07:19 +0000 (10:07 +0200)]
init partialord
bors[bot] [Tue, 12 Oct 2021 13:26:38 +0000 (13:26 +0000)]
Merge #10530
10530: Add link to ECS acronym to clarify. r=lnicola a=mirkoRainer
I had to ask a clarifying question about this acronym. If I had the question, it's likely that someone else will also have the question so I wanted to clarify.
Co-authored-by: Mirko Rainer <mirkorainer@outlook.com>
Mirko Rainer [Tue, 12 Oct 2021 13:24:00 +0000 (09:24 -0400)]
Add link to ECS acronym to clarify.
bors[bot] [Tue, 12 Oct 2021 12:42:36 +0000 (12:42 +0000)]
Merge #10528
10528: internal: Make selections in assists with trailing/leading whitespace more forgiving r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 12 Oct 2021 12:41:59 +0000 (14:41 +0200)]
Make selections in assists with trailing/leading whitespace more forgiving
bors[bot] [Tue, 12 Oct 2021 09:49:02 +0000 (09:49 +0000)]
Merge #10526
10526: internal: Improve user snippet import performance r=Veykril a=Veykril
Re-using the `GreenNode` should be a good chunk faster than reparsing the paths on each completion
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 12 Oct 2021 09:47:22 +0000 (11:47 +0200)]
Improve user snippet import performance
bors[bot] [Tue, 12 Oct 2021 07:56:00 +0000 (07:56 +0000)]
Merge #10525
10525: Regenerate lints and features r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 12 Oct 2021 07:47:21 +0000 (09:47 +0200)]
Update tidy ignore path
Lukas Wirth [Tue, 12 Oct 2021 07:37:16 +0000 (09:37 +0200)]
Remove stale module
Lukas Wirth [Tue, 12 Oct 2021 07:27:17 +0000 (09:27 +0200)]
Regenerate lints
Lukas Wirth [Tue, 12 Oct 2021 06:59:39 +0000 (08:59 +0200)]
Move lint source generator
bors[bot] [Mon, 11 Oct 2021 19:58:27 +0000 (19:58 +0000)]
Merge #10522
10522: fix: make signature info response conform to spec r=lnicola a=muscar
This addreses https://github.com/rust-analyzer/rust-analyzer/issues/10464.
This patch picks up `lsp-types` 0.90.1, which serialises the `SignatureInformation` and `ParameterInformation` with the right casing. It also adds `activeSignature` field as part of the top-level signature response. It keeps `activeParameter` at the top-level for backwards compatibility.
Co-authored-by: Alex Muscar <alex@muscar.eu>
bors[bot] [Mon, 11 Oct 2021 19:51:35 +0000 (19:51 +0000)]
Merge #10523
10523: minor: Simplify and add a few doc comments r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Mon, 11 Oct 2021 19:49:39 +0000 (21:49 +0200)]
Simplify
Alex Muscar [Mon, 11 Oct 2021 19:42:16 +0000 (20:42 +0100)]
fix: make signature info response conform to spec
This addreses
https://github.com/rust-analyzer/rust-analyzer/issues/10464.
This patch picks up `lsp-types` 0.90.1, which serialises the
`SignatureInformation` and `ParameterInformation` with the right casing.
It also adds `activeSignature` field as part of the top-level signature
response. It keeps `activeParameter` at the top-level for backwards
compatibility.
bors[bot] [Mon, 11 Oct 2021 12:51:53 +0000 (12:51 +0000)]
Merge #10519
10519: Add toolInfo in MetaData vertex in LSIF dumps r=lnicola a=sandhose
This helps with uploading LSIF dumps to Sourcegraph without having to specify an indexer name.
Fixes #10518
Co-authored-by: Quentin Gliech <quentingliech@gmail.com>
Quentin Gliech [Mon, 11 Oct 2021 12:45:58 +0000 (14:45 +0200)]
Add toolInfo in MetaData vertex in LSIF dumps
This helps with uploading LSIF dumps to Sourcegraph without having to
specify an indexer name.
bors[bot] [Sun, 10 Oct 2021 18:09:13 +0000 (18:09 +0000)]
Merge #10514
10514: internal: clean up code duplication r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 18:07:43 +0000 (21:07 +0300)]
internal: clean up code duplication
bors[bot] [Sun, 10 Oct 2021 16:13:59 +0000 (16:13 +0000)]
Merge #10513
10513: minor: align code to code style r=matklad a=matklad
(mutually recursive) data type definitions shall be at the start of the
file.
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 16:13:05 +0000 (19:13 +0300)]
minor: align code to code style
(mutually recursive) data type definitions shall be at the start of the
file.
bors[bot] [Sun, 10 Oct 2021 13:52:45 +0000 (13:52 +0000)]
Merge #10512
10512: internal: add integrated test for token censoring r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 13:50:28 +0000 (16:50 +0300)]
internal: add integrated test for token censoring
bors[bot] [Sun, 10 Oct 2021 13:25:36 +0000 (13:25 +0000)]
Merge #10511
10511: minor: add a test for derive macros in core r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 13:13:45 +0000 (16:13 +0300)]
minor: add a test for derive macros in core
bors[bot] [Sun, 10 Oct 2021 13:10:59 +0000 (13:10 +0000)]
Merge #10510
10510: internal: move derived tests to the unified macro infra r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 13:08:01 +0000 (16:08 +0300)]
internal: move derived tests to the unified macro infra
bors[bot] [Sun, 10 Oct 2021 12:44:39 +0000 (12:44 +0000)]
Merge #10509
10509: internal: consistent module naming r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 12:44:03 +0000 (15:44 +0300)]
internal: consistent module naming
bors[bot] [Sun, 10 Oct 2021 12:32:03 +0000 (12:32 +0000)]
Merge #10508
10508: internal: move some tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 12:30:54 +0000 (15:30 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 12:28:24 +0000 (15:28 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 12:17:53 +0000 (15:17 +0300)]
internal: move builtin macro tests to macro expansion suite
Aleksey Kladov [Sun, 10 Oct 2021 12:11:33 +0000 (15:11 +0300)]
drop obsolete tests
Aleksey Kladov [Sun, 10 Oct 2021 12:06:41 +0000 (15:06 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 11:58:25 +0000 (14:58 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 11:40:13 +0000 (14:40 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 11:28:04 +0000 (14:28 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 11:26:47 +0000 (14:26 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 11:23:52 +0000 (14:23 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 11:21:47 +0000 (14:21 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 11:08:49 +0000 (14:08 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 10:56:41 +0000 (13:56 +0300)]
add directory for regression tests
Aleksey Kladov [Sun, 10 Oct 2021 10:54:44 +0000 (13:54 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 10:26:07 +0000 (13:26 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 10:24:48 +0000 (13:24 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 10:21:42 +0000 (13:21 +0300)]
internal: move test
Aleksey Kladov [Sun, 10 Oct 2021 09:57:18 +0000 (12:57 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 09:55:31 +0000 (12:55 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 09:52:28 +0000 (12:52 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 09:45:17 +0000 (12:45 +0300)]
internal: move tests
Aleksey Kladov [Sun, 10 Oct 2021 09:39:58 +0000 (12:39 +0300)]
internal: move tests
bors[bot] [Sun, 10 Oct 2021 08:46:29 +0000 (08:46 +0000)]
Merge #10507
10507: internal: move tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 08:45:05 +0000 (11:45 +0300)]
internal: consistently use `ok!();` for succesfull macro expansion
Aleksey Kladov [Sun, 10 Oct 2021 08:44:46 +0000 (11:44 +0300)]
move some tests
Aleksey Kladov [Sun, 10 Oct 2021 08:39:08 +0000 (11:39 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 08:29:26 +0000 (11:29 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 08:26:18 +0000 (11:26 +0300)]
move test
Aleksey Kladov [Sun, 10 Oct 2021 08:22:12 +0000 (11:22 +0300)]
test formatting
Aleksey Kladov [Sun, 10 Oct 2021 08:16:25 +0000 (11:16 +0300)]
test formatting
Aleksey Kladov [Sun, 10 Oct 2021 08:15:42 +0000 (11:15 +0300)]
move tests
Aleksey Kladov [Sun, 10 Oct 2021 08:11:50 +0000 (11:11 +0300)]
internal: move tests
bors[bot] [Sun, 10 Oct 2021 08:09:50 +0000 (08:09 +0000)]
Merge #10501
10501: internal: move some mbe tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 10 Oct 2021 08:09:16 +0000 (11:09 +0300)]
dead code
Aleksey Kladov [Sat, 9 Oct 2021 20:33:43 +0000 (23:33 +0300)]
internal: move some mbe tests
Aleksey Kladov [Sat, 9 Oct 2021 19:23:38 +0000 (22:23 +0300)]
move tests
Aleksey Kladov [Sat, 9 Oct 2021 19:19:42 +0000 (22:19 +0300)]
fix tests
bors[bot] [Sun, 10 Oct 2021 07:56:47 +0000 (07:56 +0000)]
Merge #10506
10506: Add comment r=lnicola a=k-nasa
## Why
This code looks logic-bug ...
https://github.com/rust-analyzer/rust-analyzer/blob/
ce86534e1cb22685e83c3f91ea89025edbfcbc98 /crates/syntax/src/syntax_node.rs#L50
However, this code has been intentionally disabled.
It's a good idea to write a comment
ref: https://github.com/rust-analyzer/rust-analyzer/pull/10357
## What
- I added comment
Co-authored-by: k-nasa <htilcs1115@gmail.com>
k-nasa [Sun, 10 Oct 2021 07:53:37 +0000 (16:53 +0900)]
Add comment
bors[bot] [Sun, 10 Oct 2021 07:17:52 +0000 (07:17 +0000)]
Merge #10504
10504: Remove needless clone r=lnicola a=k-nasa
## Why
Delete clones for efficiency
## What
- I erased unnecessary clones
Co-authored-by: k-nasa <htilcs1115@gmail.com>
k-nasa [Sun, 10 Oct 2021 04:16:34 +0000 (13:16 +0900)]
remove comment
k-nasa [Sun, 10 Oct 2021 01:51:45 +0000 (10:51 +0900)]
Revert "update comment"
This reverts commit
820393f72d68c6bf1df125057296402ba83ca982 .
k-nasa [Sun, 10 Oct 2021 01:50:51 +0000 (10:50 +0900)]
Remove neesless clone
k-nasa [Sun, 10 Oct 2021 01:16:32 +0000 (10:16 +0900)]
update comment
k-nasa [Sun, 10 Oct 2021 01:10:52 +0000 (10:10 +0900)]
Add code comment
bors[bot] [Sat, 9 Oct 2021 19:46:47 +0000 (19:46 +0000)]
Merge #10499
10499: feat: be more precise in mismatch arg counts highlighting r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 9 Oct 2021 19:45:54 +0000 (22:45 +0300)]
feat: be more precise in mismatch arg counts highlighting
bors[bot] [Sat, 9 Oct 2021 16:11:30 +0000 (16:11 +0000)]
Merge #10497
10497: internal: move tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 9 Oct 2021 15:55:50 +0000 (18:55 +0300)]
move test
Aleksey Kladov [Sat, 9 Oct 2021 15:54:15 +0000 (18:54 +0300)]
internal: move tests
Aleksey Kladov [Sat, 9 Oct 2021 15:51:26 +0000 (18:51 +0300)]
internal: move test
Aleksey Kladov [Sat, 9 Oct 2021 15:49:14 +0000 (18:49 +0300)]
internal: move test
Aleksey Kladov [Sat, 9 Oct 2021 15:47:04 +0000 (18:47 +0300)]
internal: drop duplicated test
Aleksey Kladov [Sat, 9 Oct 2021 15:46:16 +0000 (18:46 +0300)]
internal: move test
Aleksey Kladov [Sat, 9 Oct 2021 15:43:15 +0000 (18:43 +0300)]
internal: move tests