about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-06 20:15:17 +0000
committerbors <bors@rust-lang.org>2017-04-06 20:15:17 +0000
commit50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65 (patch)
treed23b41ecd6d74542d8cbc65b1b51e9c4e45208ca /src/rustllvm/PassWrapper.cpp
parent44855a4cef3e83c76c386fdcf034447a8ee128e4 (diff)
parentedc7f9abec051b3c388f3199c052a0f617a99423 (diff)
downloadrust-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