aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-07-29 16:21:33 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-04 15:48:36 +0100
commit2dc902baa1388841096e16e660082a8e79fce17e (patch)
treedfa398113378b17e22b64b952399d4ca556a393c /gcc/rust/backend/rust-compile-base.cc
parentffb419d6a46302126944066ef46bd0c9f590ee30 (diff)
downloadgcc-2dc902baa1388841096e16e660082a8e79fce17e.zip
gcc-2dc902baa1388841096e16e660082a8e79fce17e.tar.gz
gcc-2dc902baa1388841096e16e660082a8e79fce17e.tar.bz2
Refactor all coercion type calls into a single coercion_site function
In order to fully support coercion sites we need a single place in order to implement the logic. This refactors all the coercion calls to have a single TypeCheckBase::coercion_site(lhs, rhs, location). Eventually we will do something similar for unifications and casts so we can improve our diagnostics.
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.cc')
0 files changed, 0 insertions, 0 deletions