]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoHandle semantic token deltas
kjeremy [Fri, 24 Jul 2020 21:55:17 +0000 (17:55 -0400)]
Handle semantic token deltas

4 years agoMerge #5634
bors[bot] [Fri, 31 Jul 2020 20:05:10 +0000 (20:05 +0000)]
Merge #5634

5634: Finish rename r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinish rename
Aleksey Kladov [Fri, 31 Jul 2020 19:59:40 +0000 (21:59 +0200)]
Finish rename

4 years agoUnify naming of tuple fields
Aleksey Kladov [Fri, 31 Jul 2020 19:58:36 +0000 (21:58 +0200)]
Unify naming of tuple fields

4 years agoSection headers
Aleksey Kladov [Fri, 31 Jul 2020 19:56:52 +0000 (21:56 +0200)]
Section headers

4 years agoMerge #5633
bors[bot] [Fri, 31 Jul 2020 19:47:23 +0000 (19:47 +0000)]
Merge #5633

5633: Rename DotDotPat -> RestPat r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename DotDotPat -> RestPat
Aleksey Kladov [Fri, 31 Jul 2020 19:45:29 +0000 (21:45 +0200)]
Rename DotDotPat -> RestPat

4 years agoMerge #5632
bors[bot] [Fri, 31 Jul 2020 18:29:21 +0000 (18:29 +0000)]
Merge #5632

5632: Cleanup impl gramamr r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename
Aleksey Kladov [Fri, 31 Jul 2020 18:23:52 +0000 (20:23 +0200)]
Rename

4 years agoSimplify trait gramamr
Aleksey Kladov [Fri, 31 Jul 2020 18:22:20 +0000 (20:22 +0200)]
Simplify trait gramamr

4 years agoMerge #5631
bors[bot] [Fri, 31 Jul 2020 18:12:38 +0000 (18:12 +0000)]
Merge #5631

5631: Finalize pattern grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename BindPat -> IdentPat
Aleksey Kladov [Fri, 31 Jul 2020 18:09:09 +0000 (20:09 +0200)]
Rename BindPat -> IdentPat

4 years agoRename PalceholderPat -> WildcardPat
Aleksey Kladov [Fri, 31 Jul 2020 18:07:21 +0000 (20:07 +0200)]
Rename PalceholderPat -> WildcardPat

4 years agoReorder
Aleksey Kladov [Fri, 31 Jul 2020 18:04:40 +0000 (20:04 +0200)]
Reorder

4 years agoAllign RecordPat with RecordExpr
Aleksey Kladov [Fri, 31 Jul 2020 17:54:16 +0000 (19:54 +0200)]
Allign RecordPat with RecordExpr

4 years agoMinor gramamr reorder
Aleksey Kladov [Fri, 31 Jul 2020 17:49:26 +0000 (19:49 +0200)]
Minor gramamr reorder

4 years agoMerge #5630
bors[bot] [Fri, 31 Jul 2020 16:56:57 +0000 (16:56 +0000)]
Merge #5630

5630: Remove dead code r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRemove dead code
Aleksey Kladov [Fri, 31 Jul 2020 16:53:10 +0000 (18:53 +0200)]
Remove dead code

4 years agoMerge #5629
bors[bot] [Fri, 31 Jul 2020 16:50:43 +0000 (16:50 +0000)]
Merge #5629

5629: Finalize Path grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFix leading colon
Aleksey Kladov [Fri, 31 Jul 2020 16:49:42 +0000 (18:49 +0200)]
Fix leading colon

4 years agoFix const arguments grammar
Aleksey Kladov [Fri, 31 Jul 2020 16:46:07 +0000 (18:46 +0200)]
Fix const arguments grammar

4 years agoFix GenericArgs grammar
Aleksey Kladov [Fri, 31 Jul 2020 16:41:37 +0000 (18:41 +0200)]
Fix GenericArgs grammar

4 years agoMerge #5627
bors[bot] [Fri, 31 Jul 2020 16:34:18 +0000 (16:34 +0000)]
Merge #5627

5627: Specify literal tokens r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agofixup! Finalize Path grammar
Aleksey Kladov [Fri, 31 Jul 2020 16:30:02 +0000 (18:30 +0200)]
fixup! Finalize Path grammar

4 years agoRename TypeArgList -> GenericArgList
Aleksey Kladov [Fri, 31 Jul 2020 16:29:29 +0000 (18:29 +0200)]
Rename TypeArgList -> GenericArgList

4 years agoFinalize Path grammar
Aleksey Kladov [Fri, 31 Jul 2020 16:27:23 +0000 (18:27 +0200)]
Finalize Path grammar

4 years agoSpecify literal tokens
Aleksey Kladov [Fri, 31 Jul 2020 16:16:08 +0000 (18:16 +0200)]
Specify literal tokens

4 years agoMerge #5626
bors[bot] [Fri, 31 Jul 2020 16:12:01 +0000 (16:12 +0000)]
Merge #5626

5626: Minor r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMinor
Aleksey Kladov [Fri, 31 Jul 2020 16:04:57 +0000 (18:04 +0200)]
Minor

4 years agoMerge #5625
bors[bot] [Fri, 31 Jul 2020 15:17:56 +0000 (15:17 +0000)]
Merge #5625

5625: Document crates.io deps policy r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDocument crates.io deps policy
Aleksey Kladov [Fri, 31 Jul 2020 15:17:32 +0000 (17:17 +0200)]
Document crates.io deps policy

4 years agoMerge #5624
bors[bot] [Fri, 31 Jul 2020 15:09:31 +0000 (15:09 +0000)]
Merge #5624

5624: Finalize expressions grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename LambdaExpr -> ClosureExpr
Aleksey Kladov [Fri, 31 Jul 2020 15:08:58 +0000 (17:08 +0200)]
Rename LambdaExpr -> ClosureExpr

4 years agoWork on expressions grammar
Aleksey Kladov [Fri, 31 Jul 2020 14:52:08 +0000 (16:52 +0200)]
Work on expressions grammar

4 years agoMerge #5623
bors[bot] [Fri, 31 Jul 2020 13:54:19 +0000 (13:54 +0000)]
Merge #5623

5623: Item is a Stmt r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoItem is a Stmt
Aleksey Kladov [Fri, 31 Jul 2020 13:46:12 +0000 (15:46 +0200)]
Item is a Stmt

4 years agoHandwrite Stmt
Aleksey Kladov [Fri, 31 Jul 2020 13:40:48 +0000 (15:40 +0200)]
Handwrite Stmt

4 years agoMerge #5622
bors[bot] [Fri, 31 Jul 2020 13:29:34 +0000 (13:29 +0000)]
Merge #5622

5622: Finalize WhereClause gramamr r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMove Stmt Grammar
Aleksey Kladov [Fri, 31 Jul 2020 13:18:14 +0000 (15:18 +0200)]
Move Stmt Grammar

4 years agoFinalize WhereClause gramamr
Aleksey Kladov [Fri, 31 Jul 2020 13:09:20 +0000 (15:09 +0200)]
Finalize WhereClause gramamr

4 years agoMerge #5621
bors[bot] [Fri, 31 Jul 2020 13:01:54 +0000 (13:01 +0000)]
Merge #5621

5621: Finalize TypeBound grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinalize TypeBound grammar
Aleksey Kladov [Fri, 31 Jul 2020 13:01:18 +0000 (15:01 +0200)]
Finalize TypeBound grammar

4 years agoMerge #5620
bors[bot] [Fri, 31 Jul 2020 12:42:31 +0000 (12:42 +0000)]
Merge #5620

5620: Finalize Types grammar r=matklad a=matklad

Note that `for` type is rust-analyzer's own invention.
Both the reference and syn allow `for` only for fnptr types, and we
allow them everywhere. This needs to be checked with respect to type
bounds grammar...

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years ago"Finalize" Types grammar
Aleksey Kladov [Fri, 31 Jul 2020 12:40:28 +0000 (14:40 +0200)]
"Finalize" Types grammar

Note that `for` type is rust-analyzer's own invention.
Both the reference and syn allow `for` only for fnptr types, and we
allow them everywhere. This needs to be checked with respect to type
bounds grammar...

4 years agoMerge #5619
bors[bot] [Fri, 31 Jul 2020 12:13:31 +0000 (12:13 +0000)]
Merge #5619

5619: Reame PlaceholderType -> InferType r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoReame PlaceholderType -> InferType
Aleksey Kladov [Fri, 31 Jul 2020 11:22:47 +0000 (13:22 +0200)]
Reame PlaceholderType -> InferType

4 years agoMerge #5513
bors[bot] [Fri, 31 Jul 2020 11:13:19 +0000 (11:13 +0000)]
Merge #5513

5513: Try figure out correct workspace in vscode multi root workspace r=vsrs a=urbandove

the code to replace the root with the `${workspaceRoot}` arg breaks in multi root workspaces as it needs a qualifier `${workspaceRoot:workspaceName}`

This PR attempts to figure out the root workspace - and if it cant find it falls back to the first workspace

Co-authored-by: Urban Dove <urbandove80@gmail.com>
4 years agoMerge #5618
bors[bot] [Fri, 31 Jul 2020 10:18:53 +0000 (10:18 +0000)]
Merge #5618

5618: Rename TypeRef -> Type r=matklad a=matklad

The TypeRef name comes from IntelliJ days, where you often have both
type *syntax* as well as *semantical* representation of types in
scope. And naming both Type is confusing.

In rust-analyzer however, we use ast types as `ast::Type`, and have
many more semantic counterparts to ast types, so avoiding name clash
here is just confusing.

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename TypeRef -> Type
Aleksey Kladov [Fri, 31 Jul 2020 10:06:38 +0000 (12:06 +0200)]
Rename TypeRef -> Type

The TypeRef name comes from IntelliJ days, where you often have both
type *syntax* as well as *semantical* representation of types in
scope. And naming both Type is confusing.

In rust-analyzer however, we use ast types as `ast::Type`, and have
many more semantic counterparts to ast types, so avoiding name clash
here is just confusing.

4 years agoReorder
Aleksey Kladov [Fri, 31 Jul 2020 10:02:42 +0000 (12:02 +0200)]
Reorder

4 years agoMerge #5596
bors[bot] [Thu, 30 Jul 2020 21:23:41 +0000 (21:23 +0000)]
Merge #5596

5596: Add checkOnSave.noDefaultFeatures and correct, how we handle some cargo flags. r=clemenswasser a=clemenswasser

This PR adds the `rust-analyzer.checkOnSave.noDefaultFeatures` option
and fixes the handling of `cargo.allFeatures`, `cargo.noDefaultFeatures` and `cargo.features`.
Fixes: #5550
Co-authored-by: Clemens Wasser <clemens.wasser@gmail.com>
4 years agoMerge #5615
bors[bot] [Thu, 30 Jul 2020 20:58:20 +0000 (20:58 +0000)]
Merge #5615

5615: simplify r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agosimplify
Aleksey Kladov [Thu, 30 Jul 2020 20:56:11 +0000 (22:56 +0200)]
simplify

4 years agoMerge #5614
bors[bot] [Thu, 30 Jul 2020 20:38:58 +0000 (20:38 +0000)]
Merge #5614

5614: Use split_once polyfill r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse CmdArgs pattern for bench & analysis stats
Aleksey Kladov [Thu, 30 Jul 2020 20:38:24 +0000 (22:38 +0200)]
Use CmdArgs pattern for bench & analysis stats

4 years agoUse split_once polyfill
Aleksey Kladov [Thu, 30 Jul 2020 20:19:58 +0000 (22:19 +0200)]
Use split_once polyfill

4 years agoMerge #5610
bors[bot] [Thu, 30 Jul 2020 20:10:07 +0000 (20:10 +0000)]
Merge #5610

5610: Bump deps r=flodiebold a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoBump chalk
Laurențiu Nicola [Thu, 30 Jul 2020 17:37:28 +0000 (20:37 +0300)]
Bump chalk

4 years agoMerge #5613
bors[bot] [Thu, 30 Jul 2020 19:03:25 +0000 (19:03 +0000)]
Merge #5613

5613: Use ty to access most TypeRefs r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse ty to access most TypeRefs
Aleksey Kladov [Thu, 30 Jul 2020 19:02:55 +0000 (21:02 +0200)]
Use ty to access most TypeRefs

4 years agoMerge #5612
bors[bot] [Thu, 30 Jul 2020 18:53:36 +0000 (18:53 +0000)]
Merge #5612

5612: Remove TypeAscriptionOwner r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRemove TypeAscriptionOwner
Aleksey Kladov [Thu, 30 Jul 2020 18:51:43 +0000 (20:51 +0200)]
Remove TypeAscriptionOwner

4 years agoMerge #5611
bors[bot] [Thu, 30 Jul 2020 18:39:09 +0000 (18:39 +0000)]
Merge #5611

5611: Finalize attribute grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agosimplify
Aleksey Kladov [Thu, 30 Jul 2020 18:27:39 +0000 (20:27 +0200)]
simplify

4 years agoFinalize attribute grammar
Aleksey Kladov [Thu, 30 Jul 2020 18:16:04 +0000 (20:16 +0200)]
Finalize attribute grammar

4 years agoBump perf-event and rustc_lexer
Laurențiu Nicola [Thu, 30 Jul 2020 17:21:28 +0000 (20:21 +0300)]
Bump perf-event and rustc_lexer

4 years agoFix typo
Laurențiu Nicola [Thu, 30 Jul 2020 17:19:37 +0000 (20:19 +0300)]
Fix typo

4 years agoMerge #5609
bors[bot] [Thu, 30 Jul 2020 17:11:26 +0000 (17:11 +0000)]
Merge #5609

5609: Attrs & Vis r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDead code
Aleksey Kladov [Thu, 30 Jul 2020 17:10:46 +0000 (19:10 +0200)]
Dead code

4 years agoMinor
Aleksey Kladov [Thu, 30 Jul 2020 17:10:22 +0000 (19:10 +0200)]
Minor

4 years agoFinalize visibility grammar
Aleksey Kladov [Thu, 30 Jul 2020 16:55:49 +0000 (18:55 +0200)]
Finalize visibility grammar

4 years agoMerge #5608
bors[bot] [Thu, 30 Jul 2020 16:52:59 +0000 (16:52 +0000)]
Merge #5608

5608: Introduce GenericParam r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoIntroduce GenericParam
Aleksey Kladov [Thu, 30 Jul 2020 16:52:02 +0000 (18:52 +0200)]
Introduce GenericParam

4 years agoMerge #5607
bors[bot] [Thu, 30 Jul 2020 16:39:40 +0000 (16:39 +0000)]
Merge #5607

5607: Finaize item grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinaize item grammar
Aleksey Kladov [Thu, 30 Jul 2020 16:37:46 +0000 (18:37 +0200)]
Finaize item grammar

4 years agoMerge #5606
bors[bot] [Thu, 30 Jul 2020 16:29:24 +0000 (16:29 +0000)]
Merge #5606

5606: Finalize impl Grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinalize impl Grammar
Aleksey Kladov [Thu, 30 Jul 2020 16:28:28 +0000 (18:28 +0200)]
Finalize impl Grammar

4 years agoFinalize Trait grammar
Aleksey Kladov [Thu, 30 Jul 2020 16:17:28 +0000 (18:17 +0200)]
Finalize Trait grammar

4 years agoFix param gramamr
Aleksey Kladov [Thu, 30 Jul 2020 16:15:08 +0000 (18:15 +0200)]
Fix param gramamr

4 years agoMerge #5594 #5604 #5605
bors[bot] [Thu, 30 Jul 2020 16:13:58 +0000 (16:13 +0000)]
Merge #5594 #5604 #5605

5594: Update sysroot crates r=jonas-schievink a=lnicola

5604: Rename EnumVariant -> Variant r=matklad a=matklad

bors r+
🤖

5605: fmt r=matklad a=matklad

bors r+
🤖

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agofmt
Aleksey Kladov [Thu, 30 Jul 2020 16:10:07 +0000 (18:10 +0200)]
fmt

4 years agoMerge #5603
bors[bot] [Thu, 30 Jul 2020 16:07:32 +0000 (16:07 +0000)]
Merge #5603

5603: Rename EnumDef -> Enum r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinalize const&static grammar
Aleksey Kladov [Thu, 30 Jul 2020 16:02:20 +0000 (18:02 +0200)]
Finalize const&static grammar

4 years agoFinalize Enum grammar
Aleksey Kladov [Thu, 30 Jul 2020 15:57:58 +0000 (17:57 +0200)]
Finalize Enum grammar

4 years agoRename EnumVariant -> Variant
Aleksey Kladov [Thu, 30 Jul 2020 15:56:53 +0000 (17:56 +0200)]
Rename EnumVariant -> Variant

4 years agoRename EnumDef -> Enum
Aleksey Kladov [Thu, 30 Jul 2020 15:52:53 +0000 (17:52 +0200)]
Rename EnumDef -> Enum

4 years agoMerge #5602
bors[bot] [Thu, 30 Jul 2020 15:51:06 +0000 (15:51 +0000)]
Merge #5602

5602: Rename StructDef -> Struct r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename StructDef -> Struct
Aleksey Kladov [Thu, 30 Jul 2020 15:50:40 +0000 (17:50 +0200)]
Rename StructDef -> Struct

4 years agoMerge #5601
bors[bot] [Thu, 30 Jul 2020 15:39:56 +0000 (15:39 +0000)]
Merge #5601

5601: Finalize union grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinalize union grammar
Aleksey Kladov [Thu, 30 Jul 2020 15:36:46 +0000 (17:36 +0200)]
Finalize union grammar

4 years agoMerge #5600
bors[bot] [Thu, 30 Jul 2020 15:29:05 +0000 (15:29 +0000)]
Merge #5600

5600: Finalize structs grammar r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFinalize structs grammar
Aleksey Kladov [Thu, 30 Jul 2020 15:24:07 +0000 (17:24 +0200)]
Finalize structs grammar

4 years agoSimplify
Aleksey Kladov [Thu, 30 Jul 2020 15:19:51 +0000 (17:19 +0200)]
Simplify

4 years agoMerge #5598
bors[bot] [Thu, 30 Jul 2020 15:11:20 +0000 (15:11 +0000)]
Merge #5598

5598: Simplify codegen r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSimplify codegen
Aleksey Kladov [Thu, 30 Jul 2020 15:10:44 +0000 (17:10 +0200)]
Simplify codegen

4 years agoMerge #5597
bors[bot] [Thu, 30 Jul 2020 14:49:39 +0000 (14:49 +0000)]
Merge #5597

5597: Rename FieldDef -> Field r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename FieldDef -> Field
Aleksey Kladov [Thu, 30 Jul 2020 14:49:13 +0000 (16:49 +0200)]
Rename FieldDef -> Field

4 years agora_project_model: Fix configuration of features
Clemens Wasser [Thu, 30 Jul 2020 14:23:07 +0000 (16:23 +0200)]
ra_project_model: Fix configuration of features

This commit fixes the handling of user-defined configuration
of some cargo options. Previously you could either specify
`--all-features`, `--no-default-features` or `--features`.
Now you can specify either `--all-features` or `--no-default-features`
and `--features`. This commit also corrects the `--features`
command-line argument creation inside of `load_extern_resources`.

4 years agoMerge #5595
bors[bot] [Thu, 30 Jul 2020 14:24:20 +0000 (14:24 +0000)]
Merge #5595

5595: Rename RecordLit -> RecordExpr r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename RecordLit -> RecordExpr
Aleksey Kladov [Thu, 30 Jul 2020 14:21:30 +0000 (16:21 +0200)]
Rename RecordLit -> RecordExpr