diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-31 17:07:51 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-31 14:16:50 +0100 |
commit | e641158a5f5cd80ee2ce32fded1179ce1b3e1193 (patch) | |
tree | ec676198a8556dd49251ffe3603b50135fcdcf0a /gcc/rust/backend | |
parent | 43cb42a3d82d1c29592a5232811fc608ef6cea49 (diff) | |
download | gcc-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