rust-analyzer/crates/ra_hir/src/ty
Florian Diebold b1a40042e8 Handle impl/dyn Trait in method resolution
When we have one of these, the `Trait` doesn't need to be in scope to call its
methods. So we need to consider this when looking for method
candidates. (Actually I think the same is true when we have a bound `T:
some::Trait`, but we don't handle that yet).

At the same time, since Chalk doesn't handle these types yet, add a small hack
to skip Chalk in method resolution and just consider `impl Trait: Trait` always
true. This is enough to e.g. get completions for `impl Trait`, but since we
don't do any unification we won't infer the return type of e.g. `impl
Into<i64>::into()`.
2019-08-22 21:55:11 +02:00
..
infer Unify normalize and implements to simplify code 2019-07-08 21:47:37 +02:00
traits Add impl Trait and dyn Trait types 2019-08-22 19:33:00 +02:00
autoderef.rs Some renamings for clarity 2019-07-14 18:22:47 +02:00
display.rs Replace Display by a pretty printing trait for Ty 2019-03-16 16:36:59 +01:00
infer.rs implement initial type inference for index expressions 2019-08-17 18:05:20 +03:00
lower.rs Add impl Trait and dyn Trait types 2019-08-22 19:33:00 +02:00
method_resolution.rs Handle impl/dyn Trait in method resolution 2019-08-22 21:55:11 +02:00
op.rs normalize ordering ops 2019-08-17 17:51:01 +03:00
primitive.rs Clippy trivially_copy_pass_by_ref 2019-07-05 12:02:32 -04:00
tests.rs Handle impl/dyn Trait in method resolution 2019-08-22 21:55:11 +02:00
traits.rs implement durability 2019-08-15 15:27:00 +03:00