aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-10 14:31:50 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:21:11 +0100
commite40067e4f75db03b7493aa6df8afcfa2b645660c (patch)
tree71c87f15ba89f1804e8e288a8cb2d2df3f63bf70 /gcc/rust/backend/rust-compile-expr.cc
parentd3057e69654610ac258db056db6d5282ec677642 (diff)
downloadgcc-e40067e4f75db03b7493aa6df8afcfa2b645660c.zip
gcc-e40067e4f75db03b7493aa6df8afcfa2b645660c.tar.gz
gcc-e40067e4f75db03b7493aa6df8afcfa2b645660c.tar.bz2
gccrs: refactor TyTy::BaseType::is_unit to not use virtual dispatch
gcc/rust/ChangeLog: * typecheck/rust-tyty.cc (BaseType::is_unit): new implementation (ErrorType::is_unit): remove (TupleType::is_unit): likewise (NeverType::is_unit): likewise (PlaceholderType::is_unit): likewise (ProjectionType::is_unit): likewise * typecheck/rust-tyty.h: update header Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions