https://gcc.gnu.org/g:4d678291347dfb6991973eabdcfc21b9716f2ed7

commit r17-4332-g4d678291347dfb6991973eabdcfc21b9716f2ed7
Author: Philip Herron <[email protected]>
Date:   Fri Sep 4 21:26:03 2026 +0100

    gccrs: update type-bounds-probe to scan trait-impls only
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-tyty-bounds.cc (TypeBoundsProbe::scan): use trait 
index
    
    Signed-off-by: Philip Herron <[email protected]>

Diff:
---
 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 5a1e02fe8944..ab5ce2a04cf3 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);

Reply via email to