Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add test for autoderef infinite recursion | Florian Diebold | 2019-06-16 | 1 | -0/+25 |
| | |||||
* | Simplifications / cleanup from review | Florian Diebold | 2019-06-16 | 7 | -38/+31 |
| | |||||
* | Some more cleanup | Florian Diebold | 2019-06-15 | 1 | -4/+4 |
| | |||||
* | Check that Deref has the right number of parameters | Florian Diebold | 2019-06-15 | 1 | -2/+7 |
| | |||||
* | Somewhat handle variables in the derefed type, and add another test | Florian Diebold | 2019-06-15 | 3 | -5/+61 |
| | |||||
* | Implement * operation using Deref trait | Florian Diebold | 2019-06-15 | 1 | -3/+5 |
| | |||||
* | Implement autoderef using the Deref trait | Florian Diebold | 2019-06-15 | 11 | -47/+152 |
| | | | | - add support for other lang item targets, since we need the Deref lang item | ||||
* | Add basic infrastructure for assoc type projection | Florian Diebold | 2019-06-15 | 9 | -21/+190 |
| | |||||
* | Add test for Deref | Florian Diebold | 2019-06-15 | 1 | -0/+29 |
| | |||||
* | Merge #1405 | bors[bot] | 2019-06-15 | 1 | -2/+1 |
|\ | | | | | | | | | | | | | | | 1405: re-enable backtraces on panic r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | re-enable backtraces on panic | Aleksey Kladov | 2019-06-15 | 1 | -2/+1 |
|/ | |||||
* | Merge #1404 | bors[bot] | 2019-06-15 | 21 | -78/+61 |
|\ | | | | | | | | | | | | | | | | | | | 1404: Fight down failures! r=matklad a=mominul issue #1400 Now only `ra_tools` crate depends on `failure`, should I also fight those? :grin: Co-authored-by: Muhammad Mominul Huque <[email protected]> | ||||
| * | Cleanup | Muhammad Mominul Huque | 2019-06-15 | 1 | -1/+1 |
| | | |||||
| * | Fix a doc test | Muhammad Mominul Huque | 2019-06-15 | 1 | -2/+3 |
| | | |||||
| * | cargo format | Muhammad Mominul Huque | 2019-06-15 | 4 | -12/+4 |
| | | |||||
| * | Get rid of failure: ra_batch ra_cli | Muhammad Mominul Huque | 2019-06-15 | 7 | -13/+7 |
| | | |||||
| * | Get rid of failure: ra_lsp_server & ra_project_model | Muhammad Mominul Huque | 2019-06-14 | 10 | -36/+32 |
| | | |||||
| * | Get rid of failure: gen_lsp_server | Muhammad Mominul Huque | 2019-06-14 | 7 | -21/+21 |
| | | |||||
* | | Merge #1403 | bors[bot] | 2019-06-14 | 2 | -1/+6 |
|\ \ | |/ |/| | | | | | | | | | | | | | 1403: Add alloc -> core dependency r=matklad a=flodiebold Also a small fix for the ra-emacs-lsp company fix. Co-authored-by: Florian Diebold <[email protected]> Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | ra-emacs-lsp: Fix company-lsp snippet handler override | Florian Diebold | 2019-06-14 | 1 | -1/+1 |
| | | |||||
| * | Add alloc -> core dependency | Florian Diebold | 2019-06-13 | 1 | -0/+5 |
| | | |||||
* | | Merge #1401 | bors[bot] | 2019-06-13 | 1 | -1/+2 |
|\ \ | |/ |/| | | | | | | | | | | | 1401: Temp fix for slow onEnter issue r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Temp fix for slow onEnter issue | Aleksey Kladov | 2019-06-13 | 1 | -1/+2 |
|/ | | | | | | | | | | The issue was windows specific -- cancellation caused collection of bracktraces at some point, and that was slow on windows. The proper fix here is to make sure that we don't collect bracktraces unnecessary (which we currently do due to failure), but, as a temporary fix, let's just not force their collection in the first place! | ||||
* | Merge #1398 | bors[bot] | 2019-06-12 | 5 | -6/+6 |
|\ | | | | | | | | | | | | | | | 1398: check for cancellation when executing queries r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | check for cancellation when executing queries | Aleksey Kladov | 2019-06-12 | 5 | -6/+6 |
|/ | | | | | | | Note that we can't just remove CheckCanceled trait altogether: sometimes it's useful to check for cancellation while the query is running! We do this, for example, in the name resolution fixed-point loop. | ||||
* | Merge #1393 | bors[bot] | 2019-06-12 | 7 | -6/+53 |
|\ | | | | | | | | | | | | | | | | | 1393: fix: support existential type r=matklad a=csmoe Closes https://github.com/rust-analyzer/rust-analyzer/issues/1387 r? @matklad Co-authored-by: csmoe <[email protected]> | ||||
| * | fix: support existential type | csmoe | 2019-06-12 | 7 | -6/+53 |
| | | |||||
* | | Merge #1382 | bors[bot] | 2019-06-12 | 13 | -15/+63 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 1382: use salsa's LRU for syntax trees r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | make LRU cache configurable | Aleksey Kladov | 2019-06-12 | 8 | -11/+48 |
| | | | |||||
| * | | make LRU_CAP configurable for batch db | Aleksey Kladov | 2019-06-12 | 3 | -4/+11 |
| | | | |||||
| * | | use salsa's LRU for syntax trees | Aleksey Kladov | 2019-06-12 | 5 | -7/+11 |
| | | | |||||
* | | | Merge #1396 | bors[bot] | 2019-06-12 | 1 | -4/+4 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1396: fixed wrong links again r=matklad a=zbelial Hi Sorry about that I didn't check all links in my previous PR and two of them were incorrectly fixed. I think they are all proporly fixed this time :) Co-authored-by: zjy <[email protected]> | ||||
| * | | | fixed wrong links again | zjy | 2019-06-12 | 1 | -4/+4 |
|/ / / | |||||
* | | | Merge #1394 | bors[bot] | 2019-06-11 | 1 | -6/+23 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1394: Fix hover for pat that shadows items r=matklad a=sinkuu ```rust fn x() {} fn y() { let x = 0i32; x; // hover on `x` is expected to be `i32`, but the actual result was `fn x()` } ``` This was because: if [`res.is_empty()`](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L205), it fallbacks to "index based approach" and adds `fn x()` to `res`, which makes [`res.extend(type_of)` below](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L260-L266) not happen. Co-authored-by: Shotaro Yamada <[email protected]> | ||||
| * | | Fix hover for pat that shadows items | Shotaro Yamada | 2019-06-11 | 1 | -6/+23 |
| | | | |||||
* | | | Merge #1395 | bors[bot] | 2019-06-11 | 25 | -449/+324 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | 1395: move docs under code model r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | move docs under code model | Aleksey Kladov | 2019-06-11 | 6 | -14/+10 |
| | | | |||||
| * | | fix compilation | Aleksey Kladov | 2019-06-11 | 2 | -5/+5 |
| | | | |||||
| * | | minor formatting | Aleksey Kladov | 2019-06-11 | 1 | -4/+0 |
| | | | |||||
| * | | remove unneded From(..) impl | Aleksey Kladov | 2019-06-11 | 4 | -37/+21 |
| | | | |||||
| * | | move source to a seaparate file | Aleksey Kladov | 2019-06-11 | 3 | -121/+125 |
| | | | |||||
| * | | remove inherent source impls | Aleksey Kladov | 2019-06-11 | 15 | -67/+22 |
| | | | |||||
| * | | use Source for module, part 2 | Aleksey Kladov | 2019-06-11 | 3 | -8/+8 |
| | | | |||||
| * | | use Source for module, part 1 | Aleksey Kladov | 2019-06-11 | 7 | -27/+23 |
| | | | |||||
| * | | use Source for StructField | Aleksey Kladov | 2019-06-11 | 5 | -10/+17 |
| | | | |||||
| * | | use Source for MacroDef | Aleksey Kladov | 2019-06-11 | 4 | -13/+18 |
| | | | |||||
| * | | use Source for impl block | Aleksey Kladov | 2019-06-11 | 5 | -17/+20 |
| | | | |||||
| * | | use Source for Trait | Aleksey Kladov | 2019-06-11 | 7 | -39/+28 |
| | | | |||||
| * | | simplify | Aleksey Kladov | 2019-06-11 | 1 | -5/+5 |
| | | | |||||
| * | | use Source for TypeAlias | Aleksey Kladov | 2019-06-11 | 7 | -38/+22 |
| | | |