diff options
| author | bors <bors@rust-lang.org> | 2017-04-06 20:15:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-04-06 20:15:17 +0000 |
| commit | 50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65 (patch) | |
| tree | d23b41ecd6d74542d8cbc65b1b51e9c4e45208ca /src/rustllvm/PassWrapper.cpp | |
| parent | 44855a4cef3e83c76c386fdcf034447a8ee128e4 (diff) | |
| parent | edc7f9abec051b3c388f3199c052a0f617a99423 (diff) | |
| download | rust-50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65.tar.gz rust-50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65.zip | |
Auto merge of #40863 - eddyb:coerce-only-once, r=arielb1
Avoid type-checking addition and indexing twice. Fixes #40610 by moving the common `check_expr_coercable_to_type` call before the error reporting logic for binops and removing the one from `check_str_addition`. Fixes #40861 by removing an unnecessary `check_expr_coercable_to_type` call.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
