]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMerge #2481
bors[bot] [Fri, 6 Dec 2019 20:03:44 +0000 (20:03 +0000)]
Merge #2481

2481: Remove obsolete comment r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMerge #2487
bors[bot] [Fri, 6 Dec 2019 14:19:06 +0000 (14:19 +0000)]
Merge #2487

2487: Don't unify within a reference r=matklad a=flodiebold

If we are expecting a `&Foo` and get a `&something`, when checking the `something`, we are *expecting* a `Foo`, but we shouldn't try to unify whatever we get with that expectation, because it could actually be a `&Foo`, and `&&Foo` coerces to `&Foo`. So this fixes quite a few false type mismatches.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoDon't unify within a reference
Florian Diebold [Thu, 5 Dec 2019 22:02:31 +0000 (23:02 +0100)]
Don't unify within a reference

If we are expecting a `&Foo` and get a `&something`, when checking the
`something`, we are *expecting* a `Foo`, but we shouldn't try to unify whatever
we get with that expectation, because it could actually be a `&Foo`, and `&&Foo`
coerces to `&Foo`. So this fixes quite a few false type mismatches.

4 years agoMerge #2486
bors[bot] [Fri, 6 Dec 2019 08:11:58 +0000 (08:11 +0000)]
Merge #2486

2486: Fix npm vulnerability warning r=matklad a=edwin0cheng

I see a warning in `npm` when I try to install RA:

```
found 1 high severity vulnerability
```

This PR update package-lock.json by run `npm audit fix`

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoFix npm vulnerability warning
Edwin Cheng [Fri, 6 Dec 2019 03:41:51 +0000 (11:41 +0800)]
Fix npm vulnerability warning

4 years agoMerge #2483
bors[bot] [Thu, 5 Dec 2019 20:17:46 +0000 (20:17 +0000)]
Merge #2483

2483: Simplify test r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSimplify test
Aleksey Kladov [Thu, 5 Dec 2019 20:17:17 +0000 (21:17 +0100)]
Simplify test

4 years agoMerge #2479
bors[bot] [Thu, 5 Dec 2019 20:00:20 +0000 (20:00 +0000)]
Merge #2479

2479: Add expansion infrastructure for derive macros r=matklad a=flodiebold

I thought I'd experiment a bit with attribute macro/derive expansion, and here's what I've got so far. It has dummy implementations of the Copy / Clone derives, to show that the approach works; it doesn't add any attribute macro support, but I think that fits into the architecture.

Basically, during raw item collection, we look at the attributes and generate macro calls for them if necessary. Currently I only do this for derives, and just add the derive macro calls as separate calls next to the item. I think for derives, it's important that they don't obscure the actual item, since they can't actually change it (e.g. sending the item token tree through macro expansion unnecessarily might make completion within it more complicated).

Attribute macros would have to be recognized at that stage and replace the item (i.e., the raw item collector will just emit an attribute macro call, and not the item). I think when we implement this, we should try to recognize known inert attributes, so that we don't do macro expansion unnecessarily; anything that isn't known needs to be treated as a possible attribute macro call (since the raw item collector can't resolve the macro yet).

There's basically no name resolution for attribute macros implemented, I just hardcoded the built-in derives. In the future, the built-ins should work within the normal name resolution infrastructure; the problem there is that the builtin stubs in `std` use macros 2.0, which we don't support yet (and adding support is outside the scope of this).

One aspect that I don't really have a solution for, but I don't know how important it is, is removing the attribute itself from its input. I'm pretty sure rustc leaves out the attribute macro from the input, but to do that, we'd have to create a completely new syntax node. I guess we could do it when / after converting to a token tree.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoImplement all the other built-in derives
Florian Diebold [Thu, 5 Dec 2019 18:52:52 +0000 (19:52 +0100)]
Implement all the other built-in derives

Since as long as we're not implementing the bodies, they all work the same way.

4 years agoImplement derive(Copy, Clone) properly (well, kind of)
Florian Diebold [Thu, 5 Dec 2019 18:29:57 +0000 (19:29 +0100)]
Implement derive(Copy, Clone) properly (well, kind of)

4 years agoDon't wrap most syntax trees in invisible delimiters when converting to token tree
Florian Diebold [Thu, 5 Dec 2019 18:27:39 +0000 (19:27 +0100)]
Don't wrap most syntax trees in invisible delimiters when converting to token tree

Otherwise parsing them again doesn't work.

4 years agoRemove obsolete comment
Aleksey Kladov [Thu, 5 Dec 2019 16:55:38 +0000 (17:55 +0100)]
Remove obsolete comment

4 years agoAdd expansion infrastructure for derive macros
Florian Diebold [Thu, 5 Dec 2019 14:10:33 +0000 (15:10 +0100)]
Add expansion infrastructure for derive macros

4 years agoMerge #2480
bors[bot] [Thu, 5 Dec 2019 15:59:22 +0000 (15:59 +0000)]
Merge #2480

2480: New from sorce infra r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoReduce copy-paste
Aleksey Kladov [Thu, 5 Dec 2019 15:53:17 +0000 (16:53 +0100)]
Reduce copy-paste

4 years agoIntroduce ChildFromSource
Aleksey Kladov [Thu, 5 Dec 2019 14:16:59 +0000 (15:16 +0100)]
Introduce ChildFromSource

4 years agoMerge #2474
bors[bot] [Thu, 5 Dec 2019 13:38:39 +0000 (13:38 +0000)]
Merge #2474

2474: Move `ModuleSource`, create `ModuleOrigin` r=matklad a=ice1000

As title. This comes right after #2473

Co-authored-by: ice1000 <ice1000kotlin@foxmail.com>
4 years agoPublicize `file_id` to make `test_db` compile
ice1000 [Thu, 5 Dec 2019 13:37:39 +0000 (08:37 -0500)]
Publicize `file_id` to make `test_db` compile

4 years agoUse placeholder instead of `Option`
ice1000 [Thu, 5 Dec 2019 13:33:29 +0000 (08:33 -0500)]
Use placeholder instead of `Option`

4 years agoOne pub function less is good!
ice1000 [Thu, 5 Dec 2019 13:28:31 +0000 (08:28 -0500)]
One pub function less is good!

4 years agoReduce visibility, use struct instead of tuples
ice1000 [Thu, 5 Dec 2019 13:19:27 +0000 (08:19 -0500)]
Reduce visibility, use struct instead of tuples

4 years agoNo block at the moment
ice1000 [Wed, 4 Dec 2019 18:35:24 +0000 (13:35 -0500)]
No block at the moment

4 years agoRemove almost unused `ModuleSource::new`
ice1000 [Tue, 3 Dec 2019 20:58:38 +0000 (15:58 -0500)]
Remove almost unused `ModuleSource::new`

4 years agoConfluent `ModuleSource` usage
ice1000 [Tue, 3 Dec 2019 20:28:40 +0000 (15:28 -0500)]
Confluent `ModuleSource` usage

4 years agoAdd `ModuleSource::Block`
ice1000 [Tue, 3 Dec 2019 20:24:02 +0000 (15:24 -0500)]
Add `ModuleSource::Block`

4 years agoFix test compilation
ice1000 [Tue, 3 Dec 2019 20:23:21 +0000 (15:23 -0500)]
Fix test compilation

4 years agoThree-state enum for module origin
ice1000 [Tue, 3 Dec 2019 19:58:29 +0000 (14:58 -0500)]
Three-state enum for module origin

4 years agoMerge #2478
bors[bot] [Wed, 4 Dec 2019 22:15:24 +0000 (22:15 +0000)]
Merge #2478

2478: :arrow_up: rowan r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMerge #2477
bors[bot] [Wed, 4 Dec 2019 22:07:11 +0000 (22:07 +0000)]
Merge #2477

2477: Run rustfmt with respect to Cargo.toml edition r=matklad a=Speedy37

Fixes #2146
Fixes #1959

Co-authored-by: Vincent Rouillé <vincent@speedy37.fr>
4 years agoRun rustfmt with respect to Cargo.toml edition
Vincent Rouillé [Wed, 4 Dec 2019 22:05:01 +0000 (23:05 +0100)]
Run rustfmt with respect to Cargo.toml edition

4 years ago:arrow_up: rowan
Aleksey Kladov [Wed, 4 Dec 2019 22:03:42 +0000 (23:03 +0100)]
:arrow_up: rowan

4 years agoMerge #2476
bors[bot] [Wed, 4 Dec 2019 16:20:04 +0000 (16:20 +0000)]
Merge #2476

2476: :arrow_up: rowan r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years ago:arrow_up: rowan
Aleksey Kladov [Wed, 4 Dec 2019 16:15:55 +0000 (17:15 +0100)]
:arrow_up: rowan

4 years agoMerge #2475
bors[bot] [Wed, 4 Dec 2019 16:09:20 +0000 (16:09 +0000)]
Merge #2475

2475: fix outdated link to ra-emacs-lsp.el r=matklad a=andrewbanchich

Co-authored-by: Andrew Banchich <andrewbanchich@gmail.com>
4 years agofix file name
Andrew Banchich [Wed, 4 Dec 2019 16:07:37 +0000 (11:07 -0500)]
fix file name

4 years agofix link
Andrew Banchich [Wed, 4 Dec 2019 16:02:03 +0000 (11:02 -0500)]
fix link

4 years agouse relative link
Andrew Banchich [Wed, 4 Dec 2019 16:00:51 +0000 (11:00 -0500)]
use relative link

4 years agofix outdated link to ra-emacs-lsp.el
Andrew Banchich [Wed, 4 Dec 2019 15:48:03 +0000 (10:48 -0500)]
fix outdated link to ra-emacs-lsp.el

4 years agoMerge #2471
bors[bot] [Tue, 3 Dec 2019 17:24:16 +0000 (17:24 +0000)]
Merge #2471

2471: Add `ModuleItemsOwner` to `Block` r=matklad a=ice1000

As title

Co-authored-by: ice1000 <ice1000kotlin@foxmail.com>
4 years agoMerge #2472
bors[bot] [Tue, 3 Dec 2019 17:16:02 +0000 (17:16 +0000)]
Merge #2472

2472: Split up ty tests a bit r=matklad a=flodiebold

`simple` is a bit of a kitchen sink (and not all of them are really about 'simple' features), suggestions for further divisions there are welcome :smile:

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoAdd `ModuleItemsOwner` to `Block`
ice1000 [Tue, 3 Dec 2019 17:03:35 +0000 (12:03 -0500)]
Add `ModuleItemsOwner` to `Block`

4 years agoSplit up ty tests a bit
Florian Diebold [Tue, 3 Dec 2019 12:38:54 +0000 (13:38 +0100)]
Split up ty tests a bit

4 years agoMerge #2469
bors[bot] [Tue, 3 Dec 2019 16:13:42 +0000 (16:13 +0000)]
Merge #2469

2469: Replace `ra_hir_expand::either` with crate r=matklad a=ice1000

As title.

Co-authored-by: ice1000 <ice1000kotlin@foxmail.com>
4 years agoReplace `ra_hir_expand::either` with crate
ice1000 [Tue, 3 Dec 2019 16:07:56 +0000 (11:07 -0500)]
Replace `ra_hir_expand::either` with crate

4 years agoMerge #2468
bors[bot] [Tue, 3 Dec 2019 14:02:23 +0000 (14:02 +0000)]
Merge #2468

2468: Fix #2467 r=flodiebold a=flodiebold

The stand-alone `unify` requires that the type doesn't contain any type
variables. So we can't share the code here for now (without more refactoring)...

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoFix #2467
Florian Diebold [Tue, 3 Dec 2019 13:59:29 +0000 (14:59 +0100)]
Fix #2467

The stand-alone `unify` requires that the type doesn't contain any type
variables. So we can't share the code here for now (without more refactoring)...

4 years agoMerge #2465
bors[bot] [Tue, 3 Dec 2019 13:43:05 +0000 (13:43 +0000)]
Merge #2465

2465: Extract built-in trait implementations to separate module r=matklad a=flodiebold

This untangles the builtin logic from the Chalk translation.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoMerge #2463
bors[bot] [Tue, 3 Dec 2019 12:58:44 +0000 (12:58 +0000)]
Merge #2463

2463: More correct method resolution r=flodiebold a=flodiebold

This should fix the order in which candidates for method resolution are considered, i.e. `(&Foo).clone()` should now be of type `Foo` instead of `&Foo`. It also checks for inherent candidates that the self type unifies properly with the self type in the impl (i.e. `impl Foo<u32>` methods will only be considered for `Foo<u32>`).

To be able to get the correct receiver type to check in the method resolution, I needed the unification logic, so I extracted it to the `unify.rs` module.

Should fix #2435.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoMake unify pub(crate)
Florian Diebold [Tue, 3 Dec 2019 12:58:02 +0000 (13:58 +0100)]
Make unify pub(crate)

4 years agoExtract built-in trait implementations to separate module
Florian Diebold [Tue, 3 Dec 2019 11:16:39 +0000 (12:16 +0100)]
Extract built-in trait implementations to separate module

This untangles the builtin logic from the Chalk translation.

4 years agoAdd tests for checking the impl self type
Florian Diebold [Mon, 2 Dec 2019 18:27:31 +0000 (19:27 +0100)]
Add tests for checking the impl self type

4 years agoRefactor a bit
Florian Diebold [Mon, 2 Dec 2019 17:12:49 +0000 (18:12 +0100)]
Refactor a bit

4 years agoCheck receiver type properly
Florian Diebold [Sun, 1 Dec 2019 21:14:28 +0000 (22:14 +0100)]
Check receiver type properly

4 years agoExtract unification code to unify module
Florian Diebold [Sun, 1 Dec 2019 19:30:28 +0000 (20:30 +0100)]
Extract unification code to unify module

4 years agoChange order of calls to get method candidate order correct
Florian Diebold [Sat, 2 Nov 2019 14:18:26 +0000 (15:18 +0100)]
Change order of calls to get method candidate order correct

4 years agoMerge #2018
bors[bot] [Mon, 2 Dec 2019 15:52:11 +0000 (15:52 +0000)]
Merge #2018

2018: assists: add assist for custom implementation for derived trait r=matklad a=paulolieuthier

Please, tell me if something could be more idiomatic or efficient.

Fixes #1256.

Co-authored-by: Paulo Lieuthier <paulolieuthier@gmail.com>
4 years agoMerge #2462
bors[bot] [Mon, 2 Dec 2019 14:19:12 +0000 (14:19 +0000)]
Merge #2462

2462: Switch back to npm install r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSwitch back to npm install
Aleksey Kladov [Mon, 2 Dec 2019 14:17:55 +0000 (15:17 +0100)]
Switch back to npm install

Locks like it honors package.lock nowdays

4 years agoMerge #2457
bors[bot] [Mon, 2 Dec 2019 12:42:33 +0000 (12:42 +0000)]
Merge #2457

2457: Clarify installation instructions r=matklad a=fintelia

In particular it is necessary to clone the repository before running the other commands. I also removed the `cargo install` side note because it didn't actually work (running the command just produces an error that --package isn't a recognized flag) and added a tldr code block with the list of commands to run.

Co-authored-by: Jonathan Behrens <fintelia@gmail.com>
4 years agoMerge #2461
bors[bot] [Sun, 1 Dec 2019 20:02:01 +0000 (20:02 +0000)]
Merge #2461

2461: anyhow, libc, syn, cargo_metadata r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoJust update some things
Jeremy Kolb [Sun, 1 Dec 2019 20:00:34 +0000 (15:00 -0500)]
Just update some things

4 years agoAdd back corrected `cargo install` command
Jonathan Behrens [Sun, 1 Dec 2019 18:29:01 +0000 (13:29 -0500)]
Add back corrected `cargo install` command

4 years agoMerge #2455
bors[bot] [Sun, 1 Dec 2019 11:13:25 +0000 (11:13 +0000)]
Merge #2455

2455: Add BuiltinShadowMode r=flodiebold a=edwin0cheng

This PR try to fix #1905 by introduce an `BuiltinShadowMode` in name resolving functions.

cc @flodiebold

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoRemove some empty lines
Edwin Cheng [Sun, 1 Dec 2019 04:17:52 +0000 (12:17 +0800)]
Remove some empty lines

4 years agoUse index instead of peekable
Edwin Cheng [Sun, 1 Dec 2019 04:14:35 +0000 (12:14 +0800)]
Use index instead of peekable

4 years agoFix comment
Edwin Cheng [Sun, 1 Dec 2019 04:14:12 +0000 (12:14 +0800)]
Fix comment

4 years agoClarify installation instructions
Jonathan Behrens [Sun, 1 Dec 2019 02:20:54 +0000 (21:20 -0500)]
Clarify installation instructions

In particular it is necessary to clone the repository before running the other commands. I also removed the `cargo install` side note because it didn't actually work (running the command just produces an error that --package isn't a recognized flag) and added a tldr code block with the list of commands to run.

4 years agoMerge #2451
bors[bot] [Sat, 30 Nov 2019 19:19:28 +0000 (19:19 +0000)]
Merge #2451

2451: Use env_logger instead of flexi_logger r=matklad a=AlexanderEkdahl

This fixes https://github.com/rust-analyzer/rust-analyzer/issues/2335

- By default only `error` will be printed. From what I can tell this matches the current behaviour. Configured through `RUST_LOG`.
- I looked through the optional dependencies for `env_logger`and I have only enabled `human_time`. Without this feature no timestamp will be shown for log messages.
- `RA_LOG_DIR` feature is removed

This PR adds 2 new dependencies(`env_logger` and `human_time`) and removes 6 dependencies.

Co-authored-by: Alexander Ekdahl <alexander@ekdahl.io>
4 years agoAdd BuiltinShadowMode
Edwin Cheng [Sat, 30 Nov 2019 15:29:21 +0000 (23:29 +0800)]
Add BuiltinShadowMode

4 years agoMerge #2453
bors[bot] [Sat, 30 Nov 2019 14:23:18 +0000 (14:23 +0000)]
Merge #2453

2453: Handle various cycles r=matklad a=flodiebold

 - handle `impl Trait<Self> for SomeType`, which is allowed. This necessitated splitting the `impl_ty` query, but I think the result actually makes a lot of code nicer. This should fix #2446.
 - add recovery for `impl Trait for SomeType<Self>`
 - add recovery for `type Type = Foo<Type>`
 - add recovery for cycles in generic param env

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoAdd cycle recovery for type aliases
Florian Diebold [Sat, 30 Nov 2019 11:48:51 +0000 (12:48 +0100)]
Add cycle recovery for type aliases

4 years agoAdd cycle recovery for generic predicates
Florian Diebold [Sat, 30 Nov 2019 11:39:21 +0000 (12:39 +0100)]
Add cycle recovery for generic predicates

4 years agoHandle cycles in impl types better
Florian Diebold [Sat, 30 Nov 2019 11:35:37 +0000 (12:35 +0100)]
Handle cycles in impl types better

 - impl Trait<Self> for S is allowed
 - impl Trait for S<Self> is an invalid cycle, but we can add cycle recovery for
   it in Salsa now

4 years agoMerge #2449
bors[bot] [Sat, 30 Nov 2019 10:43:35 +0000 (10:43 +0000)]
Merge #2449

2449: Only allow renames to valid identifiers r=matklad a=detrumi

Implements #2121

Co-authored-by: Wilco Kusee <wilcokusee@gmail.com>
4 years agoRemove log dependency from ra_cli
Alexander Ekdahl [Sat, 30 Nov 2019 00:40:59 +0000 (19:40 -0500)]
Remove log dependency from ra_cli

4 years agoUpdate README
Alexander Ekdahl [Sat, 30 Nov 2019 00:36:48 +0000 (19:36 -0500)]
Update README

4 years agoRemove flexi_logger from ra_lsp_server
Alexander Ekdahl [Sat, 30 Nov 2019 00:35:03 +0000 (19:35 -0500)]
Remove flexi_logger from ra_lsp_server

4 years agoUse env_logger in ra_cli
Alexander Ekdahl [Sat, 30 Nov 2019 00:20:48 +0000 (19:20 -0500)]
Use env_logger in ra_cli

4 years agoMerge #2445
bors[bot] [Fri, 29 Nov 2019 19:34:02 +0000 (19:34 +0000)]
Merge #2445

2445: Infer range types r=flodiebold a=oxalica

Co-authored-by: oxalica <oxalicc@pm.me>
4 years agoPush identifier check to rename function
Wilco Kusee [Fri, 29 Nov 2019 15:06:20 +0000 (16:06 +0100)]
Push identifier check to rename function

4 years agoTest rename for various identifiers
Wilco Kusee [Fri, 29 Nov 2019 15:03:39 +0000 (16:03 +0100)]
Test rename for various identifiers

4 years agoMove identifier check to analysis
Wilco Kusee [Fri, 29 Nov 2019 14:52:12 +0000 (15:52 +0100)]
Move identifier check to analysis

4 years agoAlso allow renaming to underscore
Wilco Kusee [Fri, 29 Nov 2019 14:27:22 +0000 (15:27 +0100)]
Also allow renaming to underscore

4 years agoOnly allow renames to valid identifiers
Wilco Kusee [Fri, 29 Nov 2019 14:14:42 +0000 (15:14 +0100)]
Only allow renames to valid identifiers

4 years agoReduce variants of Expr
oxalica [Fri, 29 Nov 2019 06:49:12 +0000 (14:49 +0800)]
Reduce variants of Expr

4 years agodocs: describe new feature 'add custom impl for derived trait'
Paulo Lieuthier [Sat, 19 Oct 2019 11:19:06 +0000 (08:19 -0300)]
docs: describe new feature 'add custom impl for derived trait'

4 years agoassists: add assist for custom implementation for derived trait
Paulo Lieuthier [Tue, 15 Oct 2019 18:29:20 +0000 (15:29 -0300)]
assists: add assist for custom implementation for derived trait

4 years agoInfer range types
oxalica [Thu, 28 Nov 2019 19:10:16 +0000 (03:10 +0800)]
Infer range types

4 years agoMerge #2442
bors[bot] [Thu, 28 Nov 2019 16:05:46 +0000 (16:05 +0000)]
Merge #2442

2442: Move source-related traits to a separate module r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMove source-related traits to a separate module
Aleksey Kladov [Thu, 28 Nov 2019 15:05:28 +0000 (18:05 +0300)]
Move source-related traits to a separate module

4 years agoMerge #2441
bors[bot] [Thu, 28 Nov 2019 13:04:52 +0000 (13:04 +0000)]
Merge #2441

2441: Use InFile for AstId r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse InFile for AstId
Aleksey Kladov [Thu, 28 Nov 2019 13:00:03 +0000 (16:00 +0300)]
Use InFile for AstId

4 years agoMerge #2440
bors[bot] [Thu, 28 Nov 2019 10:02:46 +0000 (10:02 +0000)]
Merge #2440

2440: Rename Source -> InFile r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRename Source -> InFile
Aleksey Kladov [Thu, 28 Nov 2019 09:50:26 +0000 (12:50 +0300)]
Rename Source -> InFile

4 years agoMerge #2438
bors[bot] [Thu, 28 Nov 2019 08:46:36 +0000 (08:46 +0000)]
Merge #2438

2438: Derive Hash for tt::TokenTree r=matklad a=edwin0cheng

Preparation for intern `TokenTree` to salsa database

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoDerive Hash for TokenTrees
Edwin Cheng [Thu, 28 Nov 2019 05:41:58 +0000 (13:41 +0800)]
Derive Hash for TokenTrees

4 years agoMerge #2437
bors[bot] [Wed, 27 Nov 2019 23:06:40 +0000 (23:06 +0000)]
Merge #2437

2437: Update mio and anyhow r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoUpdate mio and anyhow
kjeremy [Wed, 27 Nov 2019 23:05:49 +0000 (18:05 -0500)]
Update mio and anyhow

4 years agoMerge #2433
bors[bot] [Wed, 27 Nov 2019 20:27:01 +0000 (20:27 +0000)]
Merge #2433

2433: Use Name::missing consistently r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse Name::missing consistently
Aleksey Kladov [Wed, 27 Nov 2019 20:22:20 +0000 (23:22 +0300)]
Use Name::missing consistently