From: bors Date: Thu, 6 Apr 2017 20:15:17 +0000 (+0000) Subject: Auto merge of #40863 - eddyb:coerce-only-once, r=arielb1 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65;p=rust.git 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. --- 50c186419bb38e8ea2f1e6f9c31b754e3a1a3e65