]> git.lizzy.rs Git - rust.git/commit
Merge #4651
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 29 May 2020 21:07:43 +0000 (21:07 +0000)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 21:07:43 +0000 (21:07 +0000)
commitf7f01dd5f0a8254abeefb0156e2c4ebe1447bfb6
tree1a5a9c99f95f623ccdd8fb12c40649477196e8f5
parent3689c8c3f67ed8ed63674ef50c6022fc91db2e13
parent7d0586cb15000193941f93d4b5281e56ef751edd
Merge #4651

4651: Use first match branch in case of type mismatch, not last r=kjeremy a=flodiebold

The comment says this was intentional, but I do agree with #4304 that it makes
more sense the other way around (for if/else as well).

Fixes #4304.

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
crates/ra_hir_ty/src/tests/simple.rs