rust/crates
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
..
gen_lsp_server update lsp 2019-08-17 22:21:59 +03:00
ra_arena cleanup 2019-08-06 10:57:16 +02:00
ra_assists refactor TryConvWith similar to ConvWith 2019-08-20 19:53:05 +03:00
ra_batch implement feature flags 2019-08-22 15:07:31 +03:00
ra_cli disable clap's features 2019-08-22 15:57:48 +03:00
ra_db implement durability 2019-08-15 15:27:00 +03:00
ra_fmt align SyntaxText API with upstream 2019-07-20 16:52:11 +03:00
ra_hir Handle impl/dyn Trait in method resolution 2019-08-22 21:55:11 +02:00
ra_ide_api Merge #1715 2019-08-22 12:17:21 +00:00
ra_lsp_server implement feature flags 2019-08-22 15:07:31 +03:00
ra_mbe Return a Ref from SubtreeTokenSource::get 2019-08-03 22:49:47 +03:00
ra_parser use derive(Debug) for SyntaxKind 2019-08-19 13:11:51 +03:00
ra_prof Remove cpuprofile dependencies 2019-08-17 15:29:57 +03:00
ra_project_model don't load sysroot in most heavy tests 2019-08-19 15:41:18 +03:00
ra_syntax Add impl Trait and dyn Trait types 2019-08-22 19:33:00 +02:00
ra_text_edit allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tools disable clap's features 2019-08-22 15:57:48 +03:00
ra_tt allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_vfs_glob push glob errors outwards 2019-08-06 14:28:31 +02:00
test_utils translate \n -> \r\n on the way out 2019-08-20 19:53:05 +03:00
thread_worker switch to jod threads 2019-08-21 11:09:01 +03:00