aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Merge #2351bors[bot]2019-11-227-51/+63
|\ | | | | | | | | | | | | | | 2351: Rename Atts trait r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Rename Atts traitAleksey Kladov2019-11-223-15/+12
| |
| * Encapsulate AttrsAleksey Kladov2019-11-226-42/+57
| |
* | Merge #2349bors[bot]2019-11-222-4/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | 2349: Ban println in lsp_server r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | Ban println in lsp_serverAleksey Kladov2019-11-222-4/+23
| | |
* | | Don't continue line commentsAleksey Kladov2019-11-221-3/+31
|/ /
* | Fix insert_whitespacesEdwin Cheng2019-11-211-11/+10
| |
* | Add test for match_astEdwin Cheng2019-11-211-0/+43
| |
* | Add to_macro_file_kindEdwin Cheng2019-11-211-2/+38
| |
* | Add MacroFileKind::StatementsEdwin Cheng2019-11-212-0/+2
| |
* | Merge #2341bors[bot]2019-11-211-0/+68
|\ \ | |/ |/| | | | | | | | | | | 2341: Fix mbe fail to parse TokenTree with endings whitespace r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
| * Fixed mbe trival subtreeEdwin Cheng2019-11-211-0/+68
| |
* | Fix test mark placementAleksey Kladov2019-11-212-2/+2
| |
* | reformatAleksey Kladov2019-11-212-5/+4
| |
* | Remove old hir::generics moduleAleksey Kladov2019-11-2111-114/+94
| |
* | Reduce visibilityAleksey Kladov2019-11-211-41/+37
| |
* | ResimplifyAleksey Kladov2019-11-211-23/+6
|/
* Restore a markAleksey Kladov2019-11-213-1/+20
|
* Move resolver to hir_defAleksey Kladov2019-11-2114-77/+63
|
* DecoupleAleksey Kladov2019-11-218-49/+53
|
* Split internal and user-visible ScopeDefAleksey Kladov2019-11-212-17/+40
|
* Use GenericParam in ScopeDefAleksey Kladov2019-11-212-4/+10
|
* Move ScopeDefAleksey Kladov2019-11-214-31/+31
|
* DecoupleAleksey Kladov2019-11-216-75/+105
|
* DecoupleAleksey Kladov2019-11-215-43/+59
|
* Move expr resolver to resolveAleksey Kladov2019-11-214-33/+35
|
* Decouple ResolverAleksey Kladov2019-11-2110-108/+188
|
* Merge #2332bors[bot]2019-11-209-141/+126
|\ | | | | | | | | | | | | | | 2332: Add HasResolver trait r=matklad a=matklad bors merge Co-authored-by: Aleksey Kladov <[email protected]>
| * SimplifyAleksey Kladov2019-11-202-41/+15
| |
| * Add HasResolver traitAleksey Kladov2019-11-209-134/+145
| |
* | Merge #2330bors[bot]2019-11-209-105/+81
|\| | | | | | | | | | | | | | | 2330: Remove hir/adt.rs r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Remove hir/adt.rsAleksey Kladov2019-11-206-66/+47
| |
| * Simplify generic paramsAleksey Kladov2019-11-204-39/+34
| |
* | fix 2190; add test for "replace if let with match"Felix Kohlgrüber2019-11-203-5/+58
|/
* Move generic_params query to HIRAleksey Kladov2019-11-204-27/+37
|
* Move constants to new IDAleksey Kladov2019-11-2016-89/+119
| | | | This allows us to get rid of trait item index
* Don't duplicate ContainerId typeAleksey Kladov2019-11-205-42/+35
|
* Switch type aliases to new sourcesAleksey Kladov2019-11-209-73/+162
|
* Merge #2326bors[bot]2019-11-201-132/+0
|\ | | | | | | | | | | | | | | 2326: Remove duplicate tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Remove duplicate testsAleksey Kladov2019-11-201-132/+0
| |
* | Fix expand macroEdwin Cheng2019-11-203-9/+16
| |
* | Next gen IDs for functionsAleksey Kladov2019-11-2012-42/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current system with AstIds has two primaraly drawbacks: * It is possible to manufacture IDs out of thin air. For example, it's possible to create IDs for items which are not considered in CrateDefMap due to cfg. Or it is possible to mixup structs and unions, because they share ID space. * Getting the ID of a parent requires a secondary index. Instead, the plan is to pursue the more traditional approach, where each items stores the id of the parent declaration. This makes `FromSource` more awkward, but also more correct: now, to get from an AST to HIR, we first do this recursively for the parent item, and the just search the children of the parent for the matching def
* | Move traits to hir_defAleksey Kladov2019-11-2010-117/+103
|/
* Rename with_ast -> with_valueAleksey Kladov2019-11-208-51/+51
|
* Move Generics to hir_defAleksey Kladov2019-11-206-170/+247
|
* Allow non-path default type parametersAleksey Kladov2019-11-206-19/+38
|
* Rename Source::ast -> Source::valueAleksey Kladov2019-11-2043-214/+226
|
* Merge pull request #2297 from kiljacken/masterAleksey Kladov2019-11-208-22/+132
|\ | | | | Add fancy truncation of type hints.
| * Add test for inlay hint truncationEmil Lauridsen2019-11-191-0/+37
| |
| * Move type inlay hint truncation to language serverEmil Lauridsen2019-11-198-22/+95
| | | | | | | | | | | | | | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints.