aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Migrate tests from extension to rustEmil Lauridsen2019-12-258-0/+1068
| | | |
| * | | Fix use of wrong message in diagnosticEmil Lauridsen2019-12-251-1/+1
| | | |
| * | | Configuration plumbing for cargo watcherEmil Lauridsen2019-12-254-10/+55
| | | |
| * | | Initial implementation of cargo check watchingEmil Lauridsen2019-12-257-4/+598
| | | |
* | | | Merge #2667bors[bot]2019-12-2920-113/+608
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 2667: Visibility r=matklad a=flodiebold This adds the infrastructure for handling visibility (for fields and methods, not in name resolution) in the HIR and code model, and as a first application hides struct fields from completions if they're not visible from the current module. (We might want to relax this again later, but I think it's ok for now?) Co-authored-by: Florian Diebold <[email protected]>
| * | | visible_from -> is_visible_fromFlorian Diebold2019-12-274-10/+10
| | | |
| * | | Remove Arc from RawVisibilityFlorian Diebold2019-12-261-11/+6
| | | | | | | | | | | | | | | | | | | | Now that it's not used as a direct query return value anymore, it doesn't need to be cheaply cloneable anymore.
| * | | Fix cross-crate glob privacy handlingFlorian Diebold2019-12-263-6/+28
| | | |
| * | | Remove visibility query, instead add struct field visibility to dataFlorian Diebold2019-12-265-102/+35
| | | | | | | | | | | | | | | | | | | | Methods should be handled the same, and for items the visibility will be in the def map.
| * | | Rename ResolvedVisibility -> VisibilityFlorian Diebold2019-12-268-67/+54
| | | |
| * | | Rename Visibility -> RawVisibilityFlorian Diebold2019-12-266-40/+40
| | | |
| * | | Handle privacy for modulesFlorian Diebold2019-12-263-11/+36
| | | |
| * | | Take visibility into account for glob importsFlorian Diebold2019-12-267-43/+165
| | | |
| * | | Keep track of visibility during def collectionFlorian Diebold2019-12-266-54/+120
| | | |
| * | | Collect visibility of items during nameresFlorian Diebold2019-12-266-19/+63
| | | |
| * | | Add doc commentFlorian Diebold2019-12-261-0/+2
| | | |
| * | | Make enum variant fields publicFlorian Diebold2019-12-261-2/+9
| | | |
| * | | Hide completions for private struct fieldsFlorian Diebold2019-12-261-1/+56
| | | |
| * | | Add visibility in code model for fieldsFlorian Diebold2019-12-262-3/+20
| | | |
| * | | Add logic for resolving and checking visibilityFlorian Diebold2019-12-262-1/+60
| | | |
| * | | Add infrastructure for visibility on syntax and hir_def levelFlorian Diebold2019-12-265-2/+163
| | | |
* | | | Merge #2657bors[bot]2019-12-273-18/+62
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2657: Omit closure parameters in closure type display strings r=flodiebold a=SomeoneToIgnore Part of https://github.com/rust-analyzer/rust-analyzer/issues/1946 I wonder, should we display the the closure trait (Fn/FnMut/FnOnce) in inlay hints instead of `|...|` at all? Co-authored-by: Kirill Bulatov <[email protected]>
| * | | Omit closure parametersKirill Bulatov2019-12-233-18/+62
| | | |
* | | | Merge #2658bors[bot]2019-12-251-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2658: Only add features flags if non-empty r=matklad a=edwin0cheng This prevent error when disabled `all-features` in a cargo workspace, because of `--features is not allowed in the root of a virtual workspace` when running `cargo metadata`. Co-authored-by: Edwin Cheng <[email protected]>
| * | | | Only add features flags if non-emptyEdwin Cheng2019-12-231-1/+1
| | |_|/ | |/| |
* | | | Merge #2663bors[bot]2019-12-254-26/+140
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 2663: Fill in type params in 'add missing impl members' assist r=flodiebold a=flodiebold Co-authored-by: Florian Diebold <[email protected]>
| * | | Fill in type params in 'add missing impl members' assistFlorian Diebold2019-12-244-26/+140
| | |/ | |/|
* | | Merge #2661bors[bot]2019-12-245-3/+110
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2661: Implement infer await from async function r=flodiebold a=edwin0cheng This PR is my attempt for trying to add support for infer `.await` expression from an `async` function, by desugaring its return type to `Impl Future<Output=RetType>`. Note that I don't know it is supposed to desugaring it in that phase, if it is not suitable in current design, just feel free to reject it :) r=@flodiebold Co-authored-by: Edwin Cheng <[email protected]>
| * | Remove AsyncOwnerEdwin Cheng2019-12-245-13/+6
| | |
| * | Check if parameters is emptyEdwin Cheng2019-12-241-4/+6
| | |
| * | Add FIXMEEdwin Cheng2019-12-241-1/+5
| | |
| * | FormattingEdwin Cheng2019-12-242-3/+4
| | |
| * | Implement infer await from async funcEdwin Cheng2019-12-247-5/+112
| |/
* | lsp-types 0.67Jeremy Kolb2019-12-232-1/+2
| |
* | Merge #2636bors[bot]2019-12-237-278/+326
|\ \ | | | | | | | | | | | | | | | | | | | | | 2636: Chalk update and refactoring r=flodiebold a=flodiebold This updates the Chalk integration to https://github.com/rust-lang/chalk/pull/311, which will presumably get merged soon, and refactors it some more, most notably introducing our own `TypeFamily` instead of reusing `ChalkIr`. It's still mostly the same as `ChalkIr` though, except for using Salsa `InternId`s directly. Co-authored-by: Florian Diebold <[email protected]>
| * | Filter out error predicates in type bounds as wellFlorian Diebold2019-12-222-2/+29
| | |
| * | Introduce our own Chalk TypeFamily, instead of using ChalkIrFlorian Diebold2019-12-224-87/+126
| | | | | | | | | | | | | | | | | | It's not very different, except we can directly use Salsa IDs instead of casting them. This means we need to refactor the handling of errors to get rid of UNKNOWN_TRAIT though.
| * | Refactor Chalk integration some moreFlorian Diebold2019-12-222-79/+83
| | |
| * | Update Chalk, clean up Chalk integration a bitFlorian Diebold2019-12-224-125/+103
| |/
* / Bump lsp-types to 0.66.0 (fixes #2651)John-John Tedro2019-12-231-1/+1
|/
* Rudimentary name resolution for local itemsAleksey Kladov2019-12-226-49/+145
|
* SimplifyAleksey Kladov2019-12-222-16/+17
|
* RefactorAleksey Kladov2019-12-222-10/+11
|
* Share impl Scope between modules and blocksAleksey Kladov2019-12-223-53/+56
|
* SimplifyAleksey Kladov2019-12-227-58/+41
|
* Remove unused parametersAleksey Kladov2019-12-222-23/+13
|
* Remove import fieldAleksey Kladov2019-12-222-19/+8
|
* Separate defs from importsAleksey Kladov2019-12-222-5/+8
|
* Refactor PerNs constructionAleksey Kladov2019-12-222-49/+52
|
* Minor renameAleksey Kladov2019-12-221-8/+8
|