aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/tests/method_resolution.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update the rest of the testsAleksey Kladov2020-06-291-90/+68
|
* Use only one code-path for parsing fixturesAleksey Kladov2020-06-231-189/+189
| | | | | This removes leading newlines everywhere, shifting all ranges in tests by one
* Remove RelativePathBuf from fixtureAleksey Kladov2020-06-221-1/+1
| | | | | The paths in fixture are not really relative (the default one is `/main.rs`), so it doesn't make sense to use `RelativePathBuf` here.
* Fix type parameter defaultsFlorian Diebold2020-06-051-54/+0
| | | | | They should not be applied in expression or pattern contexts, unless there are other explicitly given type args.
* Switch to new magic marksAleksey Kladov2020-05-201-1/+1
|
* Allow calling dyn trait super trait methods without the super trait in scopeFlorian Diebold2020-05-161-0/+31
| | | | | This also removes some vestiges of the old impl trait support which I think aren't currently in use.
* Fix type of byte literalsFlorian Diebold2020-05-081-6/+7
| | | | They're `&[u8; N]`, not `&[u8]` (see #4374).
* Convert tests to text-sizeAleksey Kladov2020-04-251-188/+188
|
* Fix #3373Florian Diebold2020-03-011-0/+19
| | | | | | | Basically, we need to allow variables in the caller self type to unify with the impl's declared self type. That requires some more contortions in the variable handling. I'm looking forward to (hopefully) handling this in a cleaner way when we switch to Chalk's types and unification code.
* Do array unsizing for method receiversFlorian Diebold2020-02-291-0/+18
| | | | | | | It turns out rustc actually only unsizes array method receivers, so we don't need to do any trait solving for this (at least for now). Fixes #2670.
* Exclude methods from non-parameter types introduced by generic constraintsLaurențiu Nicola2020-02-191-0/+23
|
* Check that impl self type matches up with expected self type in path modeFlorian Diebold2020-02-141-0/+32
| | | | Fixes #3144.
* Change Ty::Param to contain param IDFlorian Diebold2020-02-071-1/+1
|
* Fix another testFlorian Diebold2020-02-071-2/+2
|
* Fix printing of function typesFlorian Diebold2020-02-071-21/+21
|
* Introduce our own Chalk TypeFamily, instead of using ChalkIrFlorian Diebold2019-12-221-2/+2
| | | | | | 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.
* Split up ty tests a bitFlorian Diebold2019-12-031-0/+1005