Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Operate only on AST paths instead of HIR | Jonas Schievink | 2020-06-15 | 1 | -30/+36 |
| | |||||
* | Simplify | Jonas Schievink | 2020-06-15 | 1 | -13/+6 |
| | |||||
* | It's fookin' raw | Jonas Schievink | 2020-06-15 | 1 | -48/+48 |
| | |||||
* | Shorten *all* qualified paths when adding use | Jonas Schievink | 2020-06-13 | 2 | -11/+192 |
| | |||||
* | Expose `find_insert_use_container` | Jonas Schievink | 2020-06-13 | 2 | -8/+18 |
| | |||||
* | Fix `rewrite_root` when there's only 1 replacement | Jonas Schievink | 2020-06-13 | 1 | -0/+8 |
| | |||||
* | Merge #4867 | bors[bot] | 2020-06-13 | 6 | -160/+134 |
|\ | | | | | | | | | | | | | | | | | | | | | 4867: Cleanup URL handling r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Cleanup URL handling | Aleksey Kladov | 2020-06-13 | 6 | -160/+134 |
| | | |||||
* | | Merge #4868 | bors[bot] | 2020-06-13 | 1 | -4/+4 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4868: Fix if and while postfix completions r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | Fix if and while postfix completions | Aleksey Kladov | 2020-06-13 | 1 | -4/+4 |
| |/ | |||||
* | | Merge #4700 | bors[bot] | 2020-06-13 | 6 | -640/+618 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4700: Add top level keywords completion r=matklad a=mcrakhman This fixes the following issue: https://github.com/rust-analyzer/rust-analyzer/issues/4566. Also added simple logic which filters the keywords which can be used with unsafe on the top level. Co-authored-by: Mikhail Rakhmanov <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | More concise completion tests | Aleksey Kladov | 2020-06-13 | 2 | -182/+146 |
| | | | |||||
| * | | Cleanup | Aleksey Kladov | 2020-06-13 | 4 | -255/+154 |
| | | | |||||
| * | | Add keywords completions on source file position | Mikhail Rakhmanov | 2020-06-13 | 3 | -21/+124 |
| | | | |||||
| * | | Merge branch 'master' into keyword_completion | Mikhail Rakhmanov | 2020-06-13 | 148 | -2458/+6455 |
| |\| | | | | | | | | | | | | | # Conflicts: # docs/user/generated_features.adoc | ||||
| * | | Fix tests and remove unused methods | Mikhail Rakhmanov | 2020-06-13 | 3 | -13/+6 |
| | | | |||||
| * | | Add more patterns, tests and fix keywords | Mikhail Rakhmanov | 2020-06-12 | 3 | -473/+297 |
| | | | |||||
| * | | Rewrite snapshot checks | Mikhail Rakhmanov | 2020-06-12 | 4 | -245/+100 |
| | | | |||||
| * | | Remove comment and incorrect assert | Mikhail Rakhmanov | 2020-06-12 | 1 | -7/+1 |
| | | | |||||
| * | | Return snapshots to tests | Mikhail Rakhmanov | 2020-06-12 | 1 | -18/+34 |
| | | | |||||
| * | | More assert refactoring | Mikhail Rakhmanov | 2020-06-12 | 1 | -7/+8 |
| | | | |||||
| * | | Add more pattern tests | Mikhail Rakhmanov | 2020-06-12 | 2 | -11/+50 |
| | | | |||||
| * | | New testing approach for keywords | Mikhail Rakhmanov | 2020-06-12 | 2 | -6/+56 |
| | | | |||||
| * | | Add few smoke tests for patterns and refactoring | Mikhail Rakhmanov | 2020-06-11 | 4 | -10/+111 |
| | | | |||||
| * | | Add more patterns and keywords | Mikhail Rakhmanov | 2020-06-11 | 3 | -55/+59 |
| | | | |||||
| * | | Add todo | Mikhail Rakhmanov | 2020-06-11 | 1 | -1/+2 |
| | | | |||||
| * | | Add more keywords | Mikhail Rakhmanov | 2020-06-11 | 4 | -234/+183 |
| | | | |||||
| * | | Add top level keywords completion | Mikhail Rakhmanov | 2020-06-02 | 1 | -1/+186 |
| | | | |||||
* | | | Revert "Hide squiggly for unused and unnecessary" | Gabriel Valfridsson | 2020-06-12 | 2 | -3/+2 |
| |/ |/| | | | | | This reverts commit 599c105e6fabb2b81c2d0a11b86c0c96f6ab1b88. | ||||
* | | Merge #4857 | bors[bot] | 2020-06-12 | 1 | -1/+14 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4857: Fix invalid shorthand initialization diagnostic for tuple structs r=jonas-schievink a=OptimalStrategy Initializing tuple structs explicitly, like in the example below, produces a "Shorthand struct initialization" diagnostic that leads to a compilation error when applied: ```rust struct S(usize); fn main() { let s = S { 0: 0 }; // OK, but triggers the diagnostic // let s = S { 0 }; // Compilation error } ``` This PR adds a check that the field name is not a literal. Co-authored-by: OptimalStrategy <[email protected]> Co-authored-by: OptimalStrategy <[email protected]> | ||||
| * | | simplify determining whether the field is a tuple field | OptimalStrategy | 2020-06-12 | 1 | -5/+1 |
| | | | |||||
| * | | Fix invalid shorthand initialization diagnostic for tuple structs | OptimalStrategy | 2020-06-12 | 1 | -1/+18 |
| | | | |||||
* | | | Merge #4855 | bors[bot] | 2020-06-12 | 2 | -141/+141 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4855: Use more idiomatic style for lifetimes in generated code r=matklad a=Veetaha Co-authored-by: Veetaha <[email protected]> | ||||
| * | | | Apply codegen with idiomatic lifetimes | Veetaha | 2020-06-11 | 2 | -141/+141 |
| |/ / | |||||
* | | | Merge #4856 | bors[bot] | 2020-06-12 | 1 | -5/+5 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4856: Simplify r=matklad a=Veetaha Co-authored-by: Veetaha <[email protected]> | ||||
| * | | | Simplify | Veetaha | 2020-06-12 | 1 | -5/+5 |
| |/ / | |||||
* / / | find_path: return shorter paths for external items | Jonas Schievink | 2020-06-12 | 2 | -21/+77 |
|/ / | | | | | | | | | If a containing module is already in scope, there's no need to use the full path to the item. | ||||
* | | Merge #4833 | bors[bot] | 2020-06-11 | 13 | -290/+842 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 4833: Separating parsing of `for` in predicates and types r=matklad a=matthewjasper We now correctly accept `for<'a> (&'a F): Fn(&'a str)` in a where clause and correctly reject `for<'a> &'a u32` as a type. Co-authored-by: Matthew Jasper <[email protected]> | ||||
| * | | Add example of old trait object syntax | Matthew Jasper | 2020-06-11 | 3 | -1/+39 |
| | | | |||||
| * | | Move complex inline test to own file | Matthew Jasper | 2020-06-11 | 7 | -372/+670 |
| | | | |||||
| * | | Separating parsing of `for` in predicates and types | Matthew Jasper | 2020-06-10 | 11 | -290/+506 |
| | | | |||||
* | | | Merge #4849 | bors[bot] | 2020-06-11 | 7 | -73/+65 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4849: Make known paths use `core` instead of `std` r=matklad a=jonas-schievink I'm not sure if this causes problems today, but it seems like it easily could, if rust-analyzer processes the libstd sources for the right `--target` and that target is a `#![no_std]`-only target. Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | | Update wrap return tests | Jonas Schievink | 2020-06-11 | 1 | -29/+17 |
| | | | | | | | | | | | | | | | | Update "no diagnostic" tests, use `()` instead of `String` | ||||
| * | | | Make known paths use `core` instead of `std` | Jonas Schievink | 2020-06-11 | 7 | -48/+52 |
| | | | | |||||
* | | | | Merge #4850 | bors[bot] | 2020-06-11 | 1 | -6/+32 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4850: Indent chain `.` even if there's more stuff afterwards r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | | | Indent chain `.` even if there's more stuff afterwards | Aleksey Kladov | 2020-06-11 | 1 | -6/+32 |
| |/ / / | |||||
* / / / | Remove dead code | Aleksey Kladov | 2020-06-11 | 4 | -29/+3 |
|/ / / | |||||
* | | | Merge #4843 | bors[bot] | 2020-06-11 | 16 | -77/+115 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4843: Don't guess macro expansion crate r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | | Don't guess macro expansion crate | Aleksey Kladov | 2020-06-11 | 9 | -62/+89 |
| | | | | |||||
| * | | | Make relevant_crates return a Set | Aleksey Kladov | 2020-06-11 | 10 | -24/+35 |
| | | | |