aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* Check more carefully for cases where a rename can't be doneDanny Zhu2021-04-252-6/+105
| | | | | | | | | | | Attempting to rename an element of a tuple field would previously replace the type with the new name, which doesn't make sense; now it fails instead. The check is done in both `prepare_rename` and `rename` so that the case is caught before the user is prompted for a new name. Some other existing failure cases are also now additionally checked in `prepare_rename`.
* Split out merge_imports module from helpers::insert_useLukas Wirth2021-04-248-329/+344
|
* fix: correct version string to contain hash, build date and channelAleksey Kladov2021-04-241-21/+41
|
*-. Merge #8591 #8638bors[bot]2021-04-2315-355/+331
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8591: Remove SyntaxRewriter usage in insert_use in favor of mutable syntax trees r=matklad a=Veykril Unfortunately changing `insert_use` to not use `SyntaxRewriter` creates a lot of changes since so much relies on that. But on the other hand this should be the biggest usage of `SyntaxRewriter` I believe. 8638: Remove SyntaxRewriter::from_fn r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| | * Remove SyntaxRewriter::from_fnLukas Wirth2021-04-233-31/+24
| |/ |/|
* | Simplify highlight token match guardsLukas Wirth2021-04-232-102/+92
| |
* | Sort HlMod variants and ALL constLukas Wirth2021-04-236-46/+45
| |
* | Tag `yield` and `await` as ControlFlow in semantic highlightingLukas Wirth2021-04-232-5/+13
| |
* | Merge #8317bors[bot]2021-04-235-7/+636
|\ \ | | | | | | | | | | | | | | | | | | | | | 8317: Convert tuple struct to named struct assist r=Veykril a=unexge Closes https://github.com/rust-analyzer/rust-analyzer/issues/8192 Co-authored-by: unexge <[email protected]>
| * | Add missing test case for "Convert to named struct" assistunexge2021-04-231-0/+40
| | |
| * | Stop iterating reference after made an edit in "Convert to named struct" assistunexge2021-04-231-2/+47
| | |
| * | Move reference editing logic into own function to make error handling more ↵unexge2021-04-221-68/+61
| | | | | | | | | | | | ease in "Convert to named struct" assist
| * | Use multiple loops instead of `Iterator::chain` in `FindUsages`unexge2021-04-211-13/+22
| | |
| * | Add multi file test for "Convert to named struct" assistunexge2021-04-211-0/+33
| | |
| * | Remove `unwrap`s in "Convert to named struct" assistunexge2021-04-211-9/+19
| | |
| * | Add larger example for "Convert to named struct" assistunexge2021-04-212-8/+60
| | |
| * | Fix incorrectly replacing method calls in "Convert to named struct" assistunexge2021-04-211-17/+41
| | |
| * | Add convert tuple struct to named struct assistunexge2021-04-045-9/+397
| | |
| * | Allow including `Self` kw references to `FindUsages`unexge2021-04-041-4/+39
| | |
* | | Merge #8628bors[bot]2021-04-221-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8628: minor: Add one more profiling span to add_dep r=lnicola a=lnicola CC #8623 bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | Add one more profiling span to add_depLaurențiu Nicola2021-04-221-0/+1
| | | |
* | | | Merge #8627bors[bot]2021-04-223-3/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8627: Add profiling spans under cargo_to_crate_graph r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | Add profiling spans under cargo_to_crate_graphLaurențiu Nicola2021-04-223-3/+6
| | | |
* | | | Merge #8620bors[bot]2021-04-221-14/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8620: Remove unnecessary braces for extracted block expression r=Veykril a=brandondong This change addresses the first bullet point of https://github.com/rust-analyzer/rust-analyzer/issues/7839. Specifically, when extracting block expressions, remove the unneeded extra braces inside the generated function. Co-authored-by: Brandon <[email protected]>
| * | | | Remove unnecessary braces for extracted block expressionBrandon2021-04-221-14/+22
| | | | |
* | | | | Code review feedback.James Leitch2021-04-213-8/+10
| | | | |
* | | | | Diagnostic Remap Path Prefixes added.James Leitch2021-04-213-36/+41
| | | | |
* | | | | Diagnostic paths attempt to use VSCode's path join behavior before ↵James Leitch2021-04-211-3/+30
| | | | | | | | | | | | | | | | | | | | defaulting to Rust's path join behavior.
* | | | | Merge #8570bors[bot]2021-04-212-22/+47
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8570: Flycheck tries to parse both Cargo and Rustc messages. r=rickvanprim a=rickvanprim This change allows non-Cargo build systems to be used for Flycheck provided they call `rustc` with `--error-format=json` and emit those JSON messages to `stdout`. Co-authored-by: James Leitch <[email protected]>
| * | | | | Code review feedback.James Leitch2021-04-191-15/+16
| | | | | |
| * | | | | Flycheck tries to parse both Cargo and Rustc messages.James Leitch2021-04-192-22/+46
| | | | | |
* | | | | | Merge #8616bors[bot]2021-04-212-4/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8616: minor: Bump deps r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | | Bump chalkLaurențiu Nicola2021-04-211-3/+3
| | | | | | |
| * | | | | | Bump rustc_lexerLaurențiu Nicola2021-04-211-1/+1
| | |_|/ / / | |/| | | |
* / | | | | Remove `ItemTree::all_inner_items`Jonas Schievink2021-04-211-7/+0
|/ / / / /
* | | | | Add failing local items testJonas Schievink2021-04-213-0/+46
| | | | |
* | | | | Add support for fill match arms of boolean valuesComonad2021-04-212-23/+207
| | | | | | | | | | | | | | | | | | | | - Add support for boolean inside tuple
* | | | | Parse outer atttributes for RecordPatFieldLukas Wirth2021-04-213-8/+57
| | | | |
* | | | | fix: no more Registering progress handler for token rustAnalyzer/Indexing ↵Aleksey Kladov2021-04-202-2/+13
| | | | | | | | | | | | | | | | | | | | failed.
* | | | | Merge #8600bors[bot]2021-04-204-65/+327
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8600: fix: no longer get stuck on windows r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | fix: no longer get stuck on windowsAleksey Kladov2021-04-204-65/+327
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | reading both stdout & stderr is a common gotcha, you need to drain them concurrently to avoid deadlocks. Not sure why I didn't do the right thing from the start. Seems like I assumed the stderr is short? That's not the case when cargo spams `compiling xyz` messages
* | | | | Merge #8602bors[bot]2021-04-201-28/+45
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8602: Fix panic in `replace_derive_with_manual_impl` r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Follow testing style guideJonas Schievink2021-04-201-28/+28
| | | | | |
| * | | | | Fix panic in `replace_derive_with_manual_impl`Jonas Schievink2021-04-201-0/+17
| |/ / / /
* / / / / "Inline variable" when on a use of the variableJonas Schievink2021-04-201-38/+185
|/ / / /
| | | * Don't filter equal nodes in reorder assistsLukas Wirth2021-04-212-10/+6
| | | |
| | | * Add cov_marks to insert_use testsLukas Wirth2021-04-207-42/+77
| | | |
| | | * Rewrite extract_struct_from_enum_variant assistLukas Wirth2021-04-201-85/+91
| | | |
| | | * Remove SyntaxRewriter usage in insert_use in favor of tedLukas Wirth2021-04-208-243/+185
| | | |
| | | * Replace SyntaxRewriter usage with ted in reorder_impl assistLukas Wirth2021-04-201-9/+13
| |_|/ |/| |