aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Implement autoderef using the Deref traitFlorian Diebold2019-06-1511-47/+152
| | | | - add support for other lang item targets, since we need the Deref lang item
* Add basic infrastructure for assoc type projectionFlorian Diebold2019-06-158-21/+189
|
* Add test for DerefFlorian Diebold2019-06-151-0/+29
|
* re-enable backtraces on panicAleksey Kladov2019-06-151-2/+1
|
* Merge #1404bors[bot]2019-06-1520-72/+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]>
| * CleanupMuhammad Mominul Huque2019-06-151-1/+1
| |
| * Fix a doc testMuhammad Mominul Huque2019-06-151-2/+3
| |
| * cargo formatMuhammad Mominul Huque2019-06-154-12/+4
| |
| * Get rid of failure: ra_batch ra_cliMuhammad Mominul Huque2019-06-156-11/+7
| |
| * Get rid of failure: ra_lsp_server & ra_project_modelMuhammad Mominul Huque2019-06-149-33/+32
| |
| * Get rid of failure: gen_lsp_serverMuhammad Mominul Huque2019-06-146-20/+21
| |
* | Merge #1403bors[bot]2019-06-141-0/+5
|\ \ | |/ |/| | | | | | | | | | | | | 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]>
| * Add alloc -> core dependencyFlorian Diebold2019-06-131-0/+5
| |
* | Temp fix for slow onEnter issueAleksey Kladov2019-06-131-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!
* check for cancellation when executing queriesAleksey Kladov2019-06-125-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 #1393bors[bot]2019-06-127-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 typecsmoe2019-06-127-6/+53
| |
* | Merge #1382bors[bot]2019-06-129-11/+48
|\ \ | | | | | | | | | | | | | | | | | | | | | 1382: use salsa's LRU for syntax trees r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | make LRU cache configurableAleksey Kladov2019-06-125-10/+37
| | |
| * | make LRU_CAP configurable for batch dbAleksey Kladov2019-06-123-4/+11
| | |
| * | use salsa's LRU for syntax treesAleksey Kladov2019-06-124-4/+7
| | |
* | | Merge #1394bors[bot]2019-06-111-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 itemsShotaro Yamada2019-06-111-6/+23
| |/
* | move docs under code modelAleksey Kladov2019-06-116-14/+10
| |
* | fix compilationAleksey Kladov2019-06-112-5/+5
| |
* | minor formattingAleksey Kladov2019-06-111-4/+0
| |
* | remove unneded From(..) implAleksey Kladov2019-06-114-37/+21
| |
* | move source to a seaparate fileAleksey Kladov2019-06-113-121/+125
| |
* | remove inherent source implsAleksey Kladov2019-06-1115-67/+22
| |
* | use Source for module, part 2Aleksey Kladov2019-06-113-8/+8
| |
* | use Source for module, part 1Aleksey Kladov2019-06-117-27/+23
| |
* | use Source for StructFieldAleksey Kladov2019-06-115-10/+17
| |
* | use Source for MacroDefAleksey Kladov2019-06-114-13/+18
| |
* | use Source for impl blockAleksey Kladov2019-06-115-17/+20
| |
* | use Source for TraitAleksey Kladov2019-06-117-39/+28
| |
* | simplifyAleksey Kladov2019-06-111-5/+5
| |
* | use Source for TypeAliasAleksey Kladov2019-06-117-38/+22
| |
* | reduce duplication in hoverAleksey Kladov2019-06-111-56/+24
| |
* | use Source for statics and constsAleksey Kladov2019-06-116-56/+41
| |
* | use Source for FunctionAleksey Kladov2019-06-1110-28/+30
| |
* | Introduce HasSource traitAleksey Kladov2019-06-113-29/+45
| |
* | use Source moreAleksey Kladov2019-06-117-64/+39
| |
* | introduce Source structAleksey Kladov2019-06-116-26/+36
|/
* Merge #1391bors[bot]2019-06-106-8/+7
|\ | | | | | | | | | | | | | | 1391: rename tools -> ra_tools r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * rename tools -> ra_toolsAleksey Kladov2019-06-106-8/+7
| | | | | | | | | | This should help with caching on CI I hope (see .travis.yml before_cache)
* | use single version of either in hirAleksey Kladov2019-06-106-67/+73
|/
* Simpliy hover on ast::nameEdwin Cheng2019-06-102-17/+35
|
* Use classify_name_ref in hoverEdwin Cheng2019-06-103-14/+131
|
* Merge #1388bors[bot]2019-06-096-121/+323
|\ | | | | | | | | | | | | | | | | | | 1388: Remove NavigationTarget::node and fill docs and description in during construction r=matklad a=edwin0cheng Related dissused: https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/MBE.20discussion/near/167105559 Co-authored-by: Edwin Cheng <[email protected]>
| * Remove incorrect FIXMEEdwin Cheng2019-06-091-2/+0
| |