aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | DocsAleksey Kladov2019-12-201-3/+6
| | | |
| * | | Move ModuleScope to a new moduleAleksey Kladov2019-12-205-108/+114
| | | |
| * | | Add item_scope moduleAleksey Kladov2019-12-202-0/+2
| | | |
* | | | Merge #2623bors[bot]2019-12-205-48/+114
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2623: Add support macros in impl blocks r=matklad a=edwin0cheng This PR add support for macros in impl blocks, which reuse `Expander` for macro expansion. see also: #2459 Co-authored-by: Edwin Cheng <[email protected]>
| * | | | Add support macros in impl blocksEdwin Cheng2019-12-205-48/+114
| |/ / /
* | | | Merge #2622bors[bot]2019-12-201-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 2622: Simplify r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | SimplifyAleksey Kladov2019-12-201-1/+1
| | | |
* | | | Merge #2620bors[bot]2019-12-203-35/+40
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 2620: Update packages r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]>
| * | | Protect against null as revealed by `npm test`kjeremy2019-12-201-2/+7
| | | |
| * | | Update to latest packageskjeremy2019-12-202-33/+33
|/ / /
* | | Merge #2617bors[bot]2019-12-202-59/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2617: Remove index resolving from hover r=matklad a=kjeremy I have left in `HoverResult`'s support for multiple entries because we may still want that at some point. Per https://github.com/rust-analyzer/rust-analyzer/issues/2542#issuecomment-565238142 Co-authored-by: kjeremy <[email protected]>
| * | | Remove unused importskjeremy2019-12-201-1/+1
| | | |
| * | | Remove the index resolution from hoverkjeremy2019-12-201-58/+22
| | | | | | | | | | | | | | | | We are reasonably precise now to do this.
* | | | Merge #2619bors[bot]2019-12-203-5/+48
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2619: Coerce closures to fn pointers r=flodiebold a=flodiebold E.g. `let x: fn(A) -> B = |x| { y };` Co-authored-by: Florian Diebold <[email protected]>
| * | | | Coerce closures to fn pointersFlorian Diebold2019-12-203-5/+48
|/ / / / | | | | | | | | | | | | E.g. `let x: fn(A) -> B = |x| { y };`
* | | | Merge #2618bors[bot]2019-12-203-2/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2618: Fix coercion of last expression in function body r=flodiebold a=flodiebold Co-authored-by: Florian Diebold <[email protected]>
| * | | | Fix coercion of last expression in function bodyFlorian Diebold2019-12-203-2/+18
|/ / / /
* | | | Merge #2616bors[bot]2019-12-208-6/+113
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 2616: Handle closure return types r=flodiebold a=flodiebold Fixes #2547. Co-authored-by: Florian Diebold <[email protected]>
| * | | Handle closure return typesFlorian Diebold2019-12-208-6/+113
|/ / / | | | | | | | | | Fixes #2547.
* | | Merge #2615bors[bot]2019-12-203-6/+41
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2615: Fix wrong path parsing for macro call in pattern position r=edwin0cheng a=edwin0cheng The parser incorrectly insert a `PathPat` inside `MacroCall` syntax node when parsing inside a pattern position, for example : ```rust let foo!() = 0; ``` become: ``` MACRO_CALL@[60; 66) PATH_PAT@[60; 63) <------------- It should not exist PATH@[60; 63) PATH_SEGMENT@[60; 63) NAME_REF@[60; 63) IDENT@[60; 63) "foo" EXCL@[63; 64) "!" TOKEN_TREE@[64; 66) L_PAREN@[64; 65) "(" R_PAREN@[65; 66) ")" ``` This PR fix this bug and add some test to make sure goto-defintion works for macro inside pattern. Co-authored-by: Edwin Cheng <[email protected]>
| * | Fix parser for macro call in pattern positionEdwin Cheng2019-12-203-6/+41
|/ /
* | Merge #2614bors[bot]2019-12-202-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 2614: Clippy cleanup r=matklad a=kjeremy Just a few tweaks from the latest clippy. There are a lot more but we should probably tweak our settings. Co-authored-by: kjeremy <[email protected]>
| * | Use unwrap_or_defaultkjeremy2019-12-201-2/+2
| | |
| * | Remove useless clonekjeremy2019-12-201-1/+1
| | |
* | | Merge #2592bors[bot]2019-12-205-5/+61
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2592: Add std::ops::Index support for infering r=edwin0cheng a=edwin0cheng see also #2534 Seem like this can't fix #2534 for this case: ```rust fn foo3(bar: [usize; 2]) { let baz = bar[1]; // <--- baz is still unknown ? println!("{}", baz); } ``` Co-authored-by: Edwin Cheng <[email protected]>
| * | | Use fill instread of for loopEdwin Cheng2019-12-191-5/+3
| | | |
| * | | Use build_for_defEdwin Cheng2019-12-191-1/+1
| | | |
| * | | Add std::ops::Index support for inferingEdwin Cheng2019-12-195-5/+63
| | | |
* | | | Merge #2613bors[bot]2019-12-201-9/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 2613: Remove code that never was alive? r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Remove code that never was alive?Aleksey Kladov2019-12-201-9/+2
|/ / /
* | | Merge #2612bors[bot]2019-12-206-36/+68
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2612: Fix resolve for field init shorthand r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Fix resolve for field init shorthandAleksey Kladov2019-12-206-36/+68
|/ / /
* | | Merge #2611bors[bot]2019-12-203-6/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2611: Fix highlighting for field init shorthand r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Fix highlighting for field init shorthandAleksey Kladov2019-12-202-5/+4
| | | |
| * | | Improve highlighting testAleksey Kladov2019-12-203-2/+7
|/ / /
* | | Merge #2610bors[bot]2019-12-202-87/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2610: Reduce copy-paste some more r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Reduce copy-paste some moreAleksey Kladov2019-12-202-87/+9
| | | |
* | | | Merge #2609bors[bot]2019-12-205-198/+61
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2609: Use generic ItemLoc for impls r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Use generic ItemLoc for implsAleksey Kladov2019-12-205-28/+10
| | | |
| * | | Remove more copy-pasteAleksey Kladov2019-12-201-121/+29
| | | |
| * | | Remove more copy-pasteAleksey Kladov2019-12-201-57/+30
|/ / /
* | | Merge #2608bors[bot]2019-12-2013-72/+130
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2608: Support for nested traits r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Support for nested traitsAleksey Kladov2019-12-205-9/+18
| | | |
| * | | Support for nested statics, consts and type aliasesAleksey Kladov2019-12-203-5/+18
| | | |
| * | | Support for nested ADTAleksey Kladov2019-12-205-22/+35
| | | |
| * | | Introduce `ContainerId`Aleksey Kladov2019-12-207-18/+41
| | | |
| * | | Rename ContainerId -> AssocContainerIdAleksey Kladov2019-12-2011-51/+51
| | | |
* | | | Merge #2607bors[bot]2019-12-206-43/+107
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2607: More ground work for local defs r=matklad a=matklad bors r+ Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Rebuild ra_lsp_server and nest helper function.Aleksey Kladov2019-12-201-37/+37
| | | | | | | | | | | | | | | | Completion now works again, so there's no need not to nest
| * | | Handle nested declrations in from_sourceAleksey Kladov2019-12-201-7/+16
| | | |