Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Touch up nameres doc comment | Aleksey Kladov | 2019-11-08 | 1 | -7/+6 |
| | |||||
* | Reduce visibility | Aleksey Kladov | 2019-11-08 | 1 | -9/+9 |
| | |||||
* | Extract path resolution submodule | Aleksey Kladov | 2019-11-08 | 3 | -243/+269 |
| | |||||
* | Simplify | Aleksey Kladov | 2019-11-08 | 2 | -7/+5 |
| | | | | | There's only one call-site for the function, so it seems fine to inline | ||||
* | Reduce visibility | Aleksey Kladov | 2019-11-08 | 1 | -23/+23 |
| | |||||
* | Update crates | kjeremy | 2019-11-07 | 2 | -3/+3 |
| | | | | | | | Removes nodrop and extra arrayvec We have an extra crossbeam-queue and crossbeam-utils left but those should drop once rayon accepts https://github.com/rayon-rs/rayon/pull/704 | ||||
* | cargo xtask format with 1.39 | kjeremy | 2019-11-07 | 1 | -3/+3 |
| | |||||
* | Merge #2179 | bors[bot] | 2019-11-06 | 5 | -14/+111 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 2179: Use HirDatabase to compute `is_deprecated` r=matklad a=martskins This PR fixes #2167 by introducing `attributes_query` and adding `fn attrs(&self, def: crate::AttrDef) -> Option<Arc<[Attr]>>;` to the `DefDatabase` trait. I'm a little concerned about the two spots in `attributes_query` where code is repeated, but I couldn't figure out a way to avoid that, so.. I welcome suggestions :smile: Co-authored-by: Martin Asquino <[email protected]> | ||||
| * | HirDatabase stored attributes | Martin Asquino | 2019-11-04 | 5 | -14/+111 |
| | | |||||
* | | Cleanup complete_postfix | Aleksey Kladov | 2019-11-06 | 1 | -52/+57 |
| | | |||||
* | | Bump psm, console, indicatif | kjeremy | 2019-11-05 | 1 | -1/+1 |
| | | |||||
* | | Reduce visibility | Aleksey Kladov | 2019-11-04 | 1 | -2/+2 |
| | | |||||
* | | Move Namespace enum closer to usage | Aleksey Kladov | 2019-11-04 | 9 | -26/+29 |
| | | |||||
* | | Appease the linter by dummy doc comments | Aleksey Kladov | 2019-11-04 | 2 | -1/+3 |
| | | |||||
* | | Simplify | Aleksey Kladov | 2019-11-04 | 1 | -35/+24 |
| | | |||||
* | | Restore assists tests | Aleksey Kladov | 2019-11-04 | 3 | -4/+50 |
| | | |||||
* | | Rename MockDatabase -> TestDB | Aleksey Kladov | 2019-11-04 | 6 | -60/+57 |
| | | | | | | | | Actually working rename is sooo useful! | ||||
* | | remove dead code | Aleksey Kladov | 2019-11-04 | 1 | -26/+7 |
| | | |||||
* | | Remove more duplication in test fixtures | Aleksey Kladov | 2019-11-04 | 5 | -62/+18 |
| | | |||||
* | | Remove some duplicated test functions | Aleksey Kladov | 2019-11-04 | 1 | -81/+16 |
| | | |||||
* | | Reduce visibility | Aleksey Kladov | 2019-11-04 | 2 | -6/+10 |
| | | |||||
* | | Merge #2173 | bors[bot] | 2019-11-04 | 2 | -2/+70 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2173: MBE: Add TokenId shift in macro_rules r=matklad a=edwin0cheng As discussed in #2169 , for fixing duplication TokenId during expansion : > What we can do here is to re-number the tokens during expansion. Specifically: > * when we create macro_rules, we note the highest id of the token we have as shift> > * when we expand macro rules, if we need to output a token from definition, we just re-use its id > * if we need to output a token from the argument, we increase its id by shift (so it's guaranteed to not to collide with anything from the definition) > * finally, when we have a HirFileId of the expansion, we can look up the original value of shift and classify node to the arg/def by comparing it's id with shift. > This PR implement first 3 points of above solution. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Change to add 1 if non zero shift | Edwin Cheng | 2019-11-04 | 1 | -1/+1 |
| | | |||||
| * | Refactor and rename | Edwin Cheng | 2019-11-04 | 1 | -21/+20 |
| | | |||||
| * | Change Option<u32> to u32 for shift value | Edwin Cheng | 2019-11-04 | 1 | -8/+5 |
| | | |||||
| * | Change to better naming | Edwin Cheng | 2019-11-04 | 1 | -3/+3 |
| | | |||||
| * | Add TokenId Shif in macro_rules | Edwin Cheng | 2019-11-04 | 2 | -2/+74 |
| | | |||||
* | | Merge #2172 | bors[bot] | 2019-11-04 | 3 | -138/+25 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 2172: Use new text DSL instead of crate_graph! macro r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | Cleanup unused marks | Aleksey Kladov | 2019-11-04 | 1 | -10/+0 |
| | | | |||||
| * | | Use new text DSL instead of crate_graph! macro | Aleksey Kladov | 2019-11-04 | 3 | -128/+25 |
| | | | |||||
* | | | Merge #2149 | bors[bot] | 2019-11-04 | 2 | -29/+207 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2149: Handle IfLet in convert_to_guarded_return. r=matklad a=krk Fixes https://github.com/rust-analyzer/rust-analyzer/issues/2124 I could not move the cursor position out of `let`: `le<|>t` vs `let<|>`. Also, please suggest extra test cases. Co-authored-by: krk <[email protected]> | ||||
| * | | Extract common parts of match arms in convert_to_guarded_return assist. | krk | 2019-11-01 | 1 | -50/+37 |
| | | | |||||
| * | | Support paths other than "Some". | krk | 2019-11-01 | 2 | -10/+59 |
| | | | |||||
| * | | Remove variable pat. | krk | 2019-11-01 | 1 | -2/+1 |
| | | | |||||
| * | | Handle IfLet in convert_to_guarded_return. | krk | 2019-10-31 | 2 | -28/+171 |
| | | | |||||
* | | | Reexport relative_path from ra_db | Aleksey Kladov | 2019-11-03 | 15 | -24/+15 |
| | | | |||||
* | | | Add small module-level docs | Aleksey Kladov | 2019-11-03 | 3 | -0/+9 |
| | | | |||||
* | | | Remove last traces of nameres from hir | Aleksey Kladov | 2019-11-03 | 8 | -67/+59 |
| | | | |||||
* | | | Restore crate_def_map marks | Aleksey Kladov | 2019-11-03 | 9 | -26/+41 |
| | | | |||||
* | | | move crate_def_map tests to hir_def | Aleksey Kladov | 2019-11-03 | 12 | -195/+308 |
| | | | |||||
* | | | Introduce ra_db::fixture fixture module | Aleksey Kladov | 2019-11-03 | 6 | -11/+96 |
| | | | | | | | | | | | | The goal here is to share more testing infrastructure between crates. | ||||
* | | | Move CrateDefMap to hir_def | Aleksey Kladov | 2019-11-03 | 23 | -733/+826 |
| |/ |/| | |||||
* | | Merge #2160 | bors[bot] | 2019-11-03 | 4 | -1/+113 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2160: Set `deprecated` field on `CompletionItem`s r=matklad a=martskins This PR aims to address #2042 by setting the deprecated field for completion items. The setting the tags field for LSP 3.15 part still needs fixing, but that one is blocked due to lsp-types not being up to date with 3.15 yet. Co-authored-by: Martin Asquino <[email protected]> | ||||
| * | | Use `bool` instead of `Option<bool>` and print it's value only when `true` | Martin Asquino | 2019-11-02 | 9 | -79/+6 |
| | | | |||||
| * | | Set `deprecated` field on `CompletionItem`s | Martin Asquino | 2019-11-02 | 9 | -1/+186 |
| | | | |||||
* | | | Silence some warnings | Laurențiu Nicola | 2019-11-02 | 1 | -2/+2 |
| | | | |||||
* | | | Move diagnostics to hir_expand | Aleksey Kladov | 2019-11-02 | 8 | -89/+107 |
| | | | |||||
* | | | Move Source to hir_expand | Aleksey Kladov | 2019-11-02 | 4 | -20/+23 |
| | | | |||||
* | | | Upgrade Chalk | Florian Diebold | 2019-11-02 | 1 | -3/+3 |
|/ / | |||||
* | | Change SourceAnalyzer method resoltion API | Florian Diebold | 2019-11-01 | 4 | -36/+44 |
| | |