[gcc r14-7371] gccrs: add extra debug line for method resolve select

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 17:26:25 GMT 2024


https://gcc.gnu.org/g:3861c44c7e7050685ee9a5f1492d6b678b1586d6

commit r14-7371-g3861c44c7e7050685ee9a5f1492d6b678b1586d6
Author: Philip Herron <herron.philip@googlemail.com>
Date:   Mon Mar 13 16:58:59 2023 +0000

    gccrs: add extra debug line for method resolve select
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-hir-dot-operator.cc (MethodResolver::select): add debug
    
    Signed-off-by: Philip Herron <herron.philip@googlemail.com>

Diff:
---
 gcc/rust/typecheck/rust-hir-dot-operator.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/rust/typecheck/rust-hir-dot-operator.cc b/gcc/rust/typecheck/rust-hir-dot-operator.cc
index 9f46d13763e..d782da8960a 100644
--- a/gcc/rust/typecheck/rust-hir-dot-operator.cc
+++ b/gcc/rust/typecheck/rust-hir-dot-operator.cc
@@ -66,6 +66,9 @@ MethodResolver::try_hook (const TyTy::BaseType &r)
 bool
 MethodResolver::select (TyTy::BaseType &receiver)
 {
+  rust_debug ("MethodResolver::select reciever=[%s]",
+	      receiver.debug_str ().c_str ());
+
   struct impl_item_candidate
   {
     HIR::Function *item;


More information about the Gcc-cvs mailing list