aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/utils/insert_use.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-29 15:27:53 +0000
committerGitHub <[email protected]>2020-02-29 15:27:53 +0000
commit0ae7054210b0bbc48ea51c3672be640d3096cfdd (patch)
tree51599b3664e16cd5f0ef288dac924330c5cd0af0 /crates/ra_assists/src/utils/insert_use.rs
parent0ec7f760fcd8bb9c2273e004468faa2a8cbeb29d (diff)
parent5fe220b9873d587188adae63fa205481a9aae9ce (diff)
Merge #3376
3376: Fix a common false-positive type mismatch r=matklad a=flodiebold 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. Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/utils/insert_use.rs')
0 files changed, 0 insertions, 0 deletions