aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move TyAleksey Kladov2019-11-272-615/+0
|
* Support all coercion placesuHOOCCOOHu2019-09-251-6/+97
|
* Support custom `CoerceUnsized`uHOOCCOOHu2019-09-252-24/+290
| | | | Split out tests about coercion
* Better handle never type and branch merginguHOOCCOOHu2019-09-251-0/+258
| | | | Split out tests for never type to another file
* Use insta for ty testsFlorian Diebold2019-01-2124-485/+0
|
* Fix panic trying to get substs on unknown typeFlorian Diebold2019-01-211-0/+8
| | | | Fixes #585.
* Fix panic on inferring field access on an enumFlorian Diebold2019-01-201-0/+4
|
* Make generics work in struct patternsFlorian Diebold2019-01-191-0/+17
|
* Collect generic args in struct variant paths as wellFlorian Diebold2019-01-191-5/+5
|
* Collect generic args in type pathsFlorian Diebold2019-01-191-3/+3
| | | | E.g. `let x: A<X>` is handled correctly.
* Implement beginnings of genericsFlorian Diebold2019-01-193-43/+43
| | | | | | | - add HIR for generic params - resolve generic params in type paths - add substitions for ADTs - insert type variables for substitutions
* Add some testsFlorian Diebold2019-01-193-0/+58
|
* Fixup annotated bindingsMarcus Klaas de Vries2019-01-192-2/+14
|
* Make pattern inference work w/o proper expecationsMarcus Klaas de Vries2019-01-191-1/+25
|
* Implement match binding type inference and arm unificationMarcus Klaas de Vries2019-01-191-1/+8
|
* Get basic struct pattern type inference working!Marcus Klaas de Vries2019-01-191-12/+11
|
* Add crude implementation of tuplestruct pattern inferenceMarcus Klaas de Vries2019-01-191-0/+12
|
* Implement type inference for tuples and refsMarcus Klaas de Vries2019-01-191-0/+15
|
* Add Ty::Array to walk_mutHirokazu Hata2019-01-161-32/+32
|
* Fix test case invalid syntaxHirokazu Hata2019-01-161-45/+45
|
* Fix infer array testHirokazu Hata2019-01-161-34/+48
|
* Add infer array testHirokazu Hata2019-01-161-0/+38
|
* Implement rudimentary type inference for unary operatorsMarcus Klaas de Vries2019-01-151-0/+28
|
* Fix type inference for raw (byte) stringsMarcus Klaas de Vries2019-01-141-1/+3
|
* Fixup testsMarcus Klaas de Vries2019-01-143-53/+54
|
* don't try to treat arrays and tuples as literalsMarcus Klaas de Vries2019-01-142-8/+6
|
* Use type variables to determine exact type for ambiguous numeric literalsMarcus Klaas de Vries2019-01-143-7/+8
|
* Try implementing integer type inference (WIP)Marcus Klaas de Vries2019-01-144-6/+6
|
* Implement type inference for literals (WIP)Marcus Klaas de Vries2019-01-142-1/+11
|
* Fix tuple test caseHirokazu Hata2019-01-131-5/+27
|
* Add infer tuple testHirokazu Hata2019-01-131-0/+5
|
* Implement basic inherent method resolutionFlorian Diebold2019-01-121-0/+18
|
* Fix assertion error in unification (hopefully)Florian Diebold2019-01-111-0/+5
| | | | | | | Currently, all types that we handle during inference need to be resolved as far as possible at the time. It's maybe too brittle of an invariant; I need to think how we can do this better. This should fix #484 though, I hope (if it's the same case as I managed to reproduce).
* Implement type inference for enum variantsMarcus Klaas de Vries2019-01-101-0/+4
|
* nicer trailing comma handling in typesAleksey Kladov2019-01-092-2/+2
|
* Process explicit type hints for str, bool and charMarcus Klaas de Vries2019-01-072-4/+4
|
* Tidy up binary operator type inference; add test fileMarcus Klaas de Vries2019-01-071-0/+46
|
* Implement type inference for more binary operatorsMarcus Klaas de Vries2019-01-071-31/+0
| | | | | Mostly just for primitive numeric types such as u32 and f64. Not yet a general solution using trait resolution.
* Implement autoderef for field accessesFlorian Diebold2019-01-071-0/+43
|
* Sort ranges in type inference testsFlorian Diebold2019-01-068-80/+80
| | | | | Also rename the files to remove the numbers (they don't serve a purpose now that there are only the data files).
* Use HIR Expr for type inferenceFlorian Diebold2019-01-065-14/+14
| | | | | Now we can reuse the type inference inside a function when typing whitespace etc. :)
* Touch up type inference for boolean operatorsMarcus Klaas de Vries2019-01-061-10/+31
| | | | | Also try to infer its subexpressions and set type expectations whenever possible.
* Implement type inference for boolean operatorsMarcus Klaas de Vries2019-01-051-0/+10
|
* Resolve the Self typeFlorian Diebold2019-01-041-2/+2
|
* Resolve the self parameter during type inferenceFlorian Diebold2019-01-041-2/+2
|
* Type the self parameterFlorian Diebold2019-01-041-0/+2
|
* Add test for self type inferenceFlorian Diebold2019-01-041-0/+4
|
* Missing return type means unit, not unknownFlorian Diebold2018-12-291-2/+2
|
* Implement type variablesFlorian Diebold2018-12-294-7/+27
| | | | | | | | | This will really become necessary when we implement generics, but even now, it allows us to reason 'backwards' to infer types of expressions that we didn't understand for some reason. We use ena, the union-find implementation extracted from rustc, to keep track of type variables.
* Implement reference / pointer typesFlorian Diebold2018-12-252-2/+25
| | | | | - parse them - infer types of & and * expressions