[COMMITTED 55/83] gccrs: update type-bounds-probe to scan trait-impls only

arthur.cohen@opensrcsec.com arthur.cohen@opensrcsec.com
Wed Sep 16 12:30:14 GMT 2026


From: Philip Herron <herron.philip@googlemail.com>

gcc/rust/ChangeLog:

	* typecheck/rust-tyty-bounds.cc (TypeBoundsProbe::scan): use trait index

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
---
 gcc/rust/typecheck/rust-tyty-bounds.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/typecheck/rust-tyty-bounds.cc b/gcc/rust/typecheck/rust-tyty-bounds.cc
index 5a1e02fe894..ab5ce2a04cf 100644
--- a/gcc/rust/typecheck/rust-tyty-bounds.cc
+++ b/gcc/rust/typecheck/rust-tyty-bounds.cc
@@ -103,7 +103,7 @@ TypeBoundsProbe::scan ()
   };
 
   if (specified_trait == nullptr)
-    mappings.iterate_impl_blocks (process_impl);
+    mappings.iterate_trait_impl_blocks (process_impl);
   else
     mappings.iterate_trait_impl_blocks (
       specified_trait->get_mappings ().get_nodeid (), process_impl);
-- 
2.50.1



More information about the Gcc-rust mailing list