]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
gccrs: add extra debug line for method resolve select
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 13 Mar 2023 16:58:59 +0000 (16:58 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Fri, 17 Mar 2023 10:34:36 +0000 (10:34 +0000)
gcc/rust/ChangeLog:

* typecheck/rust-hir-dot-operator.cc (MethodResolver::select): add debug

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-hir-dot-operator.cc

index bfba0c35520a523eefb7632f7adfdfe4f1832030..084ef88a858131bf41a1a93566ff68883ccd4fe8 100644 (file)
@@ -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;