Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | 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 | |
| | | | | ||||||
* | | | | Merge #4819 | bors[bot] | 2020-06-11 | 6 | -44/+534 | |
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4819: Add an FST index to `ImportMap` and use it to speed up auto import r=matklad a=jonas-schievink For the importing crate, we still use the symbol index, but I've modified it to only look at files that comprise that crate (instead of the whole workspace). Oh, and since now the symbol query limit is respected correctly, it's possible that some results from the local crate now disappear if there are many matches. Fixes https://github.com/rust-analyzer/rust-analyzer/issues/4763 Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | | | Add symbol index FIXME | Jonas Schievink | 2020-06-11 | 1 | -0/+3 | |
| | | | | ||||||
| * | | | ImportMap: use IndexMap internally | Jonas Schievink | 2020-06-10 | 2 | -9/+13 | |
| | | | | | | | | | | | | | | | | | | | | It iterates in insertion order, which makes the ordering more predictable. | |||||
| * | | | Respect casing when searching for imports | Jonas Schievink | 2020-06-10 | 3 | -6/+81 | |
| | | | | ||||||
| * | | | Move limit check down | Jonas Schievink | 2020-06-10 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Limit import map queries | Jonas Schievink | 2020-06-10 | 2 | -7/+51 | |
| | | | | ||||||
| * | | | Clean up import_map.rs | Jonas Schievink | 2020-06-10 | 2 | -32/+20 | |
| | | | | ||||||
| * | | | Add test for macro generated items | Jonas Schievink | 2020-06-10 | 1 | -0/+31 | |
| | | | | ||||||
| * | | | ImportsLocator: use ImportMap for non-local crates | Jonas Schievink | 2020-06-10 | 2 | -23/+70 | |
| | | | | ||||||
| * | | | ra_hir: expose `import_map::search_dependencies` | Jonas Schievink | 2020-06-10 | 1 | -0/+14 | |
| | | | | ||||||
| * | | | symbol_index: allow querying a single crate | Jonas Schievink | 2020-06-10 | 1 | -9/+34 | |
| | | | | ||||||
| * | | | Add an FST index to `ImportMap` | Jonas Schievink | 2020-06-10 | 3 | -3/+259 | |
| | | | | ||||||
| * | | | Fix the symbol query limit | Jonas Schievink | 2020-06-10 | 1 | -3/+4 | |
| | | | |