Florian Diebold
|
e45f476d56
|
Fix panic trying to get substs on unknown type
Fixes #585.
|
2019-01-21 21:42:19 +01:00 |
|
Florian Diebold
|
3c4a4c6ae9
|
Fix panic on inferring field access on an enum
|
2019-01-20 18:14:19 +01:00 |
|
Florian Diebold
|
5f3509e140
|
Add an assert
|
2019-01-19 19:00:36 +01:00 |
|
Florian Diebold
|
969f588025
|
Generics -> GenericParams
|
2019-01-19 18:58:04 +01:00 |
|
Florian Diebold
|
9e4b5ecec4
|
Make generics work in struct patterns
|
2019-01-19 16:02:06 +01:00 |
|
Florian Diebold
|
d37bb128ef
|
Collect generic args in struct variant paths as well
|
2019-01-19 16:02:06 +01:00 |
|
Florian Diebold
|
cc4562ab6e
|
Collect generic args in type paths
E.g. `let x: A<X>` is handled correctly.
|
2019-01-19 16:02:06 +01:00 |
|
Florian Diebold
|
fa7f9d696f
|
Make Module impl methods crate-private, update some comments
|
2019-01-19 16:02:06 +01:00 |
|
Florian Diebold
|
688a45e00b
|
Implement beginnings of generics
- add HIR for generic params
- resolve generic params in type paths
- add substitions for ADTs
- insert type variables for substitutions
|
2019-01-19 16:02:06 +01:00 |
|
Marcus Klaas de Vries
|
bcbfa2cc11
|
Finish move of StructField for pattern type inference
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
4277f420aa
|
Replace Expectation by &Ty in infer_pat method
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
d2769837f1
|
Move pattern type inference from adt::StructField to core_model_impl (WIP)
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
b5466f3fb3
|
Address issues flagged in review
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
5027c5d4ee
|
Fix bug in match arm type unification
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
44e9a9605b
|
Fixup annotated bindings
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
d48d5b8b6c
|
Add initial (flawed) implementation of binding annotations
|
2019-01-19 15:37:26 +03:00 |
|
Marcus Klaas de Vries
|
9433a108cf
|
Make pattern inference work w/o proper expecations
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
be1b4034a5
|
Infer pattern types for lambdas and loops
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
06d16a18f6
|
Implement match binding type inference and arm unification
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
ac216880f5
|
Implement unlabeled struct field pattern inference
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
3340807bd2
|
Get basic struct pattern type inference working!
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
ab5deb7811
|
Create struct patterns up to the hir level
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
9c2d83a4c8
|
Add crude implementation of tuplestruct pattern inference
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
3b0de53904
|
Work on type inference for ADT patterns
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
5648dcd36e
|
Implement type inference for tuples and refs
|
2019-01-19 15:37:25 +03:00 |
|
Marcus Klaas de Vries
|
afaa26636e
|
Add additional pattern variants
|
2019-01-19 15:37:25 +03:00 |
|
Hirokazu Hata
|
0aedd4fb2f
|
Add Ty::Array to walk_mut
|
2019-01-17 00:08:53 +09:00 |
|
Hirokazu Hata
|
5c570fa770
|
Remove unneeded code
|
2019-01-16 23:39:14 +09:00 |
|
Hirokazu Hata
|
5d3884d5b4
|
Fix Ty::Array
|
2019-01-16 23:37:42 +09:00 |
|
Hirokazu Hata
|
d665acbbec
|
Implement array inference
|
2019-01-16 23:35:06 +09:00 |
|
Marcus Klaas de Vries
|
a2b6d3da30
|
Implement rudimentary type inference for unary operators
|
2019-01-16 00:04:39 +01:00 |
|
Aleksey Kladov
|
8ba9c2d4ce
|
remove Cancelable from type inference
|
2019-01-15 20:54:18 +03:00 |
|
Aleksey Kladov
|
b871062e32
|
remove Cancelable from Ty
|
2019-01-15 20:43:37 +03:00 |
|
Aleksey Kladov
|
fafcd103d2
|
remove Cancelable from ids
|
2019-01-15 19:18:52 +03:00 |
|
Aleksey Kladov
|
490112dea1
|
remove Cancelable from nameres
|
2019-01-15 19:15:01 +03:00 |
|
Aleksey Kladov
|
18e9a710cd
|
remove Cancelable from fn_scopes
|
2019-01-15 19:04:49 +03:00 |
|
Aleksey Kladov
|
040a622c52
|
remove Cancelable from funciton body
|
2019-01-15 19:01:59 +03:00 |
|
Aleksey Kladov
|
f1367e0370
|
remove Cancelable from navigation target
|
2019-01-15 18:50:16 +03:00 |
|
Aleksey Kladov
|
9446be2999
|
remove Cancelable from adt API
|
2019-01-15 18:43:25 +03:00 |
|
Aleksey Kladov
|
fedd320cf2
|
check_canceled does not return Result
|
2019-01-15 15:45:48 +03:00 |
|
Marcus Klaas de Vries
|
37ba237e66
|
Address issues found in review
|
2019-01-14 21:52:08 +01:00 |
|
Marcus Klaas de Vries
|
a9a6a50c75
|
Fixup tests
|
2019-01-14 19:30:21 +01:00 |
|
Marcus Klaas de Vries
|
81bc8e4973
|
don't try to treat arrays and tuples as literals
|
2019-01-14 13:55:49 +01:00 |
|
Marcus Klaas de Vries
|
1574715be5
|
Use type variables to determine exact type for ambiguous numeric literals
|
2019-01-14 13:54:31 +01:00 |
|
Marcus Klaas de Vries
|
5f5dc20d85
|
Try implementing integer type inference (WIP)
|
2019-01-14 13:52:57 +01:00 |
|
Marcus Klaas de Vries
|
a6146d35b1
|
Implement type inference for literals (WIP)
|
2019-01-14 13:52:55 +01:00 |
|
Aleksey Kladov
|
eedc08300c
|
goto defenition works for type-inferred methods
|
2019-01-13 18:56:57 +03:00 |
|
Hirokazu Hata
|
6e73cc89b6
|
Implement tuple inference
|
2019-01-13 21:10:01 +09:00 |
|
Florian Diebold
|
1ed7fbfc1b
|
args -> params
|
2019-01-12 21:58:16 +01:00 |
|
Florian Diebold
|
082ef52bcb
|
Implement basic inherent method resolution
|
2019-01-12 15:01:19 +01:00 |
|