From: Philip Herron <[email protected]>
gcc/rust/ChangeLog:
* typecheck/rust-tyty-bounds.cc (TypeBoundsProbe::scan): use trait index
Signed-off-by: Philip Herron <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/ea3cc798de3e5a8d8f119f3bf322775d7d5f02d9
The commit has NOT been mentioned in any issue.
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4847
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 5a1e02fe8..ab5ce2a04 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.55.0