aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-08-31 17:07:51 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-01-31 14:16:50 +0100
commite641158a5f5cd80ee2ce32fded1179ce1b3e1193 (patch)
treeec676198a8556dd49251ffe3603b50135fcdcf0a /gcc/rust/backend
parent43cb42a3d82d1c29592a5232811fc608ef6cea49 (diff)
downloadgcc-e641158a5f5cd80ee2ce32fded1179ce1b3e1193.zip
gcc-e641158a5f5cd80ee2ce32fded1179ce1b3e1193.tar.gz
gcc-e641158a5f5cd80ee2ce32fded1179ce1b3e1193.tar.bz2
gccrs: Add new check for contains_associated_types
We don't need to setup associated types when a trait does not contain any associated types. gcc/rust/ChangeLog: * typecheck/rust-tyty-bounds.cc (TypeBoundPredicate::contains_associated_types): Check if a type bound predicate contains assocated types. * typecheck/rust-tyty.h: Declare the above mentioned function. * typecheck/rust-hir-trait-resolve.cc: Use `contains_associated_types` function.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions