aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-05-30 17:16:30 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:37:22 +0100
commit1b34e40e5e41bdcb227b40523cd3a64c6f2fde00 (patch)
treedc95df4c5494d97d41605aaad1d231fbc4e2a914 /gcc/rust/rust-session-manager.cc
parent56e29f4d5de8134db5f7772adc13154f3efccf43 (diff)
downloadgcc-1b34e40e5e41bdcb227b40523cd3a64c6f2fde00.zip
gcc-1b34e40e5e41bdcb227b40523cd3a64c6f2fde00.tar.gz
gcc-1b34e40e5e41bdcb227b40523cd3a64c6f2fde00.tar.bz2
gccrs: Fix cast site to not miss type-unifications
When attempting casts we can try a type coercion first, this is a TryCoercion which will return a result. In the event this is ok we need to perform a true coercion so that we don't leave missing infeence variable's ununified. Fixes #2195 gcc/rust/ChangeLog: * typecheck/rust-casts.cc (TypeCastRules::check): do coercion (TypeCastRules::emit_cast_error): clang-format gcc/testsuite/ChangeLog: * rust/compile/issue-2195.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
0 files changed, 0 insertions, 0 deletions