aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Goto definition works inside macrosAleksey Kladov2019-11-164-11/+77
|
* Merge #2276bors[bot]2019-11-165-41/+41
|\ | | | | | | | | | | | | | | 2276: Source-ify name_definition r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Source-ify name_definitionAleksey Kladov2019-11-161-20/+19
| |
| * Sourcify classify_name_refAleksey Kladov2019-11-165-21/+22
| |
* | Upgrade Chalk againFlorian Diebold2019-11-164-27/+37
| |
* | Fix handling of the binders in dyn/impl TraitFlorian Diebold2019-11-164-45/+116
| | | | | | | | | | | | | | | | | | We need to be more careful now when substituting bound variables (previously, we didn't have anything that used bound variables except Chalk, so it was not a problem). This is obviously quite ad-hoc; Chalk has more infrastructure for handling this in a principled way, which we maybe should adopt.
* | Use Chalk's dyn/impl trait supportFlorian Diebold2019-11-163-13/+16
| |
* | Upgrade ChalkFlorian Diebold2019-11-165-113/+213
|/ | | | | Associated type values (in impls) are now a separate entity in Chalk, so we have to intern separate IDs for them.
* Merge #2271bors[bot]2019-11-1510-54/+51
|\ | | | | | | | | | | | | | | 2271: Force passing Source when creating a SourceAnalyzer r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Force passing Source when creating a SourceAnalyzerAleksey Kladov2019-11-1510-53/+51
| |
| * Prepare SourceAnalyzer for macrosAleksey Kladov2019-11-151-1/+0
| |
* | Merge #2268bors[bot]2019-11-153-5/+47
|\ \ | |/ |/| | | | | | | | | | | 2268: Handle ast::MacroCall in classify_name and impl FromSource for MacroDef r=matklad a=kjeremy Fixes #2260 Co-authored-by: kjeremy <[email protected]>
| * Add a test that uses classify_namekjeremy2019-11-151-0/+15
| |
| * Handle ast::MacroCall in classify_name and impl FromSource for MacroDefkjeremy2019-11-152-5/+32
| | | | | | | | Fixes #2260
* | Reduce some duplicationAleksey Kladov2019-11-155-8/+12
| |
* | Remove wrong cloneAleksey Kladov2019-11-151-2/+2
| |
* | Prepare SourceAnalyzer for macrosAleksey Kladov2019-11-152-9/+14
| |
* | Sourcify some moreAleksey Kladov2019-11-152-13/+23
|/
* Merge #2266bors[bot]2019-11-156-21/+22
|\ | | | | | | | | | | | | | | 2266: Sourcify some things r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Sourcify some thingsAleksey Kladov2019-11-156-21/+22
| | | | | | | | | | If we want to support macros properly, we need to get rid of those FileIds everywhere...
* | Merge #2252bors[bot]2019-11-1511-31/+207
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2252: Fix parsing of "postfix" range expressions. r=matklad a=goffrie Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to correctly handle precedence. Integrate it more tightly with the Pratt parser instead. Also includes a drive-by fix for parsing `match .. {}`. Fixes #2242. Co-authored-by: Geoffry Song <[email protected]>
| * | Attempt to implement typed accessorsGeoffry Song2019-11-154-8/+50
| | |
| * | Move inclusive range check to validationGeoffry Song2019-11-155-11/+33
| | |
| * | Fix parsing of "postfix" range expressions.Geoffry Song2019-11-157-30/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to correctly handle precedence. Integrate it more tightly with the Pratt parser instead. Also includes a drive-by fix for parsing `match .. {}`. Fixes #2242.
* | | Fix add-new assistAleksey Kladov2019-11-151-5/+64
| |/ |/|
* | Remove old impls infrastructureAleksey Kladov2019-11-1515-358/+181
| |
* | Store impls in CrateDefMapAleksey Kladov2019-11-153-4/+39
| |
* | Add ImplIdAleksey Kladov2019-11-152-9/+22
| |
* | Reduce visibilityAleksey Kladov2019-11-151-1/+1
| |
* | Heed the advice of rustc's into_iter() warningmemoryruins2019-11-151-4/+2
| |
* | Update smallvec dep to 1.0memoryruins2019-11-151-1/+1
| |
* | Flatten expr moduleAleksey Kladov2019-11-153-141/+130
| |
* | Move scope tests to hir_defAleksey Kladov2019-11-155-211/+233
| |
* | Reduce visibilityAleksey Kladov2019-11-151-3/+3
| |
* | Add convenience method for testingAleksey Kladov2019-11-154-7/+15
| |
* | Auto-upgrade some insta snapshotsAleksey Kladov2019-11-1517-1596/+1643
| |
* | Reduce visibilityAleksey Kladov2019-11-151-3/+3
| |
* | Use Local moreAleksey Kladov2019-11-154-24/+17
| |
* | Merge #2251bors[bot]2019-11-154-35/+50
|\ \ | |/ |/| | | | | | | | | | | 2251: Privatize modules r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Privatize modulesAleksey Kladov2019-11-152-2/+6
| |
| * Refactor Module::from_source to properly descend from root fileAleksey Kladov2019-11-153-33/+44
| |
* | Merge #2165bors[bot]2019-11-153-0/+403
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2165: ra_assists: Add add_new assist r=matklad a=rep-nop Adds a new assist to autogenerate a new fn based on the selected struct, excluding tuple structs and unions. The fn will inherit the same visibility as the struct and the assist will attempt to reuse any existing impl blocks that exist at the same level of struct. Not marking this as closing #1644 since there's a part 2 of adding autocompletion for when someone starts typing `[pub ]fn new(...` Co-authored-by: Wesley Norris <[email protected]>
| * | Add add_new assistWesley Norris2019-11-093-0/+403
| | | | | | | | | | | | | | | | | | | | | Adds a new assist to autogenerate a new fn based on the selected struct, excluding tuple structs and unions. The fn will inherit the same visibility as the struct and the assist will attempt to reuse any existing impl blocks that exist at the same level of struct.
* | | Merge #2249bors[bot]2019-11-151-111/+93
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2249: Cleanup hover r=matklad a=kjeremy Take advantage of classify_name to consolidate multiple hover paths. This isn't quite as clean as I want it to be (`no_fallback` bool is wonky). There's a relationship between `HoverResult` being empty and the range that is a little warty. Also I noticed that HoverResults are always marked as exact and have been for quite a while... maybe that should be removed in another PR. Co-authored-by: Jeremy Kolb <[email protected]>
| * | | Cleanup hoverJeremy Kolb2019-11-151-111/+93
| | |/ | |/| | | | | | | Take advantage of classify_name
* / | Renormalize line endingskjeremy2019-11-151-19/+19
|/ /
* | Even if jemalloc feature is used do not use it on msvckjeremy2019-11-143-20/+22
| | | | | | | | Fixes #2233
* | Move body queries to hir_defAleksey Kladov2019-11-1412-75/+110
| |
* | Simplify parsingAleksey Kladov2019-11-142-19/+19
| |
* | Move scopes to hir_defAleksey Kladov2019-11-147-368/+360
| |