diff options
author | Florian Diebold <[email protected]> | 2020-02-29 14:31:07 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-02-29 14:31:07 +0000 |
commit | 5fe220b9873d587188adae63fa205481a9aae9ce (patch) | |
tree | 51599b3664e16cd5f0ef288dac924330c5cd0af0 /crates/ra_parser/src/grammar/params.rs | |
parent | 0ec7f760fcd8bb9c2273e004468faa2a8cbeb29d (diff) |
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.
Diffstat (limited to 'crates/ra_parser/src/grammar/params.rs')
0 files changed, 0 insertions, 0 deletions