aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge #1396bors[bot]2019-06-121-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 againzjy2019-06-121-4/+4
|/ / /
* | | 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
| | |
* | | Merge #1395bors[bot]2019-06-1125-449/+324
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 1395: move docs under code model r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | 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 #1392bors[bot]2019-06-111-5/+5
|\ \ | |/ |/| | | | | | | | | | | 1392: fixed links r=matklad a=zbelial This PR fixed some links in architecture.md. Co-authored-by: zjy <[email protected]>
| * fixed linkszjy2019-06-111-5/+5
|/
* Merge #1391bors[bot]2019-06-108-27/+25
|\ | | | | | | | | | | | | | | 1391: rename tools -> ra_tools r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * rename tools -> ra_toolsAleksey Kladov2019-06-108-27/+25
| | | | | | | | | | This should help with caching on CI I hope (see .travis.yml before_cache)
* | Merge #1390bors[bot]2019-06-107-68/+73
|\ \ | |/ |/| | | | | | | | | | | 1390: use single version of either in hir r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * use single version of either in hirAleksey Kladov2019-06-107-68/+73
|/
* Merge #1389bors[bot]2019-06-103-30/+165
|\ | | | | | | | | | | | | | | 1389: Refactor hover to not depend on nav target r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
| * 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
| |
| * FormatingEdwin Cheng2019-06-091-2/+1
| |
| * Use &str instread of Option<String>Edwin Cheng2019-06-092-5/+5
| |
| * Rename "string" to "buf"Edwin Cheng2019-06-091-8/+8
| |
| * Rename Description to ShortLabelEdwin Cheng2019-06-095-133/+133
| |
| * Make description_from_symbol depends on symbolEdwin Cheng2019-06-091-5/+5
| |
| * Rename description funcsEdwin Cheng2019-06-091-11/+11
| |
| * Change docs and description to getter methodEdwin Cheng2019-06-092-4/+11
| |
| * Add display::DescriptionEdwin Cheng2019-06-094-67/+163
| |
| * Construct doc individuallyEdwin Cheng2019-06-082-45/+141
| |
| * Remove node function in NavTargetEdwin Cheng2019-06-085-80/+86
| |
* | Merge #1386bors[bot]2019-06-089-88/+97
|\ \ | |/ |/| | | | | | | | | | | 1386: Remove one of the two different algorithms for name resolution of macros :D r=edwin0cheng a=matklad r? @edwin0cheng Co-authored-by: Aleksey Kladov <[email protected]>
| * remove some hacks from nameresolution for macrosAleksey Kladov2019-06-087-66/+68
| |
| * somewhat better nameAleksey Kladov2019-06-084-22/+29
|/
* Merge #1385bors[bot]2019-06-0811-128/+109
|\ | | | | | | | | | | | | | | 1385: Refactor and queryfy documentation handling in HIR r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>