aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* reduce visibilityAleksey Kladov2019-10-294-20/+9
|
* remove unused queryAleksey Kladov2019-10-292-15/+5
|
* less genericsAleksey Kladov2019-10-292-6/+9
|
* flatten hir_expandAleksey Kladov2019-10-295-261/+243
|
* make file id repr private againAleksey Kladov2019-10-291-12/+17
|
* rename hir_def -> hir_expandAleksey Kladov2019-10-2910-7/+7
|
* move expansion-related code to a separate crateAleksey Kladov2019-10-2911-303/+344
|
* Merge #2112bors[bot]2019-10-2912-131/+181
|\ | | | | | | | | | | | | | | 2112: start ra_hir_def crate r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * start ra_hir_def crateAleksey Kladov2019-10-2912-131/+181
|/
* Merge #2111bors[bot]2019-10-281-6/+37
|\ | | | | | | | | | | | | | | 2111: Fix autoimport not choosing the deepest use tree in some situations r=matklad a=flodiebold Co-authored-by: Florian Diebold <[email protected]>
| * Fix autoimport not choosing the deepest use tree in some situationsFlorian Diebold2019-10-281-6/+37
| |
* | Merge #2110bors[bot]2019-10-281-23/+23
|\ \ | |/ |/| | | | | | | | | | | 2110: weaken requirements of AstDef r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * weaken requirements of AstDefAleksey Kladov2019-10-281-23/+23
|/
* Merge #2108bors[bot]2019-10-284-49/+151
|\ | | | | | | | | | | | | | | 2108: fix parsing of for loops inside expressions r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * fix parsing of for loops inside expressionsAleksey Kladov2019-10-284-49/+151
|/ | | | closes #2051
* Merge #2097bors[bot]2019-10-281-8/+32
|\ | | | | | | | | | | | | | | | | | | 2097: Be more precise with function signatures r=matklad a=kjeremy Finds the closest call expr. Fixes #2093 Co-authored-by: Jeremy Kolb <[email protected]>
| * Be more precise with function signaturesJeremy Kolb2019-10-271-8/+32
| | | | | | | | Fixes #2093
* | Merge #2105bors[bot]2019-10-281-40/+40
|\ \ | | | | | | | | | | | | | | | | | | | | | 2105: Update crates r=kjeremy a=kjeremy Co-authored-by: Jeremy Kolb <[email protected]>
| * | Update cratesJeremy Kolb2019-10-281-40/+40
| | |
* | | Merge #2101bors[bot]2019-10-272-4/+27
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2101: Preserve whitespace at the end of doc comments r=matklad a=kjeremy Whitespace can have special meaning in markdown. For instance ending a line with three spaces will render a new line. Note that this behavior diverges from RLS. Fixes #1997 Co-authored-by: Jeremy Kolb <[email protected]>
| * | Preserve whitespace at the end of doc commentsJeremy Kolb2019-10-272-4/+27
|/ / | | | | | | | | | | | | | | Whitespace can have special meaning in markdown. For instance ending a line with three spaces will render a new line. Note that this behavior diverges from RLS. Fixes #1997
* | Merge #2099bors[bot]2019-10-271-4/+35
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2099: Fix panic on raw string assist r=matklad a=aee11 Strings that do not contain two quotation marks would cause a slice indexing panic because `find_usual_string_range` would return a range that only contained a single quotation mark. Panic example: ``` fn main() { let s = "<|> } ``` I noticed a lot of panics from the `make_raw_string` assist while working on another issue today. Co-authored-by: Alexander Elís Ebenesersson <[email protected]>
| * | Fix panic on raw string assistAlexander Elís Ebenesersson2019-10-271-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | Strings that do not contain two quotation marks would cause a slice indexing panic because code was assuming `find_usual_string_range` would return a string with two quotes, but it would incorrectly also return text ranges containing only a single quote.
* | | Merge #2096bors[bot]2019-10-272-82/+37
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2096: further simplify assists r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | further simplify assistsAleksey Kladov2019-10-272-82/+37
|/ / /
* | | Merge #2095bors[bot]2019-10-274-22/+48
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2095: move all assists to use generated docs r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | move all assists to use generated docsAleksey Kladov2019-10-274-22/+48
| | | |
* | | | Merge #2094bors[bot]2019-10-2722-185/+113
|\| | | | |_|/ |/| | | | | | | | | | | | | | | | | 2094: simplify AssistCtx API r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | simplify AssistCtx APIAleksey Kladov2019-10-2722-160/+105
| | | | | | | | | | | | | | | We never actually use ability to create multiple actions out of a single context
| * | simplifyAleksey Kladov2019-10-271-30/+13
|/ /
* | Merge #2090bors[bot]2019-10-272-101/+101
|\ \ | | | | | | | | | | | | | | | | | | | | | 2090: move public stuff to top r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | move public stuff to topAleksey Kladov2019-10-271-26/+26
| | |
| * | rename auto_import -> add_importAleksey Kladov2019-10-272-75/+75
| |/ | | | | | | We are long way from auto imports at the moment
* | Merge #2091bors[bot]2019-10-274-12/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | 2091: use new api for flip_trait_bound assist r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | use new api for flip_trait_bound assistAleksey Kladov2019-10-274-12/+58
|/ /
* | Add tests for the trait bound flip assist.Wesley Norris2019-10-271-0/+76
| | | | | | | | Co-authored-by: vlthr <[email protected]>
* | Fixes #2054.Wesley Norris2019-10-272-0/+34
| | | | | | | | This adds the `flip_trait_bound` assist which allows for the swapping of two trait bounds in a trait list that are next to each other.
* | Merge #2088bors[bot]2019-10-271-10/+72
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 2088: Extend selection in trait bound extends to plus r=matklad a=aee11 When multiple traits bounds are present, expanded selection from a single trait bound will include the nearest plus sign (and whitespace after) before including the whole trait bound. Fixes: #2055 Co-authored-by: Alexander Elís Ebenesersson <[email protected]>
| * extend selection in trait bound extends to plusAlexander Elís Ebenesersson2019-10-271-10/+72
|/ | | | | | When multiple traits bounds are present, expanded selection from a single trait bound will include the nearest plus sign (and whitespace after) before including the whole trait bound.
* Merge #2087bors[bot]2019-10-272-14/+4
|\ | | | | | | | | | | | | | | 2087: remove relative_path_buf workaround r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * remove relative_path_buf workaroundAleksey Kladov2019-10-272-14/+4
| | | | | | | | The upstream problem was fixed with the change to 1.0
* | Merge #2086bors[bot]2019-10-277-183/+359
|\| | | | | | | | | | | | | | | 2086: document almost all assists r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * document almost all assistsAleksey Kladov2019-10-277-183/+359
|/
* Merge #2085bors[bot]2019-10-271-1/+1
|\ | | | | | | | | | | | | | | 2085: lightly document assist_ctx module r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * lightly document assist_ctx moduleAleksey Kladov2019-10-271-1/+1
| |
* | Merge #2084bors[bot]2019-10-2720-72/+78
|\| | | | | | | | | | | | | | | 2084: use more consistent naming r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * use more consistent namingAleksey Kladov2019-10-2717-18/+18
| | | | | | | | | | I think this is the first time I use global rename for rust-analyzer itself :-)
| * extract assist helper for getting a specific tokenAleksey Kladov2019-10-274-15/+12
| |
| * raw string assists work in macrosAleksey Kladov2019-10-271-49/+58
|/
* Merge #2083bors[bot]2019-10-276-90/+279
|\ | | | | | | | | | | | | | | 2083: document some more assists r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>