aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Add docs and use better namingKirill Bulatov2021-05-033-8/+25
| | | |
| * | | Resolve single assist onlyKirill Bulatov2021-05-039-32/+78
| | | |
| * | | Add a way to resolve certain assistsKirill Bulatov2021-05-0310-92/+178
| |/ /
* | | Merge #8714bors[bot]2021-05-042-23/+49
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8714: internal: remove one more usage of the rewriter r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | internal: remove one more usage of the rewriterAleksey Kladov2021-05-042-23/+49
| | | |
* | | | Replace `memmap` to `memmap2` in `proc_macro_api`memoryruins2021-05-042-2/+2
| | | |
* | | | Merge #8715bors[bot]2021-05-032-117/+113
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 8715: Make CompletionContext expected_type smarter r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | | Make CompletionContext expected_type smarterLukas Tobias Wirth2021-05-032-117/+113
| |/ /
* / / Don't mutate the tree while traversing in reorder_implLukas Tobias Wirth2021-05-031-4/+36
|/ /
* | fix: don't duplicate Progerss::Finised for cache primingAleksey Kladov2021-05-022-20/+11
| |
* | Merge #8693bors[bot]2021-05-022-0/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | 8693: Ensure that only one cache priming task can run at a time r=matklad a=Bobo1239 Fixes #8632. Co-authored-by: Boris-Chengbiao Zhou <[email protected]>
| * | Ensure that only one cache priming task can run at a timeBoris-Chengbiao Zhou2021-04-302-0/+18
| |/ | | | | | | Fixes #8632.
* | Fix feature description inconsistencyBrandon2021-05-011-1/+1
| |
* | find_path: check only crate-level preludeJonas Schievink2021-04-301-2/+28
| |
* | Merge #8692bors[bot]2021-04-304-25/+100
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 8692: Fix panic caused by new Try trait definition r=flodiebold a=flodiebold The new Try trait definition caused a query cycle for us. This adds recovery for that cycle, but also fixes the cause, which is that we went through the supertraits when resolving `<T as Trait>::Assoc`, which isn't actually necessary. I also rewrote `all_super_trait_refs` to an iterator before I realized what the actual problem was, so I kept that. Fixes #8686. Co-authored-by: Florian Diebold <[email protected]>
| * | Don't look in super traits for <T as Trait>::AssocFlorian Diebold2021-04-292-7/+14
| | | | | | | | | | | | | | | | | | | | | This isn't actually how it works, you have to specify the exact trait that has the associated type. Fixes #8686.
| * | Rewrite all_super_trait_refs as an iteratorFlorian Diebold2021-04-291-18/+34
| | | | | | | | | | | | | | | Doesn't fix the bug I was trying to fix, but now that I did it anyway it seems fine to keep.
| * | Handle cycles in generic_defaults more gracefullyFlorian Diebold2021-04-292-0/+22
| | |
| * | Add test for #8686Florian Diebold2021-04-291-0/+30
| |/
* | Merge #8695bors[bot]2021-04-308-12/+12
|\ \ | |/ |/| | | | | | | | | | | | | 8695: internal: fix naming polarity r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: fix naming polarityAleksey Kladov2021-04-304-6/+6
| | | | | | | | | | Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type.
| * internal: normalize nameAleksey Kladov2021-04-305-6/+6
| | | | | | | | All def types in hir are unsubstituted
* | fix: closure unify without check ClosureIdComonad2021-04-292-0/+40
| | | | | | | | closes #8604
* | Parse const param defaultsJonas Schievink2021-04-294-0/+141
| |
* | Correctly parse negated literals as const argsJonas Schievink2021-04-293-0/+40
|/
* internal: ensure that client and server-side configs are not mixed upAleksey Kladov2021-04-281-2/+5
| | | | https://github.com/rust-lang/rust/issues/84647 would help big time here.
* Merge #8679bors[bot]2021-04-271-0/+6
|\ | | | | | | | | | | | | | | | | 8679: fix: don't show error message for a valid notification r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * fix: don't show error message for a valid notificationAleksey Kladov2021-04-271-0/+6
| | | | | | | | Closes #6782, #6772
* | Return ServerNotInitialized according to the specJeremy Kolb2021-04-271-1/+1
| | | | | | | | | | | | | | According to the spec we should return ServerNotInitialized if the server is waiting for an initialize request and something else comes in. Upgrading to lsp-server 0.5.1 will do this and retry until the initialize request comes in. Fixes #8581
* | Add config optionsJorge Mederos Alvarado2021-04-271-0/+2
| |
* | minor: simplifyAleksey Kladov2021-04-261-12/+3
| |
* | fix: make error message in the status bar more usefulAleksey Kladov2021-04-261-1/+1
|/ | | | | | | At the moment,the popup is just a bazillion of Cargo's "Compiling this\nCompiling that", which is not that useful. --quiet still displays error, which is what we needc
* Use -u instead of --utc date flagKirill Bulatov2021-04-261-1/+1
|
* fix: add date to the version string on MacAleksey Kladov2021-04-261-1/+1
| | | | It doesn't support `--iso`
* Fixed formattingBastian Kersting2021-04-261-1/+1
|
* Added mutable semantic token modifier for &mut self methodsBastian Kersting2021-04-262-4/+9
|
* 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
| | |