mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-30 15:03:42 +00:00
f86fe3d891
If we are expecting a `&Foo` and get a `&something`, when checking the `something`, we are *expecting* a `Foo`, but we shouldn't try to unify whatever we get with that expectation, because it could actually be a `&Foo`, and `&&Foo` coerces to `&Foo`. So this fixes quite a few false type mismatches. |
||
---|---|---|
.. | ||
infer | ||
tests | ||
traits | ||
autoderef.rs | ||
db.rs | ||
diagnostics.rs | ||
display.rs | ||
expr.rs | ||
infer.rs | ||
lib.rs | ||
lower.rs | ||
marks.rs | ||
method_resolution.rs | ||
op.rs | ||
primitive.rs | ||
test_db.rs | ||
tests.rs | ||
traits.rs | ||
utils.rs |