Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix merge-imports assist for wildcard imports | Piotr Szpetkowski | 2020-03-27 | 1 | -0/+28 | |
| | ||||||
* | Fix assist description | Aleksey Kladov | 2020-03-27 | 1 | -4/+8 | |
| | ||||||
* | Merge #3742 | bors[bot] | 2020-03-27 | 1 | -0/+108 | |
|\ | | | | | | | | | | | | | | | | | | | | | 3742: Replace if with if-let r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Replace if with if-let | Aleksey Kladov | 2020-03-27 | 1 | -0/+108 | |
| | | ||||||
* | | Merge #3741 | bors[bot] | 2020-03-27 | 1 | -1/+1 | |
|\| | | | | | | | | | | | | | | | | | | | | | 3741: More general ctor for ifs r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | More general ctor for ifs | Aleksey Kladov | 2020-03-27 | 1 | -1/+1 | |
| | | ||||||
* | | Merge #3732 | bors[bot] | 2020-03-26 | 1 | -0/+177 | |
|\ \ | |/ |/| | | | | | | | | | | | 3732: Assist: replace unwrap with match r=matklad a=unrealhoang attempt on #3669 Co-authored-by: Unreal Hoang <[email protected]> | |||||
| * | Assist: replace unwrap with match | Unreal Hoang | 2020-03-26 | 1 | -0/+177 | |
| | | ||||||
* | | Get rid of ItemOrMacro | Aleksey Kladov | 2020-03-26 | 1 | -2/+2 | |
| | | ||||||
* | | Fix add visibility false-positive | Aleksey Kladov | 2020-03-25 | 1 | -12/+28 | |
|/ | ||||||
* | Merge #3708 | bors[bot] | 2020-03-24 | 1 | -33/+70 | |
|\ | | | | | | | | | | | | | | | | | | | | | 3708: Generalise syntax rewriting infrastructure to allow removal of nodes r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Generalise syntax rewriting infrastructure to allow removal of nodes | Aleksey Kladov | 2020-03-24 | 1 | -33/+52 | |
| | | ||||||
| * | Add a test | Aleksey Kladov | 2020-03-23 | 1 | -0/+18 | |
| | | ||||||
* | | Merge #3705 | bors[bot] | 2020-03-24 | 1 | -1/+1 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3705: Align naming r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | | Align naming | Aleksey Kladov | 2020-03-24 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge #3700 | bors[bot] | 2020-03-24 | 1 | -45/+45 | |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 3700: fill match arms with empty block rather than unit tuple r=matklad a=JoshMcguigan As requested by @Veetaha in #3689 and #3687, this modifies the fill match arms assist to create match arms as an empty block `{}` rather than a unit tuple `()`. In one test I left one of the pre-existing match arms as a unit tuple, and added a body to another match arm, to demonstrate that the contents of existing match arms persist. Co-authored-by: Josh Mcguigan <[email protected]> | |||||
| * | | fill match arms with empty block rather than unit tuple | Josh Mcguigan | 2020-03-24 | 1 | -45/+45 | |
| | | | ||||||
* | | | Add a test | Kirill Bulatov | 2020-03-24 | 1 | -0/+25 | |
| | | | ||||||
* | | | Use more generic public api | Kirill Bulatov | 2020-03-24 | 2 | -23/+24 | |
| | | | ||||||
* | | | Auto import macros | Kirill Bulatov | 2020-03-24 | 2 | -15/+24 | |
|/ / | ||||||
* | | review comments | Josh Mcguigan | 2020-03-23 | 1 | -16/+108 | |
| | | ||||||
* | | implement fill match arm assist for tuple of enums | Josh Mcguigan | 2020-03-23 | 1 | -14/+149 | |
|/ | ||||||
* | disable invert if assist for if-let to fix #3281 | Josh Mcguigan | 2020-03-21 | 1 | -0/+13 | |
| | ||||||
* | Address nits and suggestions. | Steffen Lyngbaek | 2020-03-19 | 1 | -140/+32 | |
| | | | | | Simplify the logic a lot by removing the check for a placeholder pat. This means the auto-fill no longer returns a compile-able value. | |||||
* | Don't show assist if all arms are present | Steffen Lyngbaek | 2020-03-19 | 1 | -33/+37 | |
| | ||||||
* | 'Fill match arms' should work with existing match arms | Steffen Lyngbaek | 2020-03-19 | 1 | -25/+281 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses #3039 This essentially adds missing match arms. The algorithm for this can get complicated rather quickly so bail in certain conditions and rely on a PlaceholderPat. The algorighm works as such: - Iterate through the Enum Def Variants - Attempt to see if the variant already exists as a match arm - If yes, skip the enum variant. If no, include it. - If it becomes complicated, rather than exhaustively deal with every branch, mark it as a "partial match" and simply include the placeholder. Conditions for "complication": - The match arm contains a match guard - Any kind of nested destrucuring Order the resulting merged match branches as such: 1. Provided match arms 2. Missing enum variant branch arms 3. End with Placeholder if required - Add extra tests | |||||
* | Cleanup imports | Aleksey Kladov | 2020-03-19 | 6 | -13/+17 | |
| | ||||||
* | Merge nested use trees | Aleksey Kladov | 2020-03-19 | 1 | -20/+52 | |
| | ||||||
* | Generalize | Aleksey Kladov | 2020-03-19 | 2 | -13/+10 | |
| | ||||||
* | Use match_ast | Aleksey Kladov | 2020-03-18 | 1 | -10/+13 | |
| | ||||||
* | Merge imports assist | Aleksey Kladov | 2020-03-18 | 3 | -25/+162 | |
| | | | | Work towards #2220 | |||||
* | Simplify | Aleksey Kladov | 2020-03-13 | 1 | -2/+2 | |
| | ||||||
* | Don't use generic DB where a concrete one will do | Aleksey Kladov | 2020-03-13 | 1 | -6/+2 | |
| | ||||||
* | Rerail split_import API onto AST | Aleksey Kladov | 2020-03-06 | 1 | -19/+33 | |
| | | | | | The code is more verbose and less efficient now, but should be reusable in add_import context as well | |||||
* | Unfold groups with single assists into plain assists | Kirill Bulatov | 2020-03-05 | 1 | -6/+1 | |
| | ||||||
* | Remove old find refs infra | Aleksey Kladov | 2020-03-04 | 1 | -11/+18 | |
| | ||||||
* | Highlight assist tests | Aleksey Kladov | 2020-03-03 | 1 | -46/+46 | |
| | ||||||
* | Fix applicability of inline local | Aleksey Kladov | 2020-03-03 | 1 | -4/+26 | |
| | ||||||
* | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 3 | -12/+12 | |
| | ||||||
* | Fix typo | Aleksey Kladov | 2020-02-29 | 2 | -2/+2 | |
| | ||||||
* | More orthogonal API for building paths | Aleksey Kladov | 2020-02-29 | 2 | -11/+18 | |
| | ||||||
* | Simplify | Aleksey Kladov | 2020-02-28 | 2 | -16/+1 | |
| | ||||||
* | Move insert_use util to utils | Aleksey Kladov | 2020-02-28 | 2 | -532/+20 | |
| | ||||||
* | introduce const visibility assist | Douglas Campos | 2020-02-28 | 1 | -4/+9 | |
| | ||||||
* | Refactor string literals | Aleksey Kladov | 2020-02-27 | 1 | -1/+2 | |
| | ||||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 6 | -74/+39 | |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | |||||
* | Remove code duplication in tests | Aleksey Kladov | 2020-02-26 | 1 | -36/+24 | |
| | ||||||
* | Add `remove_mut` assist | Aleksey Kladov | 2020-02-19 | 1 | -0/+32 | |
| | ||||||
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 2 | -5/+5 | |
| | ||||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 3 | -4/+4 | |
| |