]> gcc.gnu.org Git - gcc.git/commit
gccrs: Add new check for contains_associated_types
authorPhilip Herron <philip.herron@embecosm.com>
Wed, 31 Aug 2022 16:07:51 +0000 (17:07 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 31 Jan 2023 13:16:50 +0000 (14:16 +0100)
commite641158a5f5cd80ee2ce32fded1179ce1b3e1193
treeec676198a8556dd49251ffe3603b50135fcdcf0a
parent43cb42a3d82d1c29592a5232811fc608ef6cea49
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.
gcc/rust/typecheck/rust-hir-trait-resolve.cc
gcc/rust/typecheck/rust-tyty-bounds.cc
gcc/rust/typecheck/rust-tyty.h
This page took 0.057753 seconds and 6 git commands to generate.