rust/crates/ra_hir_ty/src/infer
Florian Diebold 5fe220b987 Fix a common false-positive type mismatch
E.g. for `&{ some_string() }` in a context where a `&str` is expected, we
reported a mismatch inside the block. The problem is that we're passing an
expectation of `str` down, but the expectation is more of a hint in this case.
There's a long comment in rustc about this, which I just copied.

Also, fix reported location for type mismatches in macros.
2020-02-29 15:31:07 +01:00
..
coerce.rs Implement unsize coercion using proper trait solving 2020-02-22 11:09:21 +01:00
expr.rs Fix a common false-positive type mismatch 2020-02-29 15:31:07 +01:00
pat.rs Fix handling of const patterns 2020-02-21 17:01:19 +01:00
path.rs Run cargo +nightly fix --clippy -Z unstable-options 2020-02-18 16:03:08 +02:00
unify.rs Fix handling of binders in canonicalization 2020-02-22 11:09:21 +01:00