]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMerge #4083
bors[bot] [Wed, 13 May 2020 09:09:46 +0000 (09:09 +0000)]
Merge #4083

4083: Smol documentation for ast nodes r=matklad a=Veetaha

There is a tremendous amount of TODOs to clarify the topics I am not certain about.
Please @matklad, @edwin0cheng review carefully, I even left some mentions of your names in todos to put your attention where you most probably can give comments.

In order to simplify the review, I separated the codegen (i.e. changes in `ast/generated/nodes.rs`) from `ast_src` changes (they in fact just duplicate one another) into two commits.

Also, I had to hack a little bit to let the docs be generated as doc comments and not as doc attributes because it's easier to read them this way and IIRC we don't support hints for `#[doc = ""]` attributes for now...

Closes #3682

Co-authored-by: veetaha <veetaha2@gmail.com>
4 years agoMerge #4441
bors[bot] [Wed, 13 May 2020 05:20:02 +0000 (05:20 +0000)]
Merge #4441

4441: fix typo unimplementated -> unimplemented r=edwin0cheng a=tspiteri

Pretty harmless typo, but it does get exposed in lsp-rust-analyzer-expand-macro.

Co-authored-by: Trevor Spiteri <tspiteri@ieee.org>
4 years agofix typo unimplementated -> unimplemented
Trevor Spiteri [Tue, 12 May 2020 21:51:38 +0000 (23:51 +0200)]
fix typo unimplementated -> unimplemented

Pretty harmless typo, but it does get exposed in
lsp-rust-analyzer-expand-macro.

4 years agoMerge #4439
bors[bot] [Tue, 12 May 2020 21:01:09 +0000 (21:01 +0000)]
Merge #4439

4439: Update crates r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoConvert TODO about ParamList used in closures to a FIXME
veetaha [Tue, 12 May 2020 20:58:51 +0000 (23:58 +0300)]
Convert TODO about ParamList used in closures to a FIXME

cc @matklad (you didn't comment on this one)

4 years agoRemove an equals sign from `ConstArg` (this probably pertains only to ConstParam)
veetaha [Tue, 12 May 2020 20:57:04 +0000 (23:57 +0300)]
Remove an equals sign from `ConstArg` (this probably pertains only to ConstParam)

(As per matklad)

4 years agoRemove a comment on NameRefToken as per matklad
veetaha [Tue, 12 May 2020 20:55:46 +0000 (23:55 +0300)]
Remove a comment on NameRefToken as per matklad

4 years agoConvert TODO to a FIXME as per matklad
veetaha [Tue, 12 May 2020 20:54:40 +0000 (23:54 +0300)]
Convert TODO to a FIXME as per matklad

4 years agoConvert TODO to a Note(matklad)
veetaha [Tue, 12 May 2020 20:50:52 +0000 (23:50 +0300)]
Convert TODO to a Note(matklad)

4 years agoUpdate crates
kjeremy [Tue, 12 May 2020 20:49:42 +0000 (16:49 -0400)]
Update crates

4 years agoConvert to TODOs to FIXMEs as per matklad
veetaha [Tue, 12 May 2020 20:47:45 +0000 (23:47 +0300)]
Convert to TODOs to FIXMEs as per matklad

4 years agoRevert "Remove MacroStmts as per edwin0cheng" (cc @edwin0cheng) and add a fixme to...
veetaha [Tue, 12 May 2020 20:33:56 +0000 (23:33 +0300)]
Revert "Remove MacroStmts as per edwin0cheng" (cc @edwin0cheng) and add a fixme to document it.

This reverts commit 7a49165f5d5c8186edd04f874eae8a98e39d3df6.
MacroStmts ast node is not used by itself, but it pertains
to SyntaxNodeKind MACRO_STMTS that is used by ra_paser, so
even tho the node itself is not used, it is better to keep it
with a FIXME to actually add a doc comment when it becomes useful.

4 years agoAdd a doc comment on the difference between Name and NameRef ast nodes
veetaha [Tue, 12 May 2020 20:31:37 +0000 (23:31 +0300)]
Add a doc comment on the difference between Name and NameRef ast nodes

4 years agoMerge #4436
bors[bot] [Tue, 12 May 2020 15:36:39 +0000 (15:36 +0000)]
Merge #4436

4436: Use .rust suffix on scopes r=matklad a=georgewfraser

This PR should have no effect on people using any of the default themes, but it is possible there are people with custom themes that rely on the .rust suffix on textmate scopes, which I neglected to use consistently in #4397.

Co-authored-by: George Fraser <george@fivetran.com>
4 years agoUse .rust suffix on scopes
George Fraser [Tue, 12 May 2020 15:31:43 +0000 (08:31 -0700)]
Use .rust suffix on scopes

4 years agoMerge pull request #4427 from matklad/old
Aleksey Kladov [Mon, 11 May 2020 19:34:27 +0000 (21:34 +0200)]
Merge pull request #4427 from matklad/old

Use older ubuntu for releases

4 years agoUse older ubuntu for releases
Aleksey Kladov [Mon, 11 May 2020 19:32:48 +0000 (21:32 +0200)]
Use older ubuntu for releases

4 years agoMerge #4423
bors[bot] [Mon, 11 May 2020 18:15:31 +0000 (18:15 +0000)]
Merge #4423

4423: add tests module snippet r=bnjjj a=bnjjj

Request from a friend coming from intellij Rust

Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge #4358
bors[bot] [Mon, 11 May 2020 18:08:26 +0000 (18:08 +0000)]
Merge #4358

4358: add if let and while let postfix for Option and Result #4348 r=matklad a=bnjjj

close #4348

I also added `while let` for iterator or stream it could be useful

![iflet](https://user-images.githubusercontent.com/5719034/81278000-676c6b80-9055-11ea-87ad-6b8476dd983f.gif)

Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoadd tests module snippet
Benjamin Coenen [Mon, 11 May 2020 17:59:58 +0000 (19:59 +0200)]
add tests module snippet

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge #4397
bors[bot] [Mon, 11 May 2020 17:33:38 +0000 (17:33 +0000)]
Merge #4397

4397: Textmate cooperation r=matklad a=georgewfraser

This PR tweaks the fallback TextMate scopes to make them more consistent with the existing grammar and other languages, and edits the builtin TextMate grammar to align with semantic coloring. Before is on the left, after is on the right:

<img width="855" alt="Screen Shot 2020-05-10 at 1 45 51 PM" src="https://user-images.githubusercontent.com/1369240/81512320-a8be7e80-92d4-11ea-8940-2c03f6769015.png">

**Use keyword.other for regular keywords instead of keyword**. This is a really peculiar quirk of TextMate conventions, but virtually *all* TextMate grammars use `keyword.other` (colored blue in VSCode Dark+) for regular keywords and `keyword.control` (colored purple in VSCode Dark+) for control keywords. The TextMate scope `keyword` is colored like control keywords, not regular keywords. It may seem strange that the `keyword` scope is not the right fallback for the `keyword` semantic token, but TextMate has a long and weird history. Note how keywords change from purple back to blue (what they were before semantic coloring was added):

**(1) Use punctuation.section.embedded for format specifiers**. This aligns with how Typescript colors formatting directives:

<img width="238" alt="Screen Shot 2020-05-09 at 10 54 01 AM" src="https://user-images.githubusercontent.com/1369240/81481258-93b5f280-91e3-11ea-99c2-c6d258c5bcad.png">

**(2) Consistently use `entity.name.type.*` scopes for type names**. Avoid using `entity.name.*` which gets colored like a keyword.

**(3) Use Property instead of Member for fields**. Property and Member are very similar, but if you look at the TextMate fallback scopes, it's clear that Member is intended for function-like-things (methods?) and Property is intended for variable-like-things.

**(4) Color `for` as a regular keyword when it's part of `impl Trait for Struct`**.

**(5) Use `variable.other.constant` for constants instead of `entity.name.constant`**. In the latest VSCode insiders, variable.other.constant has a subtly different color that differentiates constants from ordinary variables. It looks close to the green of types but it's not the same---it's a new color recently added to take advantage of semantic coloring.

I also made some minor changes that make the TextMate scopes better match the semantic scopes. The effect of this for the user is you observe less of a change when semantic coloring "activates". You can see the changes I made relative to the built-in TextMate grammar here:

https://github.com/rust-analyzer/rust-analyzer/pull/4397/files/a91d15c80c337dd1afb0eddd5eb048010d098ac7..97428b6d52d25f810dbd7d7a8d787740c58bfbd2#diff-6966c729b862f79f79bf7258eb3e0885

Co-authored-by: George Fraser <george@fivetran.com>
4 years agoMerge #4403
bors[bot] [Mon, 11 May 2020 17:25:34 +0000 (17:25 +0000)]
Merge #4403

4403: Check client capabilities before sending progress notifications r=kjeremy a=kjeremy

Fixes #4384

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoCheck client capabilities before sending progress notifications
Jeremy Kolb [Sat, 9 May 2020 21:15:22 +0000 (17:15 -0400)]
Check client capabilities before sending progress notifications

Fixes #4384

4 years agoMerge #4424
bors[bot] [Mon, 11 May 2020 17:16:26 +0000 (17:16 +0000)]
Merge #4424

4424: Use RA_LOG instead of RUST_LOG for logging r=matklad a=matklad

RUST_LOG might be set up for debugging the user's problem, slowing
down rust-analyzer considerably. That's the same reason why rustc uses
RUSTC_LOG.

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse RA_LOG instead of RUST_LOG for logging
Aleksey Kladov [Mon, 11 May 2020 17:14:12 +0000 (19:14 +0200)]
Use RA_LOG instead of RUST_LOG for logging

RUST_LOG might be set up for debugging the user's problem, slowing
down rust-analyzer considerably. That's the same reason why rustc uses
RUSTC_LOG.

4 years agoadd tests module snippet
Benjamin Coenen [Mon, 11 May 2020 16:11:23 +0000 (18:11 +0200)]
add tests module snippet

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge #4421
bors[bot] [Mon, 11 May 2020 12:21:08 +0000 (12:21 +0000)]
Merge #4421

4421: Find references to a function outside module r=flodiebold a=montekki

Fixes #4188

Yet again, it looks like although the code in
https://github.com/rust-analyzer/rust-analyzer/blob/da1f316b0246ce41d7cb8560181e294089f06ef3/crates/ra_ide_db/src/search.rs#L128-L132

may be wrong, it is not hit since the `vis` is `None` at this point. The fix is similar to the #4237 case: just add another special case to `Definition::visibility()`.

Co-authored-by: Fedor Sakharov <fedor.sakharov@gmail.com>
4 years agoNew definition_visibility method
Fedor Sakharov [Mon, 11 May 2020 11:28:14 +0000 (14:28 +0300)]
New definition_visibility method

4 years agoAlso for consts and type aliases
Fedor Sakharov [Mon, 11 May 2020 10:52:20 +0000 (13:52 +0300)]
Also for consts and type aliases

4 years agoFind references to a function outside module
Fedor Sakharov [Mon, 11 May 2020 09:25:18 +0000 (12:25 +0300)]
Find references to a function outside module

4 years agoMerge #4419
bors[bot] [Sun, 10 May 2020 23:09:27 +0000 (23:09 +0000)]
Merge #4419

4419: :arrow_up: ra_vfs r=matklad a=matklad

Fix a critical bug where \r\n line endings would accidentally sneak in
after in-memory overlay removal.

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years ago:arrow_up: ra_vfs
Aleksey Kladov [Sun, 10 May 2020 22:52:11 +0000 (00:52 +0200)]
:arrow_up: ra_vfs

Fix a critical bug where \r\n line endings would accidentally sneak in
after in-memory overlay removal.

4 years agoPut sigil back to keyword.operator
George Fraser [Sun, 10 May 2020 22:36:47 +0000 (15:36 -0700)]
Put sigil back to keyword.operator

4 years agoChange lifetimes back to keyword-ish, tweak builtins for consistency between TextMate...
George Fraser [Sun, 10 May 2020 20:32:42 +0000 (13:32 -0700)]
Change lifetimes back to keyword-ish, tweak builtins for consistency between TextMate and semantic

4 years agoColor `for` as a regular keyword when it's part of impl _ for _
George Fraser [Sun, 10 May 2020 18:26:19 +0000 (11:26 -0700)]
Color `for` as a regular keyword when it's part of impl _ for _

4 years agoColor `in` as a control keyword
George Fraser [Sun, 10 May 2020 18:08:32 +0000 (11:08 -0700)]
Color `in` as a control keyword

4 years agoColor `as` as a keyword
George Fraser [Sun, 10 May 2020 18:01:56 +0000 (11:01 -0700)]
Color `as` as a keyword

4 years agoNo longer true
George Fraser [Sat, 9 May 2020 20:00:06 +0000 (13:00 -0700)]
No longer true

4 years agoColor core types as types, not keywords
George Fraser [Sat, 9 May 2020 19:57:32 +0000 (12:57 -0700)]
Color core types as types, not keywords

4 years agoColor sigil like keyword
George Fraser [Sat, 9 May 2020 19:34:28 +0000 (12:34 -0700)]
Color sigil like keyword

4 years agoColor lifetimes like types
George Fraser [Sat, 9 May 2020 19:32:08 +0000 (12:32 -0700)]
Color lifetimes like types

4 years agoImport built-in textmate grammar, with no changes
George Fraser [Sat, 9 May 2020 19:24:59 +0000 (12:24 -0700)]
Import built-in textmate grammar, with no changes

4 years agoUse Property instead of Member for fields
George Fraser [Sat, 9 May 2020 17:24:57 +0000 (10:24 -0700)]
Use Property instead of Member for fields

4 years agoTweak the textmate fallback scopes to be consistent with builtin TextMate grammar...
George Fraser [Sat, 9 May 2020 17:23:32 +0000 (10:23 -0700)]
Tweak the textmate fallback scopes to be consistent with builtin TextMate grammar and other languages

4 years agoResolve TODO about macro 2.0 def
veetaha [Sun, 10 May 2020 19:08:06 +0000 (22:08 +0300)]
Resolve TODO about macro 2.0 def

4 years agoFix typo
veetaha [Sun, 10 May 2020 18:59:15 +0000 (21:59 +0300)]
Fix typo

4 years agoCarify on a semicolon in macro call
veetaha [Sun, 10 May 2020 18:57:49 +0000 (21:57 +0300)]
Carify on a semicolon in macro call

4 years agoResolve TODO about curly-braced constructions in expression statement
veetaha [Sun, 10 May 2020 18:50:24 +0000 (21:50 +0300)]
Resolve TODO about curly-braced constructions in expression statement

4 years agoRemove TODO about Block since it was removed
veetaha [Sun, 10 May 2020 18:46:26 +0000 (21:46 +0300)]
Remove TODO about Block since it was removed

4 years agoResolve todos about refs and empty statements
veetaha [Sun, 10 May 2020 18:44:14 +0000 (21:44 +0300)]
Resolve todos about refs and empty statements

4 years agoConverted TODO about MacroItems to FIXME as per edwin0cheng
veetaha [Sun, 10 May 2020 18:06:12 +0000 (21:06 +0300)]
Converted TODO about MacroItems to FIXME as per edwin0cheng

4 years agoVerified ConstArg example, waiting for response on what `=` sign pertains to
veetaha [Sun, 10 May 2020 18:02:10 +0000 (21:02 +0300)]
Verified ConstArg example, waiting for response on what `=` sign pertains to

4 years agoMerge #4396
bors[bot] [Sun, 10 May 2020 18:01:20 +0000 (18:01 +0000)]
Merge #4396

4396: Improve panic message for ast_from_text r=jonas-schievink a=edwin0cheng

Related: #4368

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoCorrecy use tree and type args docs
veetaha [Sun, 10 May 2020 17:52:25 +0000 (20:52 +0300)]
Correcy use tree and type args docs

4 years agoMerge #4394 #4414
bors[bot] [Sun, 10 May 2020 17:47:27 +0000 (17:47 +0000)]
Merge #4394 #4414

4394: Simplify r=matklad a=Veetaha

4414: Highlighting improvements r=matklad a=matthewjasper

- `static mut`s are highlighted as `mutable`.
- The name of the macro declared by `macro_rules!` is now highlighted.

Co-authored-by: veetaha <veetaha2@gmail.com>
Co-authored-by: Matthew Jasper <mjjasper1@gmail.com>
4 years agoFix "show syntax tree" command
veetaha [Sun, 10 May 2020 17:43:48 +0000 (20:43 +0300)]
Fix "show syntax tree" command

@matlkad please don't forget to keep it up-to-date!

4 years agoMerge #4406 #4410 #4411 #4417
bors[bot] [Sun, 10 May 2020 17:37:07 +0000 (17:37 +0000)]
Merge #4406 #4410 #4411 #4417

4406: Update cargo-metadata r=matklad a=edwin0cheng

This PR update `cargo-metadata` to  0.10.0 and it also relax the` serde-derive` deps to 1.0 for tests in `proc-macro-srv`.

cc @robojumper

r= @matklad  , I think you would have something to say related to https://github.com/serde-rs/json/issues/647#issue-593788429 ?

4410: Improve wording in comment r=matklad a=edwin0cheng

4411: do not remove then block when you unwrap else block #4361 r=matklad a=bnjjj

close #4361

4417: Omit default types in HirDisplay SourceCode mode r=matklad a=TimoFreiberg

Closes #4390

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Co-authored-by: Timo Freiberg <timo.freiberg@gmail.com>
4 years agoMerge #4418
bors[bot] [Sun, 10 May 2020 17:28:59 +0000 (17:28 +0000)]
Merge #4418

4418: Refactor protocol handling r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoreq -> lsp_ext
Aleksey Kladov [Sun, 10 May 2020 17:25:37 +0000 (19:25 +0200)]
req -> lsp_ext

4 years agoDon't re-export lsp_types
Aleksey Kladov [Sun, 10 May 2020 17:24:02 +0000 (19:24 +0200)]
Don't re-export lsp_types

4 years agoCorrect `use` cannot have type args as per flodiebold
veetaha [Sun, 10 May 2020 17:23:29 +0000 (20:23 +0300)]
Correct `use` cannot have type args as per flodiebold

4 years agoCorrect path docs and add colon2 token to Path ast node
veetaha [Sun, 10 May 2020 16:59:48 +0000 (19:59 +0300)]
Correct path docs and add colon2 token to Path ast node

4 years agoBetter fn signature
Aleksey Kladov [Sun, 10 May 2020 17:14:02 +0000 (19:14 +0200)]
Better fn signature

4 years agoto_proto::semantic_tokens
Aleksey Kladov [Sun, 10 May 2020 17:09:22 +0000 (19:09 +0200)]
to_proto::semantic_tokens

4 years agoSimplify proto conversion
Aleksey Kladov [Sun, 10 May 2020 11:55:24 +0000 (13:55 +0200)]
Simplify proto conversion

Trait based infra in conv.rs is significantly more complicated than
what we actually need here.

4 years agoAdd example with const in TypeBound as per flodiebold
veetaha [Sun, 10 May 2020 16:24:06 +0000 (19:24 +0300)]
Add example with const in TypeBound as per flodiebold

4 years agoRemove todo comment about arg vs param difference as per clarification from flodiebold
veetaha [Sun, 10 May 2020 16:19:56 +0000 (19:19 +0300)]
Remove todo comment about arg vs param difference as per clarification from flodiebold

4 years agoProperly document const impl as per flodiebold
veetaha [Sun, 10 May 2020 16:17:46 +0000 (19:17 +0300)]
Properly document const impl as per flodiebold

4 years agoRemove on TypeAliasDef as per flodiebold
veetaha [Sun, 10 May 2020 16:15:04 +0000 (19:15 +0300)]
Remove on TypeAliasDef as per flodiebold

4 years agoRemove MacroStmts as per edwin0cheng
veetaha [Sun, 10 May 2020 16:11:22 +0000 (19:11 +0300)]
Remove MacroStmts as per edwin0cheng

4 years agoOmit default types in HirDisplay SourceCode mode
Timo Freiberg [Sun, 10 May 2020 16:09:22 +0000 (18:09 +0200)]
Omit default types in HirDisplay SourceCode mode

4 years agoAdd proper docs for TokenTree as per edwin0cheng
veetaha [Sun, 10 May 2020 16:09:36 +0000 (19:09 +0300)]
Add proper docs for TokenTree as per edwin0cheng

4 years agoRun codegen of ast types with documentation
veetaha [Wed, 22 Apr 2020 01:16:28 +0000 (04:16 +0300)]
Run codegen of ast types with documentation

4 years agoAdd ast docs to codegen script
veetaha [Wed, 22 Apr 2020 01:15:55 +0000 (04:15 +0300)]
Add ast docs to codegen script

4 years agoHighlight the name in macro declarations
Matthew Jasper [Sun, 10 May 2020 15:08:54 +0000 (16:08 +0100)]
Highlight the name in macro declarations

4 years agoHighlight mutable statics as mutable
Matthew Jasper [Sun, 10 May 2020 15:08:28 +0000 (16:08 +0100)]
Highlight mutable statics as mutable

4 years agoMerge #4412
bors[bot] [Sun, 10 May 2020 14:48:04 +0000 (14:48 +0000)]
Merge #4412

4412: infer: Make expected rhs type for plain assign the lhs type r=flodiebold a=kiljacken

This fixes an issue where the following code sample would fail to infer
the type contained in the option:
```rust
fn main() {
    let mut end = None; // Was Option<{unknown}>, is now Option<bool>
    loop {
        end = Some(true);
    }
}
```

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
4 years agoinfer: Make expected rhs type for plain assign the lhs type
Emil Lauridsen [Sun, 10 May 2020 14:20:13 +0000 (16:20 +0200)]
infer: Make expected rhs type for plain assign the lhs type

This fixes an issue where the following code sample would fail to infer
the type contained in the option:
```rust
fn main() {
    let mut end = None; // TODO: Fix inference for this in RA
    loop {
        end = Some(true);
    }
}
```

4 years agodo not remove then block when you unwrap else block #4361
Benjamin Coenen [Sun, 10 May 2020 13:31:51 +0000 (15:31 +0200)]
do not remove then block when you unwrap else block #4361

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoWord fix
Edwin Cheng [Sun, 10 May 2020 13:05:09 +0000 (21:05 +0800)]
Word fix

4 years agoadd if let and while let postfix for Option and Result
Benjamin Coenen [Sun, 10 May 2020 10:45:35 +0000 (12:45 +0200)]
add if let and while let postfix for Option and Result

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge branch 'master' of github.com:rust-analyzer/rust-analyzer into feat_4348
Benjamin Coenen [Sun, 10 May 2020 10:31:55 +0000 (12:31 +0200)]
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer into feat_4348

4 years agoMerge #4409
bors[bot] [Sun, 10 May 2020 10:04:44 +0000 (10:04 +0000)]
Merge #4409

4409: Hot fix panic for function_signature r=edwin0cheng a=edwin0cheng

I am totally agree this comment:

https://github.com/rust-analyzer/rust-analyzer/blob/f1cb5b8a29ce509bf1f8d6df97d4b6586b9a2dac/crates/ra_ide/src/display/function_signature.rs#L3-L4

But let hot fix all panic for right now, it is so disturbing when browsing code...

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoRemove dbg
Edwin Cheng [Sun, 10 May 2020 10:03:44 +0000 (18:03 +0800)]
Remove dbg

4 years agoHot fix panic for function_signature
Edwin Cheng [Sun, 10 May 2020 08:27:31 +0000 (16:27 +0800)]
Hot fix panic for function_signature

4 years agoRemove dbg
Edwin Cheng [Sat, 9 May 2020 22:39:36 +0000 (06:39 +0800)]
Remove dbg

4 years agoUpdate cargo-metadata
Edwin Cheng [Sat, 9 May 2020 22:22:26 +0000 (06:22 +0800)]
Update cargo-metadata

4 years agoImprove panic message for ast_from_text
Edwin Cheng [Sat, 9 May 2020 19:46:12 +0000 (03:46 +0800)]
Improve panic message for ast_from_text

4 years agoSimplify match
veetaha [Sat, 9 May 2020 19:19:11 +0000 (22:19 +0300)]
Simplify match

4 years agoSimplify crate graph creation
veetaha [Sat, 9 May 2020 18:25:10 +0000 (21:25 +0300)]
Simplify crate graph creation

4 years agoSimplify
veetaha [Sat, 9 May 2020 17:52:52 +0000 (20:52 +0300)]
Simplify

4 years agoMerge #4392
bors[bot] [Sat, 9 May 2020 14:22:06 +0000 (14:22 +0000)]
Merge #4392

4392: Add From should not move the cursor r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAdd From should not move the cursor
Aleksey Kladov [Sat, 9 May 2020 14:21:10 +0000 (16:21 +0200)]
Add From should not move the cursor

4 years agoMerge #4389
bors[bot] [Sat, 9 May 2020 13:58:22 +0000 (13:58 +0000)]
Merge #4389

4389: Ascribe more correct types r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAscribe more correct types
Aleksey Kladov [Sat, 9 May 2020 13:55:59 +0000 (15:55 +0200)]
Ascribe more correct types

4 years agoMerge #4388
bors[bot] [Sat, 9 May 2020 12:49:18 +0000 (12:49 +0000)]
Merge #4388

4388: unindent -> dedent r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agounindent -> dedent
Aleksey Kladov [Sat, 9 May 2020 12:48:43 +0000 (14:48 +0200)]
unindent -> dedent

4 years agoMerge #4387
bors[bot] [Sat, 9 May 2020 12:40:45 +0000 (12:40 +0000)]
Merge #4387

4387: More fluent indent API r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMore fluent indent API
Aleksey Kladov [Sat, 9 May 2020 12:40:11 +0000 (14:40 +0200)]
More fluent indent API

4 years agoFix visibility
Aleksey Kladov [Sat, 9 May 2020 11:57:19 +0000 (13:57 +0200)]
Fix visibility