]>
git.lizzy.rs Git - rust.git/log
bors[bot] [Mon, 30 Sep 2019 07:16:23 +0000 (07:16 +0000)]
Merge #1936
1936: cleanup editor r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Mon, 30 Sep 2019 07:08:28 +0000 (10:08 +0300)]
cleanup editor
Aleksey Kladov [Mon, 30 Sep 2019 07:05:12 +0000 (10:05 +0300)]
remove ast_editor.rs
Aleksey Kladov [Mon, 30 Sep 2019 06:56:20 +0000 (09:56 +0300)]
move remove bounds to ast/edit.rs
Aleksey Kladov [Mon, 30 Sep 2019 06:27:26 +0000 (09:27 +0300)]
move field list to ast/edit.rs
Aleksey Kladov [Sat, 28 Sep 2019 17:09:57 +0000 (20:09 +0300)]
migrate add impl items to the new editing API
Aleksey Kladov [Sat, 28 Sep 2019 16:50:16 +0000 (19:50 +0300)]
simplify strip attrs
bors[bot] [Sat, 28 Sep 2019 15:59:28 +0000 (15:59 +0000)]
Merge #1931
1931: Support the new deprecated tag r=matklad a=arsdragonfly
Which is rendered as a strike-through line. Fixes #1671 .
![深度截图_选择区域_20190927162008](https://user-images.githubusercontent.com/
4067473 /
65799714 -
ccb4c180 -e142-11e9-8e45-
ab18964605f3 .png)
Co-authored-by: arsdragonfly <arsdragonfly@gmail.com>
bors[bot] [Sat, 28 Sep 2019 15:51:02 +0000 (15:51 +0000)]
Merge #1932
1932: correctly reset chalk state after a panic r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 28 Sep 2019 15:49:00 +0000 (18:49 +0300)]
correctly reset chalk state after a panic
arsdragonfly [Sat, 28 Sep 2019 00:02:51 +0000 (20:02 -0400)]
Fix
arsdragonfly [Fri, 27 Sep 2019 21:33:14 +0000 (17:33 -0400)]
Fix tests
arsdragonfly [Fri, 27 Sep 2019 20:17:23 +0000 (16:17 -0400)]
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer
arsdragonfly [Fri, 27 Sep 2019 20:17:02 +0000 (16:17 -0400)]
Support the new deprecated tag
bors[bot] [Fri, 27 Sep 2019 17:48:00 +0000 (17:48 +0000)]
Merge #1930
1930: replace horrible hack with a slightly less horrible one r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Fri, 27 Sep 2019 17:47:36 +0000 (20:47 +0300)]
replace horrible hack with a slightly less horrible one
bors[bot] [Fri, 27 Sep 2019 02:58:26 +0000 (02:58 +0000)]
Merge #1815
1815: Support correct `$crate` expansion in macros r=uHOOCCOOHu a=uHOOCCOOHu
This PR makes normal use cases of `$crate` from macros work as expected.
It makes more macros from `std` work. Type inference works well with `panic`, `unimplemented`, `format`, and maybe more.
Sadly that `vec![1, 2, 3]` still not works, but it is not longer an issue about macro.
Screenshot:
![Screenshot_20190927_022136](https://user-images.githubusercontent.com/
14816024 /
65714465 -
b4568f80 -e0cd-11e9-8043-
dd44c2ae8040 .png)
Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
uHOOCCOOHu [Fri, 27 Sep 2019 02:55:25 +0000 (10:55 +0800)]
Fix
bors[bot] [Thu, 26 Sep 2019 21:04:20 +0000 (21:04 +0000)]
Merge #1923
1923: Add SubstsBuilder r=flodiebold a=flodiebold
+ further refactoring.
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Thu, 26 Sep 2019 19:37:03 +0000 (21:37 +0200)]
Add SubstsBuilder
+ further refactoring.
bors[bot] [Thu, 26 Sep 2019 19:31:28 +0000 (19:31 +0000)]
Merge #1921
1921: WIP: start simplifying editing API r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Thu, 26 Sep 2019 19:08:44 +0000 (22:08 +0300)]
Start simplifying editing API
uHOOCCOOHu [Thu, 26 Sep 2019 17:59:38 +0000 (01:59 +0800)]
Support `$crate` in item and expr place.
uHOOCCOOHu [Thu, 26 Sep 2019 16:16:55 +0000 (00:16 +0800)]
Store crate info in `MacroDefId`
uHOOCCOOHu [Thu, 26 Sep 2019 18:04:47 +0000 (02:04 +0800)]
Refactor `Name` ready for hygienic macro
bors[bot] [Thu, 26 Sep 2019 12:58:54 +0000 (12:58 +0000)]
Merge #1919
1919: move diff to ra_syntax r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Thu, 26 Sep 2019 12:56:52 +0000 (15:56 +0300)]
move diff to ra_syntax
bors[bot] [Thu, 26 Sep 2019 12:30:44 +0000 (12:30 +0000)]
Merge #1918
1918: keep ast creation API simple r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Thu, 26 Sep 2019 09:18:26 +0000 (12:18 +0300)]
keep ast creation API simple
bors[bot] [Thu, 26 Sep 2019 09:33:18 +0000 (09:33 +0000)]
Merge #1917
1917: disable periodic GC r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Thu, 26 Sep 2019 09:31:16 +0000 (12:31 +0300)]
disable periodic GC
There's hypothesis that it doesn't do anything useful now that we have
LRU...
bors[bot] [Thu, 26 Sep 2019 08:19:18 +0000 (08:19 +0000)]
Merge #1823
1823: Support type coercion r=flodiebold a=uHOOCCOOHu
Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
bors[bot] [Thu, 26 Sep 2019 05:11:23 +0000 (05:11 +0000)]
Merge #1916
1916: Missing word r=matklad a=nicrd
Co-authored-by: nicrd <nicolasrd@gmail.com>
nicrd [Thu, 26 Sep 2019 01:49:52 +0000 (21:49 -0400)]
Missing word
uHOOCCOOHu [Wed, 25 Sep 2019 21:56:55 +0000 (05:56 +0800)]
Support all coercion places
uHOOCCOOHu [Wed, 18 Sep 2019 16:36:12 +0000 (00:36 +0800)]
Support custom `CoerceUnsized`
Split out tests about coercion
uHOOCCOOHu [Tue, 17 Sep 2019 19:59:51 +0000 (03:59 +0800)]
Better handle never type and branch merging
Split out tests for never type to another file
uHOOCCOOHu [Thu, 12 Sep 2019 18:59:21 +0000 (02:59 +0800)]
Support basic implicit type coerce
uHOOCCOOHu [Tue, 17 Sep 2019 20:15:31 +0000 (04:15 +0800)]
Support auto-deref in argument position
bors[bot] [Wed, 25 Sep 2019 20:44:20 +0000 (20:44 +0000)]
Merge #1912
1912: add new editing API, suitable for modifying several nodes at once r=viorina a=matklad
r? @viorina
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
bors[bot] [Wed, 25 Sep 2019 20:23:09 +0000 (20:23 +0000)]
Merge #1914
1914: Resolve trait associated items r=matklad a=flodiebold
E.g. `Default::default` or `<Foo as Default>::default`.
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Wed, 25 Sep 2019 19:41:17 +0000 (21:41 +0200)]
Resolve trait associated items
E.g. `Default::default` or `<Foo as Default>::default`.
bors[bot] [Wed, 25 Sep 2019 18:14:35 +0000 (18:14 +0000)]
Merge #1913
1913: Fix retrieval of the Fn traits r=flodiebold a=flodiebold
I used the wrong query, so it only used the lang items from the respective
crate...
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Wed, 25 Sep 2019 18:01:02 +0000 (20:01 +0200)]
Fix retrieval of the Fn traits
I used the wrong query, so it only used the lang items from the respective
crate...
Aleksey Kladov [Wed, 25 Sep 2019 14:57:12 +0000 (17:57 +0300)]
add new editing API, suitable for modifying several nodes at once
bors[bot] [Wed, 25 Sep 2019 14:19:46 +0000 (14:19 +0000)]
Merge #1911
1911: fewer monomorphisations r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Wed, 25 Sep 2019 14:19:16 +0000 (17:19 +0300)]
fewer monomorphisations
bors[bot] [Wed, 25 Sep 2019 12:59:12 +0000 (12:59 +0000)]
Merge #1910
1910: Assists r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Wed, 25 Sep 2019 12:58:40 +0000 (15:58 +0300)]
clean up naming
Aleksey Kladov [Wed, 25 Sep 2019 12:39:41 +0000 (15:39 +0300)]
cleanup diagnostics
Aleksey Kladov [Wed, 25 Sep 2019 12:28:26 +0000 (15:28 +0300)]
shorten AstBuilder names
Aleksey Kladov [Wed, 25 Sep 2019 12:16:18 +0000 (15:16 +0300)]
minor builder cleanups
Aleksey Kladov [Wed, 25 Sep 2019 12:09:03 +0000 (15:09 +0300)]
cleaned up record field builder
bors[bot] [Wed, 25 Sep 2019 11:35:50 +0000 (11:35 +0000)]
Merge #1909
1909: move ast builder to a separate file r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Wed, 25 Sep 2019 11:35:26 +0000 (14:35 +0300)]
move ast builder to a separate file
Aleksey Kladov [Wed, 25 Sep 2019 11:29:41 +0000 (14:29 +0300)]
move assists to subdir
bors[bot] [Wed, 25 Sep 2019 09:02:59 +0000 (09:02 +0000)]
Merge #1900 #1907
1900: Add rollup bundler for vscode extension r=matklad a=JasperDeSutter
This is an alternative approach to #1451 - bundling should improve extension startup times as explained [here](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
I'm using [rollup.js](https://rollupjs.org/guide/en/) which is a small and light bundler as opposed to webpack. Bundling is only done for creating the final vsix package, reducing 196 files down to 7 (of which 1 javascript file).
1907: update documentation according to new settings r=matklad a=lesurp
1. `command` has been added to change the default cargo-watch command
2. `check-arguments` has been renamed to `arguments` as a consequence
Thoses changes were merged in #1434
Co-authored-by: JasperDeSutter <jasper.desutter@gmail.com>
Co-authored-by: Paul Lesur <paul.lesur@dfki.de>
bors[bot] [Wed, 25 Sep 2019 08:55:32 +0000 (08:55 +0000)]
Merge #1906
1906: Add missing lang-items to `def_crates` r=matklad a=sinkuu
Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
Paul Lesur [Wed, 25 Sep 2019 08:55:18 +0000 (10:55 +0200)]
update documentation according to new settings
1. `command` has been added to change the default cargo-watch command
2. `check-arguments` has been renamed to `arguments` as a consequence
Thoses changes were merged in #1434
bors[bot] [Wed, 25 Sep 2019 05:27:07 +0000 (05:27 +0000)]
Merge #1904
1904: Remove redundant `clone()` r=matklad a=sinkuu
Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
Shotaro Yamada [Wed, 25 Sep 2019 02:29:46 +0000 (11:29 +0900)]
Add missing lang-items to `def_crates`
Shotaro Yamada [Wed, 25 Sep 2019 01:32:01 +0000 (10:32 +0900)]
Remove redundant clone()
Shotaro Yamada [Wed, 25 Sep 2019 01:30:33 +0000 (10:30 +0900)]
Avoid intermediate allocation
bors[bot] [Tue, 24 Sep 2019 21:12:26 +0000 (21:12 +0000)]
Merge #1845
1845: Closure types r=flodiebold a=flodiebold
This adds types for closures and makes them implement the `Fn` traits (we don't currently care or try to infer `Fn` vs. `FnMut` vs. `FnOnce`; this would require move analysis, I think).
This requires some changes in Chalk; one is that we need to know the self type when asked for impls, so we can synthesize `Fn` trait impls for closures; but also there's a problem that prevents us from normalizing the closure output type correctly that I _think_ will be fixed on the Chalk side (basically, we ask too early and try to solve `Normalize(<?1 as FnOnce<(u32,)>>::Output => ?0)` -- note the variable in the self type -- and instead of an ambiguous answer, we get back that it can't be solved, so we don't try again. Niko mentioned he's making all goals where the self type is unconstrained flounder, which I think would mean this would be ambiguous).
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Tue, 24 Sep 2019 21:04:33 +0000 (23:04 +0200)]
Implement the call argument checking order hack for closures
Florian Diebold [Tue, 24 Sep 2019 17:04:53 +0000 (19:04 +0200)]
Make the closure_1 test work
Florian Diebold [Mon, 9 Sep 2019 20:10:58 +0000 (22:10 +0200)]
Make closures impl closure traits
Florian Diebold [Sat, 7 Sep 2019 19:03:03 +0000 (21:03 +0200)]
Give closures types
bors[bot] [Tue, 24 Sep 2019 20:30:45 +0000 (20:30 +0000)]
Merge #1903
1903: Upgrade Chalk again r=flodiebold a=flodiebold
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Tue, 24 Sep 2019 16:27:31 +0000 (18:27 +0200)]
Upgrade Chalk again
bors[bot] [Tue, 24 Sep 2019 06:28:40 +0000 (06:28 +0000)]
Merge #1902
1902: simplify r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 22 Sep 2019 20:46:27 +0000 (23:46 +0300)]
simplify
JasperDeSutter [Mon, 23 Sep 2019 21:25:16 +0000 (23:25 +0200)]
add rollup bundler for vscode extension
bors[bot] [Mon, 23 Sep 2019 18:47:14 +0000 (18:47 +0000)]
Merge #1898
1898: Drive by lints r=kjeremy a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Jeremy Kolb [Mon, 23 Sep 2019 18:38:05 +0000 (14:38 -0400)]
Revert Self
bors[bot] [Mon, 23 Sep 2019 18:36:45 +0000 (18:36 +0000)]
Merge #1899
1899: Upgrade Chalk r=flodiebold a=flodiebold
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Mon, 23 Sep 2019 18:33:47 +0000 (20:33 +0200)]
Upgrade Chalk
kjeremy [Mon, 23 Sep 2019 18:31:30 +0000 (14:31 -0400)]
Drive by lints
bors[bot] [Mon, 23 Sep 2019 16:57:21 +0000 (16:57 +0000)]
Merge #1897
1897: Split off path expression inference code into submodule r=matklad a=flodiebold
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Florian Diebold [Mon, 23 Sep 2019 16:53:52 +0000 (18:53 +0200)]
Split off path expression inference code into submodule
bors[bot] [Sun, 22 Sep 2019 22:01:38 +0000 (22:01 +0000)]
Merge #1895
1895: Handle associated type shorthand (`T::Item`) (Second attempt) r=flodiebold a=flodiebold
This is only allowed for generic parameters (including `Self` in traits), and
special care needs to be taken to not run into cycles while resolving it,
because we use the where clauses of the generic parameter to find candidates for
the trait containing the associated type, but the where clauses may themselves
contain instances of short-hand associated types.
In some cases this is even fine, e.g. we might have `T: Trait<U::Item>, U:
Iterator`. If there is a cycle, we'll currently panic, which isn't great, but
better than overflowing the stack...
Co-authored-by: Florian Diebold <flodiebold@gmail.com>
bors[bot] [Sun, 22 Sep 2019 20:48:41 +0000 (20:48 +0000)]
Merge #1896
1896: remove obsolete TOOD r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 22 Sep 2019 20:43:37 +0000 (23:43 +0300)]
remove obsolete TOOD
I have no idea what I've meant to fix here :-(
Aleksey Kladov [Sun, 22 Sep 2019 20:43:23 +0000 (23:43 +0300)]
test for TOODs as well
bors[bot] [Sun, 22 Sep 2019 20:40:40 +0000 (20:40 +0000)]
Merge #1885
1885: Suspicious line endings r=matklad a=kjeremy
I'm skeptical of this change but cargo format keeps bugging me about it.
Co-authored-by: kjeremy <kjeremy@gmail.com>
Aleksey Kladov [Sun, 22 Sep 2019 20:39:29 +0000 (23:39 +0300)]
minor cleanup
Florian Diebold [Sun, 22 Sep 2019 18:08:46 +0000 (20:08 +0200)]
Handle projection types from Chalk
Florian Diebold [Sun, 22 Sep 2019 18:01:12 +0000 (20:01 +0200)]
Handle associated type shorthand (`T::Item`)
This is only allowed for generic parameters (including `Self` in traits), and
special care needs to be taken to not run into cycles while resolving it,
because we use the where clauses of the generic parameter to find candidates for
the trait containing the associated type, but the where clauses may themselves
contain instances of short-hand associated types.
In some cases this is even fine, e.g. we might have `T: Trait<U::Item>, U:
Iterator`. If there is a cycle, we'll currently panic, which isn't great, but
better than overflowing the stack...
bors[bot] [Sat, 21 Sep 2019 11:33:41 +0000 (11:33 +0000)]
Merge #1891
1891: Support open source version of vscode as well r=matklad a=jens1o
This patch adds support for https://github.com/VSCodium/vscodium - an truly open source version of vscode.
Co-authored-by: Jens Hausdorf <mail@jens-hausdorf.de>
Jens Hausdorf [Sat, 21 Sep 2019 08:24:41 +0000 (10:24 +0200)]
Support open source version of vscode as well
bors[bot] [Fri, 20 Sep 2019 20:38:23 +0000 (20:38 +0000)]
Merge #1890
1890: Support loop as argument r=matklad a=kjeremy
Fixes #1839
Co-authored-by: kjeremy <kjeremy@gmail.com>
kjeremy [Fri, 20 Sep 2019 20:35:29 +0000 (16:35 -0400)]
Support loop as argument
bors[bot] [Fri, 20 Sep 2019 18:21:18 +0000 (18:21 +0000)]
Merge #1888
1888: allow compiling ra_ide_api on wasm r=matklad a=matklad
bors r+
this is from #1746
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Fri, 20 Sep 2019 17:38:16 +0000 (20:38 +0300)]
allow compiling ra_ide_api on wasm
bors[bot] [Fri, 20 Sep 2019 16:06:58 +0000 (16:06 +0000)]
Merge #1886
1886: Simplify match arm r=matklad a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
kjeremy [Fri, 20 Sep 2019 16:03:25 +0000 (12:03 -0400)]
Simplify match arm
kjeremy [Fri, 20 Sep 2019 15:55:59 +0000 (11:55 -0400)]
Suspicious line endings
bors[bot] [Fri, 20 Sep 2019 15:54:01 +0000 (15:54 +0000)]
Merge #1884
1884: Add indexing to record_field_pat r=matklad a=kjeremy
Fixes #1870
Co-authored-by: kjeremy <kjeremy@gmail.com>
kjeremy [Fri, 20 Sep 2019 15:49:45 +0000 (11:49 -0400)]
Apply suggestion
bors[bot] [Fri, 20 Sep 2019 15:45:58 +0000 (15:45 +0000)]
Merge #1883
1883: Fix path attribute causing false "unresolved module" error for submodules r=matklad a=gfreezy
fixed #1880
Co-authored-by: gfreezy <gfreezy@gmail.com>