public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add FIXME comment for inheriting bounds
@ 2022-06-08 11:41 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ef70f0310a6739727ee97cd4f996f8938b0e6a1d
commit ef70f0310a6739727ee97cd4f996f8938b0e6a1d
Author: Philip Herron <philip.herron@embecosm.com>
Date: Wed Oct 20 16:24:04 2021 +0100
Add FIXME comment for inheriting bounds
Diff:
---
gcc/rust/typecheck/rust-tyty.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/rust/typecheck/rust-tyty.cc b/gcc/rust/typecheck/rust-tyty.cc
index 232799b6a08..1f8321b07e9 100644
--- a/gcc/rust/typecheck/rust-tyty.cc
+++ b/gcc/rust/typecheck/rust-tyty.cc
@@ -108,6 +108,9 @@ void
BaseType::inherit_bounds (
const std::vector<TyTy::TypeBoundPredicate> &specified_bounds)
{
+ // FIXME
+ // 1. This needs to union the bounds
+ // 2. Do some checking for trait polarity to ensure compatibility
for (auto &bound : specified_bounds)
{
add_bound (bound);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:41 [gcc/devel/rust/master] Add FIXME comment for inheriting bounds Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).