From: Philip Herron Date: Mon, 13 Mar 2023 16:58:59 +0000 (+0000) Subject: gccrs: add extra debug line for method resolve select X-Git-Tag: basepoints/gcc-15~2768 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3861c44c7e7050685ee9a5f1492d6b678b1586d6;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/typecheck/rust-hir-dot-operator.cc b/gcc/rust/typecheck/rust-hir-dot-operator.cc index 9f46d13763ed..d782da8960a6 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;